1Which Python library is mainly used for efficient numerical array operations?
Introduction to NumPy, Pandas and Matplotlib
Easy
A.Flask
B.NumPy
C.Matplotlib
D.Pandas
Correct Answer: NumPy
Explanation:
NumPy provides efficient multidimensional arrays and mathematical operations.
Incorrect! Try again.
2What is the main array object provided by NumPy?
Introduction to NumPy, Pandas and Matplotlib
Easy
A.Figure
B.Dictionary
C.DataFrame
D.ndarray
Correct Answer: ndarray
Explanation:
The ndarray is NumPy's main object for storing and processing multidimensional numerical data.
Incorrect! Try again.
3Which Pandas data structure represents data in rows and columns?
Introduction to NumPy, Pandas and Matplotlib
Easy
A.Series
B.DataFrame
C.Histogram
D.ndarray
Correct Answer: DataFrame
Explanation:
A Pandas DataFrame organizes two-dimensional data into labeled rows and columns.
Incorrect! Try again.
4Which library is commonly used to create line charts, bar charts, and scatter plots in Python?
Introduction to NumPy, Pandas and Matplotlib
Easy
A.Requests
B.Matplotlib
C.Pandas
D.NumPy
Correct Answer: Matplotlib
Explanation:
Matplotlib is a Python visualization library used to create many types of charts and plots.
Incorrect! Try again.
5Which type of dataset has a known target value for each training example?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Easy
A.Synthetic dataset
B.Labeled dataset
C.Empty dataset
D.Unlabeled dataset
Correct Answer: Labeled dataset
Explanation:
A labeled dataset contains input examples paired with their known target values.
Incorrect! Try again.
6Which of the following is an example of structured data?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Easy
A.A collection of photographs
B.A set of video clips
C.A folder of audio files
D.A customer table
Correct Answer: A customer table
Explanation:
Structured data follows an organized format, such as records stored in rows and columns.
Incorrect! Try again.
7What is the main purpose of Exploratory Data Analysis (EDA)?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Easy
A.To deploy a final model
B.To create new hardware
C.To understand data patterns
D.To encrypt stored records
Correct Answer: To understand data patterns
Explanation:
EDA uses summaries and visualizations to identify patterns, relationships, and possible data-quality issues.
Incorrect! Try again.
8Which plot is commonly used to examine the distribution of one numerical variable?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Easy
A.Network diagram
B.Flowchart
C.Histogram
D.Gantt chart
Correct Answer: Histogram
Explanation:
A histogram groups numerical values into intervals and displays how frequently values occur.
Incorrect! Try again.
9Which method collects data by asking people a prepared set of questions?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Easy
A.Survey
B.Simulation
C.Compilation
D.Normalization
Correct Answer: Survey
Explanation:
A survey gathers information directly from respondents through a prepared set of questions.
Incorrect! Try again.
10Which value is commonly used to fill missing entries in a numerical column?
Data Preprocessing (Handling missing values and Detecting outliers)
Easy
A.File type
B.Column mean
C.Column name
D.Row label
Correct Answer: Column mean
Explanation:
The mean of a numerical column is a common simple replacement for its missing values.
Incorrect! Try again.
11What is an outlier in a dataset?
Data Preprocessing (Handling missing values and Detecting outliers)
Easy
A.A duplicate name in a table
B.A value equal to the mean
C.A value far from most values
D.A label used for a column
Correct Answer: A value far from most values
Explanation:
An outlier is an observation that differs noticeably from most other observations.
Incorrect! Try again.
12Which visualization is commonly used to detect possible outliers in numerical data?
Data Preprocessing (Handling missing values and Detecting outliers)
Easy
A.Line chart
B.Area chart
C.Pie chart
D.Box plot
Correct Answer: Box plot
Explanation:
A box plot shows the spread of data and highlights values that lie beyond its whiskers.
Incorrect! Try again.
13Which action is a valid way to handle rows containing missing values?
Data Preprocessing (Handling missing values and Detecting outliers)
Easy
A.Duplicate the affected rows
B.Remove the affected rows
C.Reverse the row order
D.Rename every feature
Correct Answer: Remove the affected rows
Explanation:
Removing affected rows is one valid approach when the amount of missing data is small and deletion is appropriate.
Incorrect! Try again.
14What is the purpose of feature scaling?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Easy
A.To collect additional observations
B.To convert rows into labels
C.To place features on similar scales
D.To remove every numerical feature
Correct Answer: To place features on similar scales
Explanation:
Feature scaling adjusts numerical features so that differences in their original units do not dominate learning.
Incorrect! Try again.
15Min-max scaling commonly transforms values into which range?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Min-max scaling commonly maps the minimum value to and the maximum value to .
Incorrect! Try again.
16Why is feature encoding used in machine learning?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Easy
A.To increase every feature value
B.To replace models with charts
C.To divide data into files
D.To convert categories into numbers
Correct Answer: To convert categories into numbers
Explanation:
Feature encoding changes categorical values into a numerical form that machine learning models can process.
Incorrect! Try again.
17What is the main goal of feature selection?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Easy
A.To enlarge the test dataset
B.To retain relevant input features
C.To draw every feature as a chart
D.To create missing target labels
Correct Answer: To retain relevant input features
Explanation:
Feature selection keeps useful input variables and removes variables that add little value.
Incorrect! Try again.
18What is the purpose of the training set?
Training and Validation (Train-Test Split and Cross Validation)
Easy
A.To report final accuracy
B.To store chart titles
C.To fit the model
D.To encode missing labels
Correct Answer: To fit the model
Explanation:
The model learns patterns and adjusts its parameters using the training set.
Incorrect! Try again.
19What is the purpose of the test set?
Training and Validation (Train-Test Split and Cross Validation)
Easy
A.To replace missing values
B.To select column names
C.To evaluate unseen-data performance
D.To train model parameters
Correct Answer: To evaluate unseen-data performance
Explanation:
The test set estimates how well a trained model performs on data it did not use for learning.
Incorrect! Try again.
20In -fold cross-validation, into how many subsets is the dataset divided?
Training and Validation (Train-Test Split and Cross Validation)
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In -fold cross-validation, the data is divided into five subsets, with each subset used once for validation.
Incorrect! Try again.
21Given arr = np.array([2, 4, 6, 8]), which expression returns the mean of the elements?
Introduction to NumPy, Pandas and Matplotlib
Medium
A.arr.median()
B.arr.average_index()
C.arr.sum(axis=1)
D.arr.mean()
Correct Answer: arr.mean()
Explanation:
The mean() method calculates the arithmetic average of all elements in a NumPy array.
Incorrect! Try again.
22What is the result of np.array([1, 2, 3]) * 2 in NumPy?
Introduction to NumPy, Pandas and Matplotlib
Medium
A.[2, 4, 6]
B.[3, 4, 5]
C.[1, 2, 3, 1, 2, 3]
D.[1, 1, 1]
Correct Answer: [2, 4, 6]
Explanation:
NumPy performs element-wise multiplication, so each value is multiplied by .
Incorrect! Try again.
23A Pandas DataFrame contains a column named age. Which command selects rows where the age is greater than 30?
Introduction to NumPy, Pandas and Matplotlib
Medium
A.df.where(age > 30)
B.age
C.`df[df[
D.df.select(age > 30)
Correct Answer: df[df["age"] > 30]
Explanation:
Boolean indexing in Pandas uses a condition inside brackets to filter matching rows.
Incorrect! Try again.
24Which Matplotlib plot is most appropriate for examining the relationship between two numerical variables?
Introduction to NumPy, Pandas and Matplotlib
Medium
A.A scatter plot
B.A bar chart
C.A box plot
D.A pie chart
Correct Answer: A scatter plot
Explanation:
A scatter plot displays pairs of numerical values and helps reveal correlation, clusters, or nonlinear patterns.
Incorrect! Try again.
25A dataset records the monthly electricity usage of 500 households for three consecutive years. What type of data structure does this primarily represent?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Medium
A.Categorical data
B.Time-series data
C.Unstructured text data
D.Cross-sectional data
Correct Answer: Time-series data
Explanation:
Measurements collected repeatedly over time form a time-series dataset.
Incorrect! Try again.
26A researcher wants to estimate customer satisfaction across an entire country but can survey only a smaller group. Which practice improves the representativeness of the collected data?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Medium
A.Select participants using random sampling
B.Ask participants to recruit similar people
C.Remove responses with average ratings
D.Survey only frequent customers
Correct Answer: Select participants using random sampling
Explanation:
Random sampling gives members of the target population a fairer chance of selection and can reduce sampling bias.
Incorrect! Try again.
27During exploratory data analysis, a histogram of income is strongly skewed to the right. What does this most likely indicate?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Medium
A.Most values are low with a few high values
B.The variable contains only categories
C.The values are evenly distributed
D.Most values are unusually large
Correct Answer: Most values are low with a few high values
Explanation:
Right skew usually occurs when most observations are relatively small and a small number of large observations create a long right tail.
Incorrect! Try again.
28Which EDA technique is most useful for identifying a strong linear relationship between two numerical features?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Medium
A.A frequency table
B.A missing-value count
C.A class-label encoder
D.A correlation matrix
Correct Answer: A correlation matrix
Explanation:
A correlation matrix summarizes pairwise numerical relationships and can highlight strong positive or negative linear associations.
Incorrect! Try again.
29A numerical feature has 2% missing values, and its distribution is approximately symmetric without important extreme values. Which imputation method is generally reasonable?
Data Preprocessing (Handling missing values and Detecting outliers)
Medium
A.Delete the entire feature
B.Replace values with the mean
C.Replace values with zero
D.Encode values as categories
Correct Answer: Replace values with the mean
Explanation:
For a roughly symmetric numerical feature with few missing values, mean imputation is often a reasonable baseline.
Incorrect! Try again.
30A numerical feature is highly skewed because of several extreme values. Which statistic is usually safer than the mean for filling missing values?
Data Preprocessing (Handling missing values and Detecting outliers)
Medium
A.The minimum
B.The variance
C.The maximum
D.The median
Correct Answer: The median
Explanation:
The median is less affected by extreme values and is therefore more robust for skewed distributions.
Incorrect! Try again.
31For a feature with first quartile and third quartile , which value would be flagged as an outlier using the rule?
Data Preprocessing (Handling missing values and Detecting outliers)
Medium
A.A value of 20
B.A value of 0
C.A value of 2
D.A value of 25
Correct Answer: A value of 25
Explanation:
The IQR is , so the upper fence is . A value of 25 is not above 30, so this option is incorrect. The lower fence is , meaning 0 and 2 are also within the fences. Therefore, none of these values is flagged as an outlier.
Incorrect! Try again.
32A dataset contains a missing age value for a customer. Which approach can preserve the row while allowing a model to recognize that the value was originally missing?
Data Preprocessing (Handling missing values and Detecting outliers)
Medium
A.Copy the age from the next row
B.Drop the customer and all features
C.Impute the age and add a missingness indicator
D.Replace the age with the customer ID
Correct Answer: Impute the age and add a missingness indicator
Explanation:
Imputation supplies a usable value, while an indicator feature preserves information about the original missingness.
Incorrect! Try again.
33A nearest-neighbor model uses income in dollars and age in years. Why is feature scaling important before training the model?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Medium
A.It removes all duplicate observations
B.It prevents large-unit features from dominating distances
C.It converts labels into features
D.It guarantees that every feature becomes normally distributed
Correct Answer: It prevents large-unit features from dominating distances
Explanation:
Distance-based models can give excessive influence to features with larger numerical ranges, so scaling makes contributions more comparable.
Incorrect! Try again.
34Which scaling method transforms a feature using its mean and standard deviation so that it commonly has mean and standard deviation ?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Medium
A.Min-max clipping
B.Standardization
C.One-hot encoding
D.Label encoding
Correct Answer: Standardization
Explanation:
Standardization uses , producing a feature centered around zero with unit standard deviation.
Incorrect! Try again.
35A feature contains the unordered categories red, blue, and green. Which encoding is most appropriate for a linear model?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Medium
A.Converting categories to random integers
B.One-hot encoding into separate binary columns
C.Replacing every category with its frequency rank
D.Ordinal encoding as 1, 2, and 3
Correct Answer: One-hot encoding into separate binary columns
Explanation:
One-hot encoding represents unordered categories without introducing a false numerical ordering.
Incorrect! Try again.
36A categorical feature contains small, medium, and large, where the categories have a meaningful order. Which encoding best represents this relationship?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Medium
A.Random hashing
B.Ordinal encoding
C.Missing-value imputation
D.One-hot encoding only
Correct Answer: Ordinal encoding
Explanation:
Ordinal encoding assigns ordered numerical values to categories whose sequence has meaningful interpretation.
Incorrect! Try again.
37A feature-selection method removes one of two features that have a correlation of . What is the main reason for this removal?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Medium
A.To convert numerical values to text
B.To reduce redundant information
C.To guarantee perfect predictions
D.To increase the number of features
Correct Answer: To reduce redundant information
Explanation:
Highly correlated features often provide overlapping information, so removing one can simplify the model and reduce multicollinearity.
Incorrect! Try again.
38Why should the test set generally remain unused until the final model evaluation?
Training and Validation (Train-Test Split and Cross Validation)
Medium
A.To eliminate the need for validation
B.To provide an unbiased estimate of generalization
C.To ensure the model memorizes all examples
D.To make the training set larger
Correct Answer: To provide an unbiased estimate of generalization
Explanation:
Keeping the test set separate prevents model selection and tuning decisions from indirectly adapting to the final evaluation data.
Incorrect! Try again.
39A binary classification dataset has 90% negative and 10% positive examples. Which train-test split strategy helps preserve this class ratio in both subsets?
Training and Validation (Train-Test Split and Cross Validation)
Medium
A.A split using only positive examples
B.A split based on feature magnitude
C.A stratified split
D.A sequential split without shuffling
Correct Answer: A stratified split
Explanation:
Stratification maintains approximately the same class proportions in the training and test sets.
Incorrect! Try again.
40In 5-fold cross-validation, how many times is each observation used for validation?
Training and Validation (Train-Test Split and Cross Validation)
Medium
A.Five times
B.Twice
C.Once
D.Four times
Correct Answer: Once
Explanation:
Each observation belongs to one fold and serves as validation data in the iteration where that fold is held out.
Incorrect! Try again.
41Consider the NumPy arrays a = np.array([[1, 2], [3, 4]]) and b = np.array([10, 20]). What is the result of a * b?
Introduction to NumPy, Pandas and Matplotlib
Hard
A.[[11, 22], [13, 24]]
B.[[10, 40], [30, 80]]
C.A broadcasting error occurs because the shapes differ
D.[[10, 20], [30, 80]]
Correct Answer: [[10, 40], [30, 80]]
Explanation:
NumPy broadcasts b across the rows, so each column is multiplied by the corresponding value: .
Incorrect! Try again.
42Which operation creates a view rather than an independent copy in standard NumPy behavior?
Introduction to NumPy, Pandas and Matplotlib
Hard
A.b = a[1:4]
B.b = np.array(a)
C.b = a.astype(float)
D.b = a.copy()
Correct Answer: b = a[1:4]
Explanation:
Basic slicing generally returns a view that shares memory with the original array. Changes to the slice can therefore affect a.
Incorrect! Try again.
43A Pandas column contains values such as "12.5", "13.0", and "missing". Which transformation is most appropriate before numerical analysis?
The conversion changes valid numeric strings into numbers and converts invalid entries to NaN, which can then be handled explicitly.
Incorrect! Try again.
44A Matplotlib line plot appears to connect observations in a misleading order because the x-values are unsorted. What is the most appropriate correction?
Introduction to NumPy, Pandas and Matplotlib
Hard
A.Sort the data by x before plotting
B.Increase the line width
C.Normalize the y-values first
D.Replace the line plot with a histogram
Correct Answer: Sort the data by x before plotting
Explanation:
A line plot connects points in the supplied sequence. Sorting by the independent variable makes the visual path represent the intended progression.
Incorrect! Try again.
45A dataset records monthly electricity usage for 500 households over 24 months. Which description best classifies its structure?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Hard
A.Unstructured text data
B.Pure time-series data
C.Pure cross-sectional data
D.Panel data with household and time dimensions
Correct Answer: Panel data with household and time dimensions
Explanation:
The dataset observes multiple entities repeatedly over time, combining cross-sectional and longitudinal dimensions.
Incorrect! Try again.
46A hospital dataset is collected only from patients who returned for a follow-up appointment. Which problem is most directly indicated?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Hard
A.Survivorship or selection bias
B.Random measurement noise
C.Label encoding failure
D.Feature scaling error
Correct Answer: Survivorship or selection bias
Explanation:
Restricting observations to patients who returned excludes patients lost to follow-up, so the sample may systematically differ from the target population.
Incorrect! Try again.
47In exploratory analysis, a feature has a strong correlation with the target, but the relationship disappears after grouping by customer segment. What is the most likely interpretation?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Hard
D.The aggregate correlation may reflect confounding
Correct Answer: The aggregate correlation may reflect confounding
Explanation:
A relationship visible in aggregate but absent within groups can arise because segment membership affects both the feature and target.
Incorrect! Try again.
48A box plot shows a long upper whisker and many unusually large values, while the median lies closer to the lower quartile. Which distribution is most consistent with this pattern?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Hard
A.Uniform distribution
B.Right-skewed distribution
C.Symmetric normal distribution
D.Left-skewed distribution
Correct Answer: Right-skewed distribution
Explanation:
A long upper tail and extreme high values indicate positive, or right, skewness.
Incorrect! Try again.
49During EDA, a feature has nearly identical values for 99.9% of records but differs substantially for the remaining 0.1%. Which investigation is most important before removing it?
Understanding Data (Types of Datasets, Data Collection and Exploratory Data Analysis)
Hard
A.Whether its variance is exactly zero
B.Whether the target is stored as integers
C.Whether its column name contains spaces
D.Whether the rare values encode a meaningful subgroup
Correct Answer: Whether the rare values encode a meaningful subgroup
Explanation:
A low-frequency category or value may identify an important population, fraud pattern, or operational condition despite its low prevalence.
Incorrect! Try again.
50A numerical feature is missing for 40% of observations, and missingness is strongly associated with the target. Which approach best preserves potentially useful information?
Data Preprocessing (Handling missing values and Detecting outliers)
Hard
A.Replace all missing values with zero
B.Use imputation together with a missingness indicator
C.Drop every row with a missing value
D.Replace missing values with the global maximum
Correct Answer: Use imputation together with a missingness indicator
Explanation:
Imputation supplies a usable numeric value, while an indicator allows the model to learn that the original value was missing.
Incorrect! Try again.
51Why should an imputer be fitted only on the training data during model development?
Data Preprocessing (Handling missing values and Detecting outliers)
Hard
A.To reduce the number of columns
B.To prevent validation statistics from entering training
C.To force every feature to have zero mean
D.To ensure missing values remain unchanged
Correct Answer: To prevent validation statistics from entering training
Explanation:
Fitting an imputer on all data lets validation information influence preprocessing parameters, producing data leakage and overly optimistic evaluation.
Incorrect! Try again.
52For a feature with first quartile and third quartile , which value is flagged as an upper outlier by the rule?
Data Preprocessing (Handling missing values and Detecting outliers)
Hard
A.31
B.27
C.30
D.29
Correct Answer: 31
Explanation:
The interquartile range is . The upper fence is , so 31 is above the fence.
Incorrect! Try again.
53A fraud dataset contains legitimate extreme transaction amounts and fraudulent extreme amounts. Which preprocessing strategy is least likely to destroy useful signal?
Data Preprocessing (Handling missing values and Detecting outliers)
Hard
A.Investigate extremes and use a robust model or transformation
B.Delete every observation outside the IQR fences
C.Replace every extreme value with the median
D.Clip all values at the 95th percentile
Correct Answer: Investigate extremes and use a robust model or transformation
Explanation:
Extreme values may be valid and predictive. Investigation combined with robust methods preserves information better than indiscriminate removal or replacement.
Incorrect! Try again.
54A k-nearest-neighbors classifier uses income measured in dollars and age measured in years. Why is feature scaling important?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Hard
A.It prevents income from dominating distance calculations
B.It converts categorical variables into labels
C.It guarantees that the classes become linearly separable
D.It removes all correlations among features
Correct Answer: It prevents income from dominating distance calculations
Explanation:
Distance-based algorithms are sensitive to feature magnitudes. Without scaling, the dollar-valued feature can overwhelm age in distance computations.
Incorrect! Try again.
55A numeric feature has heavy tails and several extreme values. Which scaling method is generally most resistant to those extremes?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Hard
A.Min-max scaling using observed endpoints
B.Robust scaling using median and IQR
C.Standardization using mean and standard deviation
D.Binary threshold encoding
Correct Answer: Robust scaling using median and IQR
Explanation:
The median and interquartile range are less affected by extreme observations than the mean, standard deviation, minimum, or maximum.
Incorrect! Try again.
56A categorical variable contains 50,000 unique customer identifiers. Which treatment is most defensible for a model intended to generalize to new customers?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Hard
A.Apply ordinary integer encoding to all identifiers
B.Sort identifiers alphabetically and use their ranks
C.One-hot encode every identifier without regularization
D.Drop the identifier unless it has a justified predictive meaning
Correct Answer: Drop the identifier unless it has a justified predictive meaning
Explanation:
An identifier usually has no intrinsic predictive order and can cause extreme dimensionality or memorization without supporting generalization.
Incorrect! Try again.
57When one-hot encoding a categorical feature with categories for a linear regression model with an intercept, why is one column commonly dropped?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Hard
A.To force the target mean to zero
B.To remove all category information
C.To ensure every category has equal frequency
D.To avoid perfect multicollinearity
Correct Answer: To avoid perfect multicollinearity
Explanation:
With an intercept, the one-hot columns sum to one, creating an exact linear dependency. Dropping one category provides a reference level.
Incorrect! Try again.
58A feature-selection method ranks variables using their correlation with the target before cross-validation. What is the main methodological problem?
Feature Engineering (Introduction to feature scaling, feature encoding and feature selection)
Hard
A.The selected variables may use information from validation folds
B.Correlation cannot be computed for numeric features
C.Feature selection always increases model bias
D.Cross-validation requires all features to be categorical
Correct Answer: The selected variables may use information from validation folds
Explanation:
Selecting features before splitting or cross-validation allows held-out target information to influence the selected feature set, causing leakage.
Incorrect! Try again.
59For a binary classification problem with a 5% positive class, which train-test split is most appropriate when the dataset is independently and identically distributed?
Training and Validation (Train-Test Split and Cross Validation)
Hard
A.A split based on the target value itself
B.A stratified random split preserving class proportions
C.A random split without preserving class proportions
D.A chronological split that shuffles timestamps
Correct Answer: A stratified random split preserving class proportions
Explanation:
Stratification maintains comparable class proportions in training and testing, reducing the chance that the minority class is poorly represented.
Incorrect! Try again.
60A time-dependent forecasting dataset is randomly shuffled before train-test splitting. Why can this produce an invalidly optimistic estimate?
Training and Validation (Train-Test Split and Cross Validation)
Hard
A.Time-series models cannot use numerical features
B.Random shuffling always reduces sample size
C.Future observations may influence evaluation of past behavior
D.Shuffling automatically creates missing values
Correct Answer: Future observations may influence evaluation of past behavior
Explanation:
Random splitting can place future patterns in training while earlier periods are evaluated, violating the temporal order required for realistic forecasting.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →