Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Which of the following is an example of categorical (qualitative) data?
Not quite. Try another option.
Answer: Blood type of a patient
Blood type (A, B, AB, O) represents categories with no inherent numeric value, making it categorical data. The others are numeric (quantitative).
Question 2 of 60 · types of data · Easy
Data that can only take specific separate values, such as the number of students in a class, is called:
Not quite. Try another option.
Answer: Discrete data
Discrete data consists of countable, separate values (e.g., 20 or 21 students), unlike continuous data which can take any value in a range.
Question 3 of 60 · types of data · Easy
A ranking of customer satisfaction as poor, average, good, excellent is an example of which data type?
Not quite. Try another option.
Answer: Ordinal data
Ordinal data has categories with a meaningful order or ranking, but the differences between them are not measurable.
Question 4 of 60 · types of data · Easy
Which scale of measurement has a true zero point?
Not quite. Try another option.
Answer: Ratio scale
The ratio scale has a true zero (e.g., weight, height), which allows meaningful ratios like "twice as heavy".
Question 5 of 60 · dealing with missing data · Easy
Replacing a missing numeric value with the average of the available values is known as:
Not quite. Try another option.
Answer: Mean imputation
Mean imputation fills missing values using the mean of the observed values for that variable, a simple and common technique.
Question 6 of 60 · dealing with missing data · Easy
Removing all rows that contain any missing values is referred to as:
Not quite. Try another option.
Answer: Listwise deletion
Listwise deletion (complete-case analysis) discards entire rows with any missing values, which is simple but may lose useful data.
Question 7 of 60 · dealing with missing data · Easy
In many datasets, missing values are commonly represented by which of the following?
Not quite. Try another option.
Answer: NaN
NaN (Not a Number) is a standard placeholder used to indicate missing or undefined values in datasets.
Question 8 of 60 · dealing with missing data · Easy
Which technique estimates a missing value using neighboring known data points, often in a sequence?
Not quite. Try another option.
Answer: Interpolation
Interpolation estimates missing values based on surrounding known values, useful for ordered or time-series data.
Question 9 of 60 · scatter plot · Easy
A scatter plot is primarily used to show the relationship between:
Not quite. Try another option.
Answer: Two numeric variables
A scatter plot displays points for pairs of values, revealing correlation or patterns between two numeric variables.
Question 10 of 60 · scatter plot · Easy
In a scatter plot, if points rise together from lower-left to upper-right, the relationship is:
Not quite. Try another option.
Answer: Positive correlation
An upward-sloping pattern from lower-left to upper-right indicates a positive correlation, where both variables increase together.
Question 11 of 60 · scatter plot · Easy
Each individual point in a scatter plot represents:
Not quite. Try another option.
Answer: One observation with two values
Every point corresponds to one observation, plotted using its value and value on the two axes.
Question 12 of 60 · histogram · Easy
A histogram is mainly used to display the:
Not quite. Try another option.
Answer: Distribution of a numeric variable
A histogram groups numeric data into intervals (bins) and shows how frequently values fall into each bin, revealing the distribution.
Question 13 of 60 · histogram · Easy
The intervals into which data is grouped in a histogram are called:
Not quite. Try another option.
Answer: Bins
Bins are the consecutive, non-overlapping intervals used to group data values in a histogram.
Question 14 of 60 · histogram · Easy
How does a histogram differ from a bar chart?
Not quite. Try another option.
Answer: Histogram bars are for continuous data and touch
Histograms display continuous numeric data with adjacent (touching) bars, while bar charts show categorical data with gaps between bars.
Question 15 of 60 · group plots · Easy
Group plots are most useful for:
Not quite. Try another option.
Answer: Comparing data across multiple groups
Group plots arrange multiple subplots or grouped visuals side by side to compare distributions or trends across categories.
Question 16 of 60 · group plots · Easy
A grouped bar chart is typically used to compare:
Not quite. Try another option.
Answer: Values across categories and subgroups
Grouped bar charts place bars for subgroups next to each other within each category, enabling side-by-side comparisons.
Question 17 of 60 · box plots · Easy
The line inside the box of a box plot represents the:
Not quite. Try another option.
Answer: Median
The central line in a box plot marks the median (the middle value) of the data.
Question 18 of 60 · box plots · Easy
In a box plot, points that fall far outside the whiskers are typically identified as:
Not quite. Try another option.
Answer: Outliers
Points beyond the whiskers are shown as outliers, indicating values that are unusually high or low compared to the rest.
Question 19 of 60 · box plots · Easy
The height of the box in a box plot represents the:
Not quite. Try another option.
Answer: Interquartile range (IQR)
The box spans from the first quartile () to the third quartile (), representing the interquartile range where the middle 50% of data lies.
Question 20 of 60 · dimensionality reduction · Easy
What is the main goal of dimensionality reduction?
Not quite. Try another option.
Answer: Reduce the number of features while keeping key information
Dimensionality reduction lowers the number of variables (features) while retaining as much important information as possible, simplifying analysis.
Question 21 of 60 · types of data · Medium
A dataset records customer satisfaction as Poor, Average, Good, and Excellent. Which data type best describes this variable?
Not quite. Try another option.
Answer: Ordinal categorical
The categories have a meaningful order (Poor < Average < Good < Excellent) but no fixed numeric distance between them, which defines an ordinal variable.
Question 22 of 60 · types of data · Medium
Temperature measured in degrees Celsius is an example of which measurement scale?
Not quite. Try another option.
Answer: Interval scale
Celsius has equal intervals but no true zero (0°C does not mean 'no temperature'), so ratios are not meaningful. This makes it an interval scale.
Question 23 of 60 · types of data · Medium
You encode the number of children per household as . How should this variable be classified?
Not quite. Try another option.
Answer: Discrete numerical
The count takes only whole-number values with no intermediate values possible, which is the defining property of discrete numerical data.
Question 24 of 60 · dealing with missing data · Medium
A numerical column has a strongly right-skewed distribution with several outliers, and about 5% of values are missing. Which imputation choice is most appropriate?
Not quite. Try another option.
Answer: Impute with the median
The median is robust to skew and outliers, so it represents the central tendency better than the mean, which would be pulled toward extreme values.
Question 25 of 60 · dealing with missing data · Medium
Values are missing more often for low-income respondents who chose not to report income. This missingness mechanism is best described as:
Not quite. Try another option.
Answer: Missing Not At Random (MNAR)
The probability of being missing depends on the unobserved value itself (income level), which characterizes MNAR and cannot be ignored safely.
Question 26 of 60 · dealing with missing data · Medium
A feature is missing in 78% of records and is weakly related to the target. What is usually the most sensible action?
Not quite. Try another option.
Answer: Drop the entire column
With such a high missing rate and low relevance, imputation would introduce more noise than signal, so removing the feature is generally the safest choice.
Question 27 of 60 · scatter plot · Medium
A scatter plot of two variables shows points tightly clustered along a line that falls from top-left to bottom-right. What does this indicate?
Not quite. Try another option.
Answer: Strong negative correlation
A downward-sloping, tightly clustered pattern means one variable decreases as the other increases, indicating a strong negative linear correlation.
Question 28 of 60 · scatter plot · Medium
You want to visualize the relationship between two numeric variables while also encoding a third numeric variable. Which scatter plot enhancement is most appropriate?
Not quite. Try another option.
Answer: Vary the marker size (bubble chart)
Mapping the third variable to marker size (a bubble chart) lets you show three numeric dimensions on a 2D scatter plot at once.
Question 29 of 60 · scatter plot · Medium
In a large scatter plot, many points overlap and hide the true density of data. Which technique best addresses this overplotting?
Not quite. Try another option.
Answer: Use transparency (alpha blending)
Alpha blending makes dense regions appear darker as overlapping points accumulate, revealing the underlying density that solid markers would hide.
Question 30 of 60 · histogram · Medium
A histogram built with too many narrow bins appears jagged and noisy. What is the primary effect of increasing the bin width?
Not quite. Try another option.
Answer: It smooths the distribution but may hide fine detail
Wider bins aggregate more values per bar, smoothing the shape, but excessive width can mask meaningful structure like small peaks.
Question 31 of 60 · histogram · Medium
A histogram shows most values bunched on the left with a long tail extending to the right. How is this distribution described?
Not quite. Try another option.
Answer: Right-skewed (positively skewed)
A long tail toward higher values on the right indicates positive (right) skew, where the mean is typically greater than the median.
Question 32 of 60 · histogram · Medium
Which statement correctly distinguishes a histogram from a bar chart?
Not quite. Try another option.
Answer: A histogram displays continuous data in bins, while a bar chart displays categorical counts
Histograms group a continuous variable into adjacent bins, whereas bar charts compare counts across distinct categories.
Question 33 of 60 · group plots · Medium
You want to compare the distribution of test scores across five different schools on a single figure. Which grouped visualization is most suitable?
Not quite. Try another option.
Answer: Side-by-side box plots grouped by school
Grouped box plots place one box per school side by side, making it easy to compare medians, spread, and outliers across groups.
Question 34 of 60 · group plots · Medium
A faceted (small-multiples) plot arranges several subplots that share the same axes. What is its main advantage?
Not quite. Try another option.
Answer: It allows direct visual comparison across subgroups on identical scales
Shared axes across facets ensure each subgroup is plotted on the same scale, enabling fair, direct comparison between panels.
Question 35 of 60 · group plots · Medium
When using a grouped bar chart to compare two categories across several months, what does color (hue) typically encode?
Not quite. Try another option.
Answer: The category being compared within each month
In grouped bar charts, hue distinguishes the subcategories within each x-axis group, so color represents the compared category.
Question 36 of 60 · box plots · Medium
In a standard box plot, the length of the box itself represents which quantity?
Not quite. Try another option.
Answer: The interquartile range ()
The box spans from the first quartile to the third quartile , so its length equals the interquartile range (IQR).
Question 37 of 60 · box plots · Medium
Using the common rule, a point is flagged as an outlier if it lies:
Not quite. Try another option.
Answer: Below or above
The Tukey rule marks values beyond past either quartile as outliers, which is how box plot whiskers and points are determined.
Question 38 of 60 · box plots · Medium
A box plot has , median , and . What does the position of the median inside the box suggest?
Not quite. Try another option.
Answer: The data is right-skewed
The median is closer to than to (5 vs 15 units), meaning the upper half is more spread out, which indicates right skew.
Question 39 of 60 · dimensionality reduction · Medium
In Principal Component Analysis (PCA), the first principal component is chosen so that it:
Not quite. Try another option.
Answer: Captures the direction of maximum variance in the data
PCA finds orthogonal components ordered by variance; the first component is the direction along which the data varies the most.
Question 40 of 60 · dimensionality reduction · Medium
Why is it generally recommended to standardize features before applying PCA?
Not quite. Try another option.
Answer: To prevent features with larger scales from dominating the components
PCA is variance-based, so unscaled features with large ranges would dominate. Standardizing puts features on comparable scales for a fair analysis.
Question 41 of 60 · types of data · Hard
A researcher encodes customer satisfaction as where the gaps between adjacent levels are not guaranteed to be equal. A colleague computes the arithmetic mean and standard deviation of this variable. What is the most defensible critique?
Not quite. Try another option.
Answer: The variable is ordinal, so the mean and SD assume interval spacing that may not hold
Satisfaction ratings are ordinal: order is meaningful but distances between levels are not necessarily equal. Means and SDs presuppose interval-level equal spacing, so they can be misleading. The median or mode are safer summaries.
Question 42 of 60 · types of data · Hard
Temperature in Celsius and temperature in Kelvin describe the same physical quantity. Which statement correctly distinguishes their measurement scales?
Not quite. Try another option.
Answer: Celsius is interval and Kelvin is ratio, so ratios are meaningful only in Kelvin
Kelvin has a true zero (absence of thermal energy), making it a ratio scale where is twice as hot as . Celsius has an arbitrary zero, making it interval, so is not twice .
Question 43 of 60 · dealing with missing data · Hard
In a dataset, income is missing more often for high earners because wealthy respondents decline to answer. The missingness depends on the unobserved income value itself. This mechanism is best classified as:
Not quite. Try another option.
Answer: MNAR (Missing Not At Random)
When the probability of missingness depends on the missing value itself (income), the mechanism is MNAR. This is non-ignorable and cannot be fixed by standard imputation without modeling the missingness process.
Question 44 of 60 · dealing with missing data · Hard
A data scientist replaces all missing values in a feature with the column mean before computing the sample variance. What is the primary distortion introduced?
Not quite. Try another option.
Answer: The variance is systematically underestimated because imputed values add no spread
Mean imputation places all missing points exactly at the mean, contributing zero to the sum of squared deviations. This shrinks the estimated variance and standard error, understating true variability.
Question 45 of 60 · dealing with missing data · Hard
Compared to single imputation, why does multiple imputation with imputed datasets produce more valid standard errors?
Not quite. Try another option.
Answer: It incorporates between-imputation variance, reflecting uncertainty about the missing values
Multiple imputation combines within-imputation and between-imputation variance (Rubin's rules). The between-imputation term captures the uncertainty inherent in not knowing the true missing values, which single imputation ignores.
Question 46 of 60 · scatter plot · Hard
Two variables have Pearson correlation , yet a scatter plot shows a clear parabolic pattern. What is the correct interpretation?
Not quite. Try another option.
Answer: A strong nonlinear relationship exists that Pearson's fails to capture
Pearson's measures only linear association. A symmetric parabola can yield while showing a strong deterministic nonlinear relationship. Zero correlation does not imply independence.
Question 47 of 60 · scatter plot · Hard
When plotting 500,000 points where many overlap, a scatter plot becomes a solid ink blob (overplotting). Which technique best preserves density information?
Not quite. Try another option.
Answer: Use a 2D density/hexbin plot mapping counts to color intensity
With massive overplotting, individual markers convey no density. Hexbin or 2D kernel-density plots aggregate points into bins whose color encodes count, revealing the underlying distribution that a saturated scatter hides.
Question 48 of 60 · histogram · Hard
A histogram of the same data looks unimodal with 10 bins but bimodal with 40 bins. What does this most likely indicate?
Not quite. Try another option.
Answer: Bin width strongly affects the visual, and the extra modes may be noise or genuine structure needing further checks
Histogram shape is sensitive to bin width. Too few bins over-smooth and hide structure; too many introduce sampling noise. The apparent modes must be validated (e.g., with a KDE or different bandwidths) before concluding bimodality.
Question 49 of 60 · histogram · Hard
Using the Freedman–Diaconis rule, bin width is . For a sample with and , what is the approximate bin width?
Not quite. Try another option.
Answer:
, so . The Freedman–Diaconis rule uses the IQR to be robust to outliers.
Question 50 of 60 · histogram · Hard
A right-skewed variable is plotted as a histogram, then re-plotted after a transform. What effect is most expected in the transformed histogram?
Not quite. Try another option.
Answer: The right tail is compressed, making the distribution appear more symmetric
A log transform compresses large values more than small ones, pulling in a long right tail. For positively skewed positive data this often yields a more symmetric, near-normal shape.
Question 51 of 60 · group plots · Hard
You facet (small-multiple) a scatter plot by a categorical grouping variable across 6 panels. What is the key advantage of a shared common axis range across all panels?
Not quite. Try another option.
Answer: It allows direct visual comparison of magnitudes and positions across groups
Shared (fixed) axes make positions and scales comparable across panels, so differences between groups are read directly. Free/independent axes maximize per-panel detail but make cross-group comparison misleading.
Question 52 of 60 · group plots · Hard
A grouped (clustered) bar chart shows category means for three groups but omits any uncertainty indicators. What is the most serious analytical limitation?
Not quite. Try another option.
Answer: Differences between group means cannot be judged for significance without variability information
Means alone hide spread and sample size. Without error bars or confidence intervals, viewers cannot assess whether apparent group differences are meaningful or within sampling noise.
Question 53 of 60 · box plots · Hard
Using the standard rule with and , at what upper value does a point begin to be flagged as an outlier?
Not quite. Try another option.
Answer: Above
. Upper fence . Points strictly above 70 are flagged as outliers.
Question 54 of 60 · box plots · Hard
Two box plots have identical medians, quartiles, and whisker lengths, yet their underlying distributions differ dramatically (one bimodal, one unimodal). What limitation does this reveal?
Not quite. Try another option.
Answer: Box plots summarize quantiles and cannot reveal multimodality or internal shape
Box plots encode only five-number summaries. Distributions with equal quantiles but different internal shapes (e.g., bimodal vs. unimodal) look identical. A violin plot or histogram is needed to reveal modality.
Question 55 of 60 · box plots · Hard
A notched box plot is used to compare two groups. If the notches of the two boxes do not overlap, the most appropriate conclusion is:
Not quite. Try another option.
Answer: There is roughly 95% confidence evidence that the true medians differ
Notches approximate a 95% confidence interval for the median. Non-overlapping notches provide informal evidence that the medians differ significantly; they say nothing about variance or symmetry.
Question 56 of 60 · dimensionality reduction · Hard
Before applying PCA to features measured in wildly different units (e.g., meters and kilograms), why is standardization typically required?
Not quite. Try another option.
Answer: PCA maximizes variance, so unstandardized high-variance features dominate the components
PCA finds directions of maximum variance. Features with large numeric scales have large variance purely due to units and will dominate the principal components. Standardizing (or using the correlation matrix) puts features on comparable footing.
Question 57 of 60 · dimensionality reduction · Hard
The eigenvalues of a covariance matrix are . What proportion of total variance is explained by the first two principal components?
Not quite. Try another option.
Answer:
Total variance . First two components explain . Proportion .
Question 58 of 60 · dimensionality reduction · Hard
A key difference between PCA and t-SNE for visualization is that:
Not quite. Try another option.
Answer: t-SNE preserves local neighborhood structure but distorts global distances and cluster sizes
t-SNE is nonlinear and emphasizes preserving local neighborhoods, so between-cluster distances and cluster sizes in a t-SNE plot are not reliable. PCA is linear and preserves global variance directions.
Question 59 of 60 · dimensionality reduction · Hard
When choosing the number of components via a scree plot, the 'elbow' heuristic suggests keeping components:
Not quite. Try another option.
Answer: Up to the point where the eigenvalue drop levels off sharply
The scree plot shows eigenvalues in descending order. The 'elbow' is where the curve flattens, indicating that additional components add little variance. Components before the elbow are retained.
Question 60 of 60 · scatter plot · Hard
In a scatter plot of study hours vs. exam score, adding a third variable (course difficulty) reverses the apparent positive trend within each course subgroup. This is an example of:
Not quite. Try another option.
Answer: Simpson's paradox, where aggregated and subgroup trends conflict
Simpson's paradox occurs when a trend present in aggregated data reverses or disappears within subgroups defined by a confounding variable. Coloring or faceting by course difficulty reveals the true within-group relationship.
That's unit 1
Answer a few questions and your score shows up here.
Nearly through. Did unit 1 of BTY587 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 1 of BTY587 save you a night before the exam?
Then you can help keep it free for the next batch. 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.