1Data that represents categories with a meaningful order, such as t-shirt sizes (Small, Medium, Large), is called:
Types of data
Easy
A.Nominal data
B.Ratio data
C.Numerical data
D.Ordinal data
Correct Answer: Ordinal data
Explanation:
Ordinal data is a type of categorical data where the categories have a natural, ordered relationship. Nominal data has no intrinsic order.
Incorrect! Try again.
2Which command is used in the Pandas library to load data from a CSV file named data.csv into a DataFrame?
Loading data using Pandas
Easy
A.pd.load_csv('data.csv')
B.pd.read_csv('data.csv')
C.pd.open_file('data.csv')
D.pd.import_data('data.csv')
Correct Answer: pd.read_csv('data.csv')
Explanation:
The read_csv() function is the standard and most common way to ingest data from a comma-separated values (CSV) file into a Pandas DataFrame.
Incorrect! Try again.
3What is the primary purpose of a histogram in univariate analysis?
Univariate analysis using Histogram
Easy
A.To count the occurrences of categorical data.
B.To visualize the frequency distribution of a single numerical variable.
C.To show the relationship between two different variables.
D.To display the exact value of each data point.
Correct Answer: To visualize the frequency distribution of a single numerical variable.
Explanation:
A histogram groups a single numerical variable into 'bins' and shows the frequency of data points falling into each bin, thereby illustrating the data's distribution.
Incorrect! Try again.
4In a box plot, what does the line inside the box represent?
Box plot
Easy
A.The standard deviation
B.The mode (most frequent value)
C.The mean (average)
D.The median (50th percentile)
Correct Answer: The median (50th percentile)
Explanation:
The line inside the box of a box plot always represents the median, which is the middle value of the dataset, splitting it into two equal halves.
Incorrect! Try again.
5A count plot is most suitable for visualizing the frequency of which type of data?
Count plots
Easy
A.Numerical data
B.Time-series data
C.Geospatial data
D.Categorical data
Correct Answer: Categorical data
Explanation:
A count plot shows the number of occurrences (counts) for each category in a categorical variable, making it essentially a histogram for categorical data.
Incorrect! Try again.
6What is a scatter plot primarily used for in bivariate analysis?
Bivariate analysis using Scatter plots
Easy
A.To visualize the relationship and correlation between two numerical variables.
B.To plot data points over a continuous time interval.
C.To show the distribution of a single categorical variable.
D.To compare the means of a numerical variable across different categories.
Correct Answer: To visualize the relationship and correlation between two numerical variables.
Explanation:
A scatter plot places dots on a graph corresponding to the values of two numerical variables, allowing analysts to observe patterns, trends, and correlations between them.
Incorrect! Try again.
7A line plot is most effective for visualizing what kind of data?
Line plots
Easy
A.The distribution of a single feature.
B.The correlation between two non-sequential variables.
C.Data that changes over a continuous interval, like time.
D.Static counts of different categories.
Correct Answer: Data that changes over a continuous interval, like time.
Explanation:
Line plots are excellent for showing trends and patterns in data where the points are ordered, such as time-series data (e.g., stock prices over a year).
Incorrect! Try again.
8In a correlation heatmap, what does a value close to -1.0 between two variables indicate?
Correlation analysis using Heatmaps
Easy
A.A weak relationship.
B.No linear relationship.
C.A strong negative linear relationship.
D.A strong positive linear relationship.
Correct Answer: A strong negative linear relationship.
Explanation:
A correlation coefficient of -1.0 signifies a perfect negative correlation, meaning as one variable increases, the other systematically decreases.
Incorrect! Try again.
9What is the definition of multicollinearity?
Multicollinearity
Easy
A.When an independent variable is highly correlated with the target variable.
B.When two or more independent variables in a regression model are highly correlated.
C.When the dataset has too many columns.
D.When a variable's distribution is not normal.
Correct Answer: When two or more independent variables in a regression model are highly correlated.
Explanation:
Multicollinearity is a phenomenon where predictor (independent) variables are intercorrelated, which can cause problems in interpreting regression models.
Incorrect! Try again.
10A distribution where the tail is longer on the left side is described as:
Distribution analysis: Skewness
Easy
A.Symmetrical
B.Normally distributed
C.Negatively skewed
D.Positively skewed
Correct Answer: Negatively skewed
Explanation:
Negative skew (or left-skew) means the mass of the distribution is concentrated on the right, and the tail extends to the left, towards the lower values.
Incorrect! Try again.
11What does the kurtosis of a data distribution measure?
Distribution analysis: Kurtosis
Easy
A.The asymmetry or skew of the distribution.
B.The central point of the distribution.
C.The correlation between variables.
D.The 'tailedness' or presence of outliers in the distribution.
Correct Answer: The 'tailedness' or presence of outliers in the distribution.
Explanation:
Kurtosis is a measure of whether the data are heavy-tailed or light-tailed relative to a normal distribution. High kurtosis indicates heavy tails and more outliers.
Incorrect! Try again.
12In EDA, a data point that lies far away from the other data points is generally called an:
Detecting patterns, anomalies and trends
Easy
A.Mode
B.Outlier
C.Inlier
D.Median
Correct Answer: Outlier
Explanation:
An outlier, or anomaly, is an observation that deviates significantly from other observations in the dataset. Identifying them is a key part of EDA.
Incorrect! Try again.
13What is the primary goal of Exploratory Data Analysis (EDA)?
EDA workflow integration
Easy
A.To prove a pre-defined hypothesis with statistical tests.
B.To collect the raw data from its source.
C.To understand the data, find patterns, and summarize its main characteristics.
D.To build the final, most accurate machine learning model.
Correct Answer: To understand the data, find patterns, and summarize its main characteristics.
Explanation:
EDA is an initial, investigative phase focused on summarizing, visualizing, and understanding a dataset before formal modeling begins.
Incorrect! Try again.
14A country's name (e.g., 'USA', 'Canada', 'India') is an example of what type of data?
Types of data
Easy
A.Ordinal data
B.Ratio data
C.Nominal data
D.Interval data
Correct Answer: Nominal data
Explanation:
Nominal data represents categories without any intrinsic order or ranking. One country name is not 'greater' or 'less' than another.
Incorrect! Try again.
15If a scatter plot shows data points forming a cloud with no discernible slope, what does this suggest about the relationship between the two variables?
Bivariate analysis using Scatter plots
Easy
A.There is a strong positive correlation.
B.There is little to no linear correlation.
C.The variables are causally related.
D.There is a strong negative correlation.
Correct Answer: There is little to no linear correlation.
Explanation:
A random, cloud-like arrangement of points on a scatter plot indicates that there is no clear linear trend, suggesting a correlation close to zero.
Incorrect! Try again.
16In a box plot, the 'box' itself visually represents the:
Box plot
Easy
A.Interquartile Range (IQR)
B.Full range of the data
C.Standard Deviation
D.Mean
Correct Answer: Interquartile Range (IQR)
Explanation:
The box in a box plot spans from the first quartile (Q1) to the third quartile (Q3). The length of the box is the Interquartile Range, calculated as .
Incorrect! Try again.
17A violin plot is useful because it combines a box plot with a:
Violin plots for category vs numeric
Easy
A.Kernel Density Estimate (KDE) plot
B.Line plot
C.Bar chart
D.Scatter plot
Correct Answer: Kernel Density Estimate (KDE) plot
Explanation:
A violin plot shows the summary statistics of a box plot while also showing the full distribution of the data, similar to a kernel density plot, on each side.
Incorrect! Try again.
18What is the main advantage of using a heatmap to display a correlation matrix?
Correlation analysis using Heatmaps
Easy
A.It calculates the p-value for each correlation automatically.
B.It can plot more than two variables at once.
C.It is the only way to visualize correlations.
D.It uses color to help quickly identify the strength and direction of correlations.
Correct Answer: It uses color to help quickly identify the strength and direction of correlations.
Explanation:
Heatmaps use a color scale to represent numerical values, making it very easy to scan a large correlation matrix and spot strong positive or negative relationships at a glance.
Incorrect! Try again.
19In a perfectly symmetrical distribution, what is the value of skewness?
Distribution analysis: Skewness
Easy
A.0
B.1
C.It depends on the standard deviation.
D.-1
Correct Answer: 0
Explanation:
Skewness measures the asymmetry of a distribution. A value of 0 indicates perfect symmetry, like that of a normal distribution.
Incorrect! Try again.
20After performing initial data cleaning and loading, which activity is a common next step in the EDA workflow?
EDA workflow integration
Easy
A.Writing the final project report.
B.Univariate analysis to understand individual variables.
C.Deploying the model to production.
D.Choosing the final model algorithm.
Correct Answer: Univariate analysis to understand individual variables.
Explanation:
A logical EDA workflow starts by understanding the dataset as a whole, then moves to analyzing individual variables (univariate analysis), and then to relationships between variables (bivariate/multivariate analysis).
Incorrect! Try again.
21A data scientist is preparing data for a multiple linear regression model. They generate a correlation heatmap and notice two independent variables, house_size_sqft and num_bedrooms, have a correlation coefficient of 0.88. What is the most significant issue this presents for the model?
Multicollinearity
Medium
A.The presence of significant outliers in both variables.
B.A non-linear relationship that the linear model cannot capture.
C.Multicollinearity, which can make model coefficients unstable and difficult to interpret.
D.Low variance in the predictor variables, making them poor predictors.
Correct Answer: Multicollinearity, which can make model coefficients unstable and difficult to interpret.
Explanation:
A high correlation coefficient (typically > 0.7 or 0.8) between two independent (predictor) variables is a strong indicator of multicollinearity. This issue doesn't reduce the predictive power of the model as a whole, but it makes the individual coefficients for the correlated variables unreliable and hard to interpret.
Incorrect! Try again.
22An analyst wants to compare the distribution of salaries across different departments in a company. Which plot provides the most detailed information by combining the summary statistics of a box plot with a kernel density estimate of the distribution?
Violin plots for category vs numeric
Medium
A.Scatter plot
B.Clustered bar chart
C.Violin plot
D.Stacked histogram
Correct Answer: Violin plot
Explanation:
A violin plot is specifically designed for this purpose. It shows the full distribution of a numeric variable for different categories. The width of the plot represents the density of the data, and it often includes a box plot or marker for the median and interquartile range inside.
Incorrect! Try again.
23You calculate the skewness of a feature representing exam scores and find it to be -1.5. How would you interpret the distribution of these scores?
Distribution analysis: Skewness, Kurtosis
Medium
A.The distribution is heavily skewed to the right, with a long tail of high scores, and most students scored low.
B.The distribution is heavily skewed to the left, with a long tail of low scores, and most students scored high.
C.The distribution is bimodal, suggesting two distinct groups of student performance.
D.The distribution is symmetric, with an equal number of high and low scores around the mean.
Correct Answer: The distribution is heavily skewed to the left, with a long tail of low scores, and most students scored high.
Explanation:
Negative skewness (left-skewed) means the left tail of the distribution is longer or fatter than the right tail. In this context, the mass of the distribution is concentrated on the right side (higher scores), with a tail pointing towards the lower scores.
Incorrect! Try again.
24A box plot for a feature age shows the median line (Q2) is very close to the bottom of the box (the first quartile, Q1). What does this indicate about the data distribution?
Box plot
Medium
A.Approximately 50% of the data points are considered outliers.
B.The data is negatively skewed (skewed to the left).
C.The interquartile range (IQR) is very small, indicating low variability.
D.The data is positively skewed (skewed to the right).
Correct Answer: The data is positively skewed (skewed to the right).
Explanation:
If the median is closer to Q1, it means the data points between Q1 and Q2 are more compressed than the data points between Q2 and Q3. This results in the upper part of the distribution (and the upper whisker) being more spread out, which is characteristic of a positive or right-skewed distribution.
Incorrect! Try again.
25When analyzing a correlation heatmap, you see a cell with a value of -0.92 between variables study_hours and error_rate. What is the most appropriate interpretation?
Correlation analysis using Heatmaps
Medium
A.There is a strong positive linear relationship; as one increases, the other increases.
B.The relationship is causal; more study hours cause a lower error rate.
C.There is a strong negative linear relationship; as one increases, the other decreases.
D.There is virtually no relationship between the variables.
Correct Answer: There is a strong negative linear relationship; as one increases, the other decreases.
Explanation:
A correlation coefficient close to -1 indicates a strong inverse (negative) linear relationship. This means that as the value of study_hours tends to go up, the value of error_rate tends to go down. Correlation does not imply causation.
Incorrect! Try again.
26You are trying to load a very large CSV file named transactions.csv that contains millions of rows, and your machine is running out of memory. Which Pandas read_csv strategy is most effective for processing the entire file without loading it all into memory at once?
Loading data using Pandas
Medium
A.Setting header=None to ignore the column names and save a small amount of memory.
B.Setting low_memory=False, which forces Pandas to read the whole file at once to infer dtypes.
C.Using usecols to load only a small subset of columns, even if all columns are needed for analysis.
D.Using the chunksize parameter to create an iterator and process the file in smaller pieces.
Correct Answer: Using the chunksize parameter to create an iterator and process the file in smaller pieces.
Explanation:
The chunksize parameter in pd.read_csv returns a TextFileReader object, which is an iterator. This allows you to loop through the file in chunks of a specified size, performing calculations on each chunk and aggregating the results, thus avoiding loading the entire large file into RAM.
Incorrect! Try again.
27You are analyzing daily website traffic data over several years using a line plot. You notice that traffic consistently peaks in November-December and drops in January-February of every year. What is this recurring pattern called?
Detecting patterns, anomalies and trends
Medium
A.An anomaly
B.A random fluctuation
C.Seasonality
D.A long-term trend
Correct Answer: Seasonality
Explanation:
Seasonality refers to predictable, repeating patterns or variations that occur at regular intervals over a fixed period, such as a year. The holiday season traffic spike is a classic example of seasonality in time-series data.
Incorrect! Try again.
28You create a histogram for the price of houses in a city and observe two distinct, separate peaks (a bimodal distribution). What is the most plausible interpretation?
Univariate analysis using Histogram
Medium
A.The data contains a significant number of entry errors.
B.The data is perfectly normally distributed.
C.There are likely two different sub-populations of houses (e.g., apartments and detached homes) with different typical price points.
D.The data is uniformly distributed across all price ranges.
Correct Answer: There are likely two different sub-populations of houses (e.g., apartments and detached homes) with different typical price points.
Explanation:
A bimodal distribution often indicates that the dataset is composed of two different underlying groups or populations. In this case, the two peaks could represent two distinct types of housing, each with its own central tendency for price.
Incorrect! Try again.
29A scatter plot of fertilizer_amount vs crop_yield shows points forming a curve that goes up and then comes down, resembling an inverted 'U'. The calculated Pearson correlation coefficient is 0.05. What is the correct conclusion?
Bivariate analysis using Scatter plots
Medium
A.There is no relationship between fertilizer amount and crop yield.
B.There is a strong linear relationship between the variables.
C.There is a strong non-linear relationship, and the low Pearson correlation is expected because it only measures linear association.
D.The data contains too many outliers to draw a valid conclusion.
Correct Answer: There is a strong non-linear relationship, and the low Pearson correlation is expected because it only measures linear association.
Explanation:
The Pearson correlation coefficient is a measure of the linear relationship between two variables. A value near zero indicates the absence of a linear relationship, but it does not rule out a strong non-linear one. The inverted 'U' shape is a clear pattern that Pearson correlation fails to capture.
Incorrect! Try again.
30In a typical machine learning project workflow, what is the primary role of Exploratory Data Analysis (EDA)?
EDA workflow integration
Medium
A.To directly build and train the final predictive model without any data transformation.
B.To deploy the final model to a production environment.
C.To collect raw data from various sources.
D.To summarize data characteristics, find patterns, detect anomalies, and inform feature engineering and model selection.
Correct Answer: To summarize data characteristics, find patterns, detect anomalies, and inform feature engineering and model selection.
Explanation:
EDA is a critical, iterative step that occurs after data collection and initial cleaning. Its purpose is to gain a deep understanding of the data's structure, distributions, relationships, and anomalies. The insights from EDA are crucial for making informed decisions in subsequent steps like feature engineering, data preprocessing, and choosing an appropriate model.
Incorrect! Try again.
31A dataset of daily stock returns has a kurtosis value of 9.0. A normal distribution has a kurtosis of 3.0. What does this high kurtosis value (leptokurtosis) imply about the investment risk?
Distribution analysis: Skewness, Kurtosis
Medium
A.The distribution is platykurtic, with fewer outliers than a normal distribution.
B.The risk is lower than a normal distribution because returns are more predictable.
C.The risk is higher because the distribution has "fatter tails," meaning a higher probability of extreme positive or negative returns (outliers).
D.The kurtosis value is irrelevant for assessing financial risk.
Correct Answer: The risk is higher because the distribution has "fatter tails," meaning a higher probability of extreme positive or negative returns (outliers).
Explanation:
A high kurtosis value (>3) indicates a leptokurtic distribution. In finance, this means the distribution has a sharper peak around the mean and heavier/fatter tails. These fat tails signify that extreme events (large gains or large losses) are more likely to occur than a normal distribution would predict, which translates to higher risk.
Incorrect! Try again.
32A dataset for an e-commerce site includes a product_ID column (e.g., "SKU-84302", "SKU-91034"). Although it contains numbers, it is used for identification only, and mathematical operations on it are meaningless. What is the correct data type for this column?
Types of data
Medium
A.Continuous Numerical
B.Discrete Numerical
C.Ordinal Categorical
D.Nominal Categorical
Correct Answer: Nominal Categorical
Explanation:
This is nominal data. The values are labels or names used to identify unique items. There is no intrinsic order, and arithmetic operations like averaging product_IDs would make no sense. It should be treated as a string or category, not a number.
Incorrect! Try again.
33You are analyzing a dataset of customer support tickets. To quickly visualize the number of tickets for each priority level ("Low", "Medium", "High", "Urgent"), which type of plot is most suitable?
Univariate analysis using Count plots
Medium
A.Count plot or Bar chart
B.Histogram
C.Scatter plot
D.Box plot
Correct Answer: Count plot or Bar chart
Explanation:
A count plot (a specific type of bar chart) is designed to show the frequency (count) of observations in each category of a categorical variable. This is the most direct and effective way to visualize the distribution of ticket priorities.
Incorrect! Try again.
34An analyst is studying the closing price of a stock over the last 5 years. To best visualize the trend and potential seasonal patterns over this continuous time period, what is the most appropriate plot?
Bivariate analysis using Line plots
Medium
A.A line plot with Time on the x-axis and Price on the y-axis.
B.A histogram of all the stock prices.
C.A box plot of prices grouped by month.
D.A scatter plot of Price vs. Day of the Year.
Correct Answer: A line plot with Time on the x-axis and Price on the y-axis.
Explanation:
Line plots are the standard and most effective visualization for time-series data. They connect data points in chronological order, making it easy to see trends, seasonality, and other time-dependent patterns in the stock price.
Incorrect! Try again.
35A common method to diagnose multicollinearity is by calculating the Variance Inflation Factor (VIF) for each predictor. If a predictor variable has a VIF of 25, what does this indicate?
Multicollinearity
Medium
A.The variable has a weak, negative correlation with the target variable.
B.The variable is not correlated with any other predictors and is a good candidate for the model.
C.The variance of the regression coefficient for this variable is inflated by a factor of 25 due to its strong correlation with other predictors.
D.The variable has 25% missing values that need to be imputed.
Correct Answer: The variance of the regression coefficient for this variable is inflated by a factor of 25 due to its strong correlation with other predictors.
Explanation:
VIF quantifies how much the variance of an estimated regression coefficient is increased because of multicollinearity. A VIF of 1 means no correlation. A common rule of thumb is that VIF values greater than 5 or 10 indicate a problematic level of multicollinearity. A VIF of 25 is very high and suggests the variable should be investigated or removed.
Incorrect! Try again.
36You are comparing the distribution of test scores for two different teaching methods, A and B. When would a violin plot be significantly more informative than a standard box plot?
Violin plots for category vs numeric
Medium
A.When the dataset is extremely small (e.g., fewer than 10 students per method).
B.When the distribution of scores for method A is bimodal (has two peaks), while method B's is unimodal.
C.When you need to identify the exact minimum and maximum scores in the data.
D.When you only care about the median and interquartile range.
Correct Answer: When the distribution of scores for method A is bimodal (has two peaks), while method B's is unimodal.
Explanation:
The primary advantage of a violin plot over a box plot is its inclusion of a kernel density estimate. This shows the full shape of the distribution. A box plot would hide the fact that one distribution is bimodal, while a violin plot would clearly visualize the two separate peaks, providing a crucial insight.
Incorrect! Try again.
37You are examining a scatter plot of Years of Experience vs Salary. You observe that the points generally form a tight, upward-sloping line, but there are a few points representing high experience with an unusually low salary. What do these points likely represent?
Detecting patterns, anomalies and trends
Medium
A.The normal, expected variance in salary for a given experience level.
B.Evidence of a non-linear relationship that requires a polynomial model.
C.Anomalies, possibly due to data entry errors or representing a different employee group (e.g., a different profession or part-time workers).
D.A negative correlation between experience and salary for senior employees.
Correct Answer: Anomalies, possibly due to data entry errors or representing a different employee group (e.g., a different profession or part-time workers).
Explanation:
Points that deviate significantly from the main trend or pattern are potential anomalies or outliers. In this context, they warrant further investigation to determine if they are errors or belong to a distinct sub-population that follows a different salary structure.
Incorrect! Try again.
38In a correlation heatmap for a real estate dataset, the cell for crime_rate and property_value is colored dark red, while the cell for school_rating and property_value is colored dark blue. The color scale indicates red for negative and blue for positive correlation. What does this imply?
Correlation analysis using Heatmaps
Medium
A.There is no significant correlation between these variables and property_value.
B.crime_rate has a strong negative correlation with property_value, and school_rating has a strong positive correlation.
C.Both crime_rate and school_rating have a strong positive correlation with property_value.
D.crime_rate has a strong positive correlation with property_value, and school_rating has a strong negative correlation.
Correct Answer: crime_rate has a strong negative correlation with property_value, and school_rating has a strong positive correlation.
Explanation:
This question tests the ability to interpret a standard heatmap visualization. Typically, distinct colors are used for positive and negative correlations. Logically, higher crime rates are associated with lower property values (negative correlation), and better school ratings are associated with higher property values (positive correlation).
Incorrect! Try again.
39You create a scatter plot to investigate the relationship between two continuous variables, A and B. The plot shows the points arranged in a distinct funnel shape, where the vertical spread of B increases as A increases. This pattern is a classic sign of:
Bivariate analysis using Scatter plots
Medium
A.Autocorrelation
B.Multicollinearity
C.Heteroscedasticity
D.Homoscedasticity
Correct Answer: Heteroscedasticity
Explanation:
Heteroscedasticity is the term for the situation where the variability (variance) of one variable is unequal across the range of values of a second variable that predicts it. A funnel shape in a scatter plot is the classic visual indicator of this phenomenon, which is an important assumption to check for in linear regression.
Incorrect! Try again.
40In a standard Tukey box plot, a data point is typically flagged as a potential outlier if it falls outside which of the following ranges? (Where IQR is the Interquartile Range, Q1 is the first quartile, and Q3 is the third quartile).
Box plot
Medium
A.Below the mean minus 2 standard deviations or above the mean plus 2 standard deviations.
B.Below or above .
C.Outside the 5th and 95th percentiles of the data.
D.Strictly within the range of .
Correct Answer: Below or above .
Explanation:
This question tests the specific definition used for identifying potential outliers in a Tukey box plot. The 'whiskers' of the plot extend to the furthest data point within from the box (Q1 or Q3). Any data point beyond these whiskers is marked as an outlier.
Incorrect! Try again.
41You are building a predictive model and find high multicollinearity between two features, feature_A and feature_B. How would this multicollinearity likely affect a standard Linear Regression model versus a Random Forest model?
Multicollinearity
Hard
A.It will cause overfitting in Linear Regression but lead to underfitting in the Random Forest model due to redundant information.
B.It will destabilize both models, causing poor predictive performance and unreliable feature importances in both Linear Regression and Random Forest.
C.It will primarily impact the Random Forest by making feature importance measures (like Gini importance) unreliable for feature_A and feature_B, but will have a lesser effect on the Linear Regression's coefficient stability.
D.It will significantly inflate coefficient variance in Linear Regression, making interpretation unreliable, but will have a minimal impact on the Random Forest's predictive accuracy and feature importance stability.
Correct Answer: It will significantly inflate coefficient variance in Linear Regression, making interpretation unreliable, but will have a minimal impact on the Random Forest's predictive accuracy and feature importance stability.
Explanation:
Linear Regression coefficients are highly sensitive to multicollinearity, as the model struggles to attribute effect to individual correlated predictors, leading to large standard errors and unstable coefficients. Random Forests, being tree-based, are much more robust. If two features are highly correlated, the model might randomly pick one over the other at a given split, but since it builds many trees on different subsets of data and features, this instability is averaged out, and the overall predictive performance remains strong. While feature importance might be split between the correlated features, the model's predictive power is largely unaffected.
Incorrect! Try again.
42A financial analyst is modeling stock returns and finds the distribution is highly leptokurtic (excess kurtosis >> 0), even though it is symmetric (skewness ≈ 0). If the analyst uses a model that assumes a normal distribution (mesokurtic), what is the most critical risk-related consequence?
Distribution analysis: Kurtosis
Hard
A.The model will systematically underestimate the probability of extreme events (both positive and negative), leading to an underestimation of risk (e.g., Value at Risk).
B.The model's prediction of the mean return will be biased, even though the distribution is symmetric.
C.The model will be unable to converge because the variance of the return distribution is technically infinite.
D.The model will systematically overestimate the probability of extreme events, leading to an overly conservative risk assessment.
Correct Answer: The model will systematically underestimate the probability of extreme events (both positive and negative), leading to an underestimation of risk (e.g., Value at Risk).
Explanation:
A leptokurtic distribution has 'fatter tails' than a normal distribution. This means that extreme outcomes (very large gains or very large losses) are more likely than a normal distribution would predict. A model assuming normality will miscalculate risk by underestimating the frequency and magnitude of these tail events, which is a critical failure in financial risk management.
Incorrect! Try again.
43You are comparing the distribution of 'salaries' across two 'departments' (A and B) using violin plots. Both departments have the exact same median salary. However, Department A's violin plot is short and wide, resembling a circle, while Department B's is tall and narrow with long tails. What is the most insightful business interpretation?
Bivariate analysis using Violin plots for category vs numeric
Hard
A.Salaries in Department B are more predictable and consistent around the median, but there are extreme outliers, whereas Department A has high salary variance for the majority of its employees.
B.Department A has a more equitable salary distribution with most employees earning near the median, while Department B has significant salary inequality with clusters at high and low ends.
C.Department B is a better department to work for because the potential for a very high salary is greater, as indicated by the long upper tail.
D.The total salary expenditure for both departments is likely the same because their medians are identical.
Correct Answer: Salaries in Department B are more predictable and consistent around the median, but there are extreme outliers, whereas Department A has high salary variance for the majority of its employees.
Explanation:
A short, wide (platykurtic-like) violin plot (Dept A) indicates that a large number of data points are spread out and not clustered around the median; the variance is high among the bulk of employees. A tall, narrow (leptokurtic-like) violin plot (Dept B) indicates that most employees' salaries are tightly clustered around the median, implying consistency. The long tails, however, show that there are significant outliers (very high and/or very low earners). Therefore, salaries are more predictable for the average employee in Dept B, but the range of possibilities is more extreme.
Incorrect! Try again.
44During the EDA phase of a customer churn prediction project, you discover a feature last_call_complaint that has a 98% correlation with the target variable churned. What is the most critical next step in your EDA workflow?
EDA workflow integration
Hard
A.Immediately investigate the feature's temporal relationship with the target variable to check for data leakage.
B.Remove the feature from the dataset to prevent multicollinearity with other features.
C.Apply a non-linear transformation to the feature to see if the correlation can be increased to 100%.
D.Conclude that you have found the most important predictor and proceed to build a simple logistic regression model using only this feature.
Correct Answer: Immediately investigate the feature's temporal relationship with the target variable to check for data leakage.
Explanation:
An almost perfect correlation is a major red flag for data leakage, where information from the future (the outcome) has leaked into the feature set. A 'last call complaint' likely occurs at the time the customer is churning, not before. Using this feature would create a model that is unrealistically accurate but useless in practice because the information isn't available at the time of prediction. The critical next step is to confirm this temporal issue, which is a core part of a robust EDA process, before any modeling decisions are made.
Incorrect! Try again.
45You are loading a 10 GB CSV file into a machine with 8 GB of RAM using Pandas. The file contains 50 columns, but you only need to perform calculations on 3 of them: user_id, transaction_amount, and timestamp. What is the most memory-efficient approach to calculate the average transaction_amount per user_id?
Loading data using Pandas
Hard
A.Use pd.read_csv with the chunksize and usecols parameters, process each chunk in a loop, and aggregate the results.
B.Use the low_memory=False parameter in pd.read_csv to load the data in a single, more efficient block.
C.Increase the system's swap/page file size to be larger than 10 GB before loading the data with pd.read_csv.
D.Load the entire file using pd.read_csv and then immediately delete the unnecessary columns using df.drop() before processing.
Correct Answer: Use pd.read_csv with the chunksize and usecols parameters, process each chunk in a loop, and aggregate the results.
Explanation:
This is the most memory-efficient method. The usecols parameter ensures that only the three necessary columns are read from the disk into memory for each chunk. The chunksize parameter reads the file in smaller, manageable pieces, preventing the entire 10 GB file from being loaded at once. By iterating through these chunks and performing partial aggregations, you can compute the final result without ever exceeding the available RAM. The other options are inefficient or infeasible given the memory constraints.
Incorrect! Try again.
46You have a feature with a strong positive skew (right-skewed). You apply a log transformation (), but the resulting distribution becomes moderately negatively skewed. What is the most likely reason for this 'overshoot' and what would be a more appropriate next step?
Distribution analysis: Skewness
Hard
A.This indicates the presence of bimodal distribution which was not apparent before the transformation. The next step should be to use a clustering algorithm to separate the modes.
B.The negative skew is an artifact of floating-point precision errors and should be ignored. The log-transformed data is the best version to use for modeling.
C.The original data must contain negative values, which makes the log transformation mathematically invalid and produces unpredictable results.
D.The log transformation was too strong for the given skewness. A milder transformation like a square root transform () or a more adaptive one like a Box-Cox transformation should be tried.
Correct Answer: The log transformation was too strong for the given skewness. A milder transformation like a square root transform () or a more adaptive one like a Box-Cox transformation should be tried.
Explanation:
Different transformations apply different levels of 'strength' to correct skewness. The log transformation is quite strong. If it overcorrects a positive skew into a negative one, it implies a less potent transformation is needed. The square root transform is milder than the log transform. A Box-Cox transformation is even better as it algorithmically finds the optimal lambda parameter to achieve the best normalization, making it adaptive to the specific degree of skew in the data.
Incorrect! Try again.
47You generate a box plot for a feature and observe that the median line is identical to the first quartile (Q1). What is the most accurate interpretation of this observation?
Univariate analysis using Box plot
Hard
A.There are no data points between the first quartile and the median.
B.The dataset is invalid, as it is mathematically impossible for the median and Q1 to be equal.
C.The data is highly negatively skewed, causing the median to be pulled down towards Q1.
D.At least 25% of the data points have the exact same value, which is the median and Q1 value.
Correct Answer: At least 25% of the data points have the exact same value, which is the median and Q1 value.
Explanation:
The first quartile (Q1) is the value below which 25% of the data falls. The median (Q2) is the value below which 50% of the data falls. If Q1 and the median are the same value (let's say V), it means that at least 50% of the data is less than or equal to V, and at least 25% of the data is less than or equal to V. For these to be the same, it requires that all data points from the 25th percentile to the 50th percentile are equal to V. This indicates a significant number of duplicate values in the dataset at that specific point.
Incorrect! Try again.
48In a correlation heatmap for a regression problem, you observe that feature_X has a correlation of +0.7 with the target, feature_Y has a correlation of +0.6 with the target, and feature_X and feature_Y have a correlation of +0.9 with each other. From a feature selection perspective for a linear model, what is the most strategically sound decision?
Correlation analysis using Heatmaps
Hard
A.Keep both features and use a regularization technique like Ridge or Lasso to handle the multicollinearity during modeling.
B.Combine feature_X and feature_Y into a single feature using Principal Component Analysis (PCA) before modeling.
C.Discard both features because their high inter-correlation makes them unreliable predictors.
D.Keep feature_X and discard feature_Y because X is more correlated with the target and including both would introduce strong multicollinearity.
Correct Answer: Keep feature_X and discard feature_Y because X is more correlated with the target and including both would introduce strong multicollinearity.
Explanation:
While using regularization or PCA are valid modeling strategies, the question asks for a feature selection decision based only on the heatmap. With a correlation of +0.9, feature_X and feature_Y are highly redundant. Including both in a linear model would introduce significant multicollinearity, making the model coefficients unstable and hard to interpret. The most direct and effective feature selection strategy in this scenario is to retain the feature that has the stronger relationship with the target variable (feature_X at +0.7) and discard the other (feature_Y). This simplifies the model while retaining most of the predictive information.
Incorrect! Try again.
49A scatter plot of a model's residuals (Y-axis) against its predicted values (X-axis) shows a distinct funnel shape, widening from left to right. What is this pattern called and what is its primary implication for a linear regression model?
Bivariate analysis using Scatter plots
Hard
A.Multicollinearity; it suggests that two or more predictor variables are highly correlated with each other, affecting coefficient stability.
B.Autocorrelation; it violates the assumption of independent errors, suggesting the model is not capturing some time-series or sequential pattern.
C.Heteroscedasticity; it violates the assumption of constant variance of errors, making inferences about the coefficients (like p-values and confidence intervals) unreliable.
D.Non-linearity; it violates the assumption of a linear relationship, indicating that a polynomial or other non-linear model is needed.
Correct Answer: Heteroscedasticity; it violates the assumption of constant variance of errors, making inferences about the coefficients (like p-values and confidence intervals) unreliable.
Explanation:
A funnel shape in a residual plot indicates that the variance of the errors is not constant across all levels of the predicted values. This condition is known as heteroscedasticity. While the coefficient estimates in Ordinary Least Squares (OLS) remain unbiased, their standard errors will be biased. This makes hypothesis testing, p-values, and confidence intervals unreliable, potentially leading to incorrect conclusions about the significance of predictor variables.
Incorrect! Try again.
50While performing EDA on transaction data, you isolate a small, dense cluster of points using a density-based algorithm like DBSCAN. These points are far from the main distribution but are internally consistent. The business context is fraud detection. What is the most appropriate classification and action for this cluster?
Detecting patterns, anomalies and trends
Hard
A.A segment of legitimate, high-value customers; they should be analyzed separately to build a specialized personalization model.
B.A potential emerging fraud pattern (a 'wolf pack'); these points should be investigated as a group rather than being dismissed as individual random outliers.
C.Global outliers; they should be removed from the dataset before training a model to improve its generalization on the main distribution.
D.A collection of data entry errors; these points should be corrected or removed after consulting with the data source owner.
Correct Answer: A potential emerging fraud pattern (a 'wolf pack'); these points should be investigated as a group rather than being dismissed as individual random outliers.
Explanation:
In anomaly detection, an outlier is typically a single point that deviates from the norm. However, a cluster of points that is anomalous with respect to the rest of the data but internally cohesive represents a novel pattern of behavior. In fraud detection, this is often called a 'wolf pack' and can signify a new, coordinated fraud tactic. Dismissing them as random outliers or errors would be a mistake. The correct action is to flag them for deep investigation as a potential new class of behavior that the model must learn to detect.
Incorrect! Try again.
51A survey asks for user satisfaction on a scale: 1 (Very Unsatisfied), 2 (Unsatisfied), 3 (Neutral), 4 (Satisfied), 5 (Very Satisfied). A data scientist decides to calculate the mean satisfaction score. What is the fundamental assumption they are making and why might it be problematic?
Types of data
Hard
A.They are treating ordinal data as interval data, which assumes the 'distance' between each category (e.g., between 1 and 2, and between 4 and 5) is equal and meaningful, which may not be true.
B.They are treating interval data as ratio data, which incorrectly assumes the existence of a true zero point (e.g., a score of 4 is twice as good as a score of 2).
C.They are treating categorical data as numerical data, which will cause a TypeError in most analytical software.
D.They are treating nominal data as ordinal data, which assumes an inherent order in the categories that does not exist.
Correct Answer: They are treating ordinal data as interval data, which assumes the 'distance' between each category (e.g., between 1 and 2, and between 4 and 5) is equal and meaningful, which may not be true.
Explanation:
This scale is classic ordinal data: there is a clear order, but the intervals between the ranks are not guaranteed to be equal. The psychological 'jump' from 'Very Unsatisfied' to 'Unsatisfied' might be very different from the jump from 'Neutral' to 'Satisfied'. By calculating the mean, the data scientist is implicitly assuming these intervals are equal, treating the data as if it were on an interval scale. This can lead to misleading summary statistics. While common practice, it's a theoretical violation, and robust analysis should also consider medians and modes which are appropriate for ordinal data.
Incorrect! Try again.
52After running a regression, you find that the model has a very high R-squared value (0.92), but most of your predictor variables have high p-values, suggesting they are not statistically significant. What is the most likely diagnosis and the most appropriate tool to confirm it?
Multicollinearity
Hard
A.The issue is heteroscedasticity. The best diagnostic tool is to create a residual vs. fitted values plot and look for a pattern.
B.The issue is likely severe multicollinearity. The best diagnostic tool is to calculate the Variance Inflation Factor (VIF) for each predictor.
C.The model is overfitted to the training data. The best way to confirm this is to evaluate the model's performance on a hold-out test set.
D.The sample size is too small to achieve statistical significance. The best approach is to collect more data.
Correct Answer: The issue is likely severe multicollinearity. The best diagnostic tool is to calculate the Variance Inflation Factor (VIF) for each predictor.
Explanation:
The classic symptom of multicollinearity is a high overall model fit (high R-squared) combined with insignificant individual predictors (high p-values). This happens because the correlated predictors explain the same variance in the target, and the model cannot disentangle their individual effects, inflating their standard errors. A correlation matrix can hint at this, but the definitive diagnostic tool is the Variance Inflation Factor (VIF). A VIF value greater than 5 or 10 for a predictor is a strong indication of problematic multicollinearity.
Incorrect! Try again.
53An analyst creates a histogram of customer ages and observes a distinct bimodal distribution with peaks around 25 years and 55 years. What is the most likely and actionable insight derived from this observation during EDA?
Univariate analysis using Histogram
Hard
A.The sampling method used to collect the data was biased, over-sampling from two specific age groups, and the data is not representative of the true population.
B.The customer base consists of two distinct subpopulations or segments (e.g., 'young professionals' and 'pre-retirees'). This suggests that a single model for all customers may underperform, and segment-specific analysis or modeling is warranted.
C.The data contains a significant number of outliers that are creating a second, artificial peak in the distribution. These outliers should be removed.
D.The bin width of the histogram is too small, creating artificial peaks and troughs. The analysis should be redone with a larger bin size to smooth the distribution.
Correct Answer: The customer base consists of two distinct subpopulations or segments (e.g., 'young professionals' and 'pre-retirees'). This suggests that a single model for all customers may underperform, and segment-specific analysis or modeling is warranted.
Explanation:
A bimodal distribution is a strong indicator that the underlying data is a mixture of two different distributions. In a business context, this almost always points to the existence of distinct customer segments. Ignoring this and treating all customers as a single group can lead to poor model performance, as the relationships between variables might differ significantly between the two groups. The most valuable EDA insight is to recognize this segmentation and plan subsequent analysis and modeling around it.
Incorrect! Try again.
54A data scientist generates a correlation heatmap and finds a correlation of -0.95 between average_daily_temperature and heating_oil_consumption. A colleague suggests that this implies that low temperatures cause high heating oil consumption. Why is this conclusion, although plausible, not rigorously supported by the heatmap alone?
Correlation analysis using Heatmaps
Hard
A.A heatmap is not the correct visualization for establishing causation; a series of scatter plots would be required.
B.The correlation value is too close to -1.0, which suggests a data leak or an error in calculation rather than a real-world relationship.
C.The correlation is negative, which indicates an inverse relationship, not a causal one. Causal relationships must have positive correlations.
D.Correlation does not imply causation. The heatmap only shows a statistical association; an unobserved confounding variable (e.g., time of year/season) could be the true cause for both.
Correct Answer: Correlation does not imply causation. The heatmap only shows a statistical association; an unobserved confounding variable (e.g., time of year/season) could be the true cause for both.
Explanation:
This is a classic 'correlation vs. causation' problem. While the causal link is intuitive and likely true in this case, the correlation coefficient itself does not prove it. It only quantifies the degree to which two variables move together. To establish causation, one would need to conduct a controlled experiment or use more advanced causal inference methods. A confounding variable, like the season, is driving both: in winter (a single seasonal state), temperatures are low and oil consumption is high. The heatmap is a tool for discovering associations, which are candidates for causal investigation, not proof of it.
Incorrect! Try again.
55You are comparing two features for an anomaly detection system. Feature A has Skewness = 0, Kurtosis = 8. Feature B has Skewness = 3, Kurtosis = 3 (mesokurtic). Which feature is likely to present a greater challenge for an anomaly detection algorithm that is sensitive to extreme values, and why?
Distribution analysis: Skewness, Kurtosis
Hard
A.Neither, because anomaly detection algorithms are specifically designed to be robust to non-normal distributions.
B.Both will be equally challenging, as any deviation from a normal distribution (Skewness=0, Kurtosis=3) complicates anomaly detection.
C.Feature B, because its high skewness indicates that the distribution is asymmetric, which inherently makes it harder to define a 'normal' range compared to a symmetric distribution.
D.Feature A, because its high kurtosis (leptokurtic) indicates a distribution with extremely heavy tails, meaning outliers are more frequent and more extreme than in a normal distribution.
Correct Answer: Feature A, because its high kurtosis (leptokurtic) indicates a distribution with extremely heavy tails, meaning outliers are more frequent and more extreme than in a normal distribution.
Explanation:
Kurtosis is a direct measure of the 'tailedness' of a distribution. A kurtosis of 8 is significantly higher than that of a normal distribution (3), indicating a leptokurtic distribution. This means the distribution has much more mass in its tails, which translates to a higher frequency of extreme values (outliers). While the skewness of Feature B (3) indicates asymmetry, the high kurtosis of Feature A is a more direct and severe indicator of the presence of extreme outliers, which is the primary challenge for many anomaly detection algorithms.
Incorrect! Try again.
56While using pd.read_csv('data.csv'), you encounter a DtypeWarning. Upon inspection, you find a column zip_code contains mostly 5-digit numbers but also some extended 'ZIP+4' codes as strings (e.g., '90210-1234'). Pandas infers the column as mixed-type, which is inefficient. What is the most robust way to load this data, ensuring the entire zip_code column is treated as a string to preserve all information?
Loading data using Pandas
Hard
A.Use the low_memory=False parameter to force Pandas to analyze the whole file before assigning a type.
B.Specify dtype={'zip_code': str} within the pd.read_csv call.
C.Load the data as is, then use df['zip_code'] = df['zip_code'].astype(str) after loading.
D.Pre-process the CSV file with another tool (e.g., sed/awk) to add quotes around all zip codes before loading.
Correct Answer: Specify dtype={'zip_code': str} within the pd.read_csv call.
Explanation:
Specifying the data type at read-time with the dtype parameter is the most efficient and robust solution. It tells Pandas to not even attempt type inference for that column and to simply read every value as a string from the start. This prevents the DtypeWarning, avoids memory inefficiencies associated with mixed-type columns, and is more direct than post-processing. Using .astype(str) after loading works but is less efficient because Pandas has already gone through the trouble of parsing and storing a mixed-type object column first. low_memory=False might resolve the warning but doesn't guarantee the desired final type.
Incorrect! Try again.
57You are performing EDA for a binary classification problem and a count plot of the target variable shows a 99:1 class imbalance. Which of the following is the most critical risk to consider during the EDA and visualization phase, even before modeling begins?
Univariate analysis using Count plots
Hard
A.The severe imbalance means that accuracy will be a misleading metric for model evaluation.
B.The dataset will require over-sampling techniques like SMOTE, which must be planned during EDA.
C.Many standard visualizations (like comparing feature distributions) can be misleading because the minority class is so sparse it may be invisible or appear as noise.
D.Count plots are an inappropriate visualization for imbalanced data; a pie chart should be used instead.
Correct Answer: Many standard visualizations (like comparing feature distributions) can be misleading because the minority class is so sparse it may be invisible or appear as noise.
Explanation:
This question focuses on the impact of imbalance on EDA itself, not just on modeling. When you create visualizations like a box plot of feature_X grouped by the target class, the box plot for the minority class will be constructed from very few data points, making it highly unstable and potentially non-representative. It might look like noise or an outlier. This can lead to incorrect conclusions about how features differ between classes. A good EDA process for imbalanced data involves being aware of this and potentially using stratified sampling for visualizations or using visualizations that handle density better. While the other options are relevant to the overall project, this is the most direct risk within the EDA phase.
Incorrect! Try again.
58Within a mature, agile machine learning pipeline, EDA is not a one-time, upfront phase. When is it most critical to re-run a significant portion of the EDA process?
EDA workflow integration
Hard
A.Before every single model retraining cycle, even if the data source and performance are stable.
B.When new data is ingested from a source that has undergone a known schema change or when a significant concept drift is suspected in the model's performance.
C.Only when the lead data scientist decides the current model's accuracy has dropped by more than 5%.
D.After the feature engineering phase is complete, to validate the new features, but not before.
Correct Answer: When new data is ingested from a source that has undergone a known schema change or when a significant concept drift is suspected in the model's performance.
Explanation:
EDA in an MLOps context is an ongoing process of validation and monitoring. It is most critical to perform a deep-dive EDA when there's a specific trigger suggesting the underlying data distribution has changed. A schema change (e.g., a column is added, a data type changes) is a hard trigger. A drop in model performance (concept drift) is a soft trigger that requires EDA to diagnose the 'why'. Re-running EDA on every cycle is inefficient if the data is stable. Tying it to a fixed performance drop threshold is arbitrary. EDA should be a diagnostic tool used proactively when changes are expected or reactively when they are observed.
Incorrect! Try again.
59You are analyzing a time-series line plot of website traffic. You observe a strong weekly seasonal pattern (peaks on weekdays, troughs on weekends) and an overall upward trend. However, there is a sudden, sharp, and permanent drop in the baseline traffic starting on a specific date. What is the most likely interpretation of this drop?
Bivariate analysis using Line plots
Hard
A.A simple outlier that should be smoothed over using a moving average before modeling.
B.Cyclical behavior in the data, which is a long-term pattern that will eventually reverse itself.
C.A structural break in the time series, possibly caused by an external event like a change in search engine algorithms or an internal event like a website redesign.
D.An issue with data collection or logging that started on that date, which should be investigated before any modeling.
Correct Answer: A structural break in the time series, possibly caused by an external event like a change in search engine algorithms or an internal event like a website redesign.
Explanation:
A sudden, permanent shift in the statistical properties (like the mean or variance) of a time series is known as a structural break. Unlike an outlier, which is a temporary blip, a structural break signifies a fundamental change in the underlying data generating process. It's crucial to identify this during EDA because it means that a single time-series model (like ARIMA) trained on data from before the break will not be valid for forecasting after the break. While a data collection issue is a possibility, the term 'structural break' is the correct statistical name for this observed pattern and implies an external cause must be investigated.
Incorrect! Try again.
60When analyzing user behavior data, you notice that a metric 'average_session_length' is consistently increasing month-over-month (a trend). However, the 'number_of_users' is decreasing over the same period. What is the most nuanced and potentially critical business insight from these two opposing trends?
Detecting patterns, anomalies and trends
Hard
A.The 'average_session_length' metric is likely flawed or being calculated differently over time, causing an artificial inflation.
B.The platform is losing casual users, but retaining a core group of highly engaged 'power users', potentially indicating a shift towards a more niche but dedicated user base.
C.The two trends are unrelated and should be analyzed and reported on separately to avoid drawing spurious conclusions.
D.The user interface has become less efficient, causing the remaining users to take longer to accomplish the same tasks, indicating a user experience problem.
Correct Answer: The platform is losing casual users, but retaining a core group of highly engaged 'power users', potentially indicating a shift towards a more niche but dedicated user base.
Explanation:
Detecting patterns in EDA involves synthesizing information from multiple plots. Seeing these two opposing trends together is highly insightful. A simple interpretation of decreasing users is negative. But when combined with increasing engagement from the remaining users, it paints a more complex picture. The most likely scenario is a change in the user population mix: less engaged, casual users are churning, while the more dedicated users are staying and becoming even more engaged. This is a critical insight that could heavily influence marketing and product strategy (e.g., focus on retaining power users vs. acquiring new casual users).