Linear Regression Fundamentals
- 35Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In the mouse example, what is the main purpose of fitting a line using mouse weight and size?
In the mouse example, what is the main purpose of fitting a line using mouse weight and size?
35 questions
- 1
In the mouse example, what is the main purpose of fitting a line using mouse weight and size?
- A
To use mouse size to calculate mouse weight exactly
- B
To use mouse weight to predict mouse size
- C
To ensure that every mouse lies on the same horizontal line
- D
To identify which mice have the largest residuals
Correct answer
BTo use mouse weight to predict mouse size
Explanation
The fitted line quantifies the relationship between weight and size so weight can be used to make predictions about size.
- A
- 2
What does a residual represent in a regression fit?
- A
The slope of the fitted line at a particular observation
- B
The difference between the largest and smallest predictor values
- C
The distance between an observed data point and the fitted line
- D
The distance between an observed data point and the mean of all observations
Correct answer
CThe distance between an observed data point and the fitted line
Explanation
A residual is the distance from a data point to the fitted line; its square contributes to the fit's sum of squared residuals.
- A
- 3
How does the least-squares procedure choose among candidate lines?
- A
It selects the line with the steepest slope
- B
It selects the line with the smallest sum of squared residuals
- C
It selects the line with the largest average residual
- D
It selects the line that passes through the most data points
Correct answer
BIt selects the line with the smallest sum of squared residuals
Explanation
For each candidate line, residuals are squared and summed. Least squares selects the line that minimizes this sum.
- A
- 4
Why is the fitting method called least squares?
- A
It minimizes the difference between the slope and the intercept
- B
It minimizes the number of observations used to fit the line
- C
It minimizes the range of the predictor values
- D
It minimizes the sum of squared distances from data points to the fitted line
Correct answer
DIt minimizes the sum of squared distances from data points to the fitted line
Explanation
The method compares candidate lines by summing squared residuals and chooses the line with the least such sum.
- A
- 5
In a fitted line with a nonzero slope, what does the slope indicate in the mouse example?
- A
The average mouse size is zero
- B
The fitted line has no residuals
- C
Every mouse has exactly the same weight
- D
Weight is associated with a change in predicted size
Correct answer
DWeight is associated with a change in predicted size
Explanation
A nonzero slope indicates that knowing weight helps predict size; it does not imply that the prediction is perfect.
- A
- 6
Why calculate variation around the mean when evaluating a regression model?
- A
It removes the need to calculate residuals
- B
It measures only the variation explained by the fitted line
- C
It provides a baseline for variation without using the predictor
- D
It determines the slope of the fitted line
Correct answer
CIt provides a baseline for variation without using the predictor
Explanation
Variation around the mean represents the variation in the outcome before taking a predictor into account, making it a baseline for comparison.
- A
- 7
What is the sum of squares around the mean, SSmean?
- A
The sum of squared differences between observations and the fitted line
- B
The mean of the predictor values multiplied by the sample size
- C
The sum of the residuals without squaring them
- D
The sum of squared differences between observations and their mean
Correct answer
DThe sum of squared differences between observations and their mean
Explanation
SSmean is obtained by subtracting the mean from each observed outcome, squaring each difference, and adding the squares.
- A
- 8
According to the content, how is variation around the mean calculated from SSmean?
- A
By dividing the sample size, n, by SSmean
- B
By dividing SSmean by the sample size, n
- C
By multiplying SSmean by the sample size, n
- D
By subtracting the sample size, n, from SSmean
Correct answer
BBy dividing SSmean by the sample size, n
Explanation
The described variation is the average squared deviation: SSmean/n.
- A
- 9
What does variation around the fitted line measure?
- A
The total number of parameters in the fitted model
- B
The average squared distance between the observed outcomes and the fitted values
- C
The average distance between predictor values and their mean
- D
The average squared distance between the observations and their mean
Correct answer
BThe average squared distance between the observed outcomes and the fitted values
Explanation
Variation around the fit is based on the squared residuals—the differences between observed outcomes and the values predicted by the fitted line—divided by n.
- A
- 10
Which expression gives R2 using variation around the mean and variation around the fit?
- A
Vfit/(Vmean−Vfit)
- B
(Vfit−Vmean)/Vfit
- C
(Vmean+Vfit)/Vfit
- D
(Vmean−Vfit)/Vmean
Correct answer
D(Vmean−Vfit)/Vmean
Explanation
R2 is the reduction in variation after fitting the model divided by the original variation: (Vmean−Vfit)/Vmean.
- A
- 11
If variation around the mean is 11.1 and variation around the fitted line is 4.4, approximately what is R2?
- A
0.40, meaning about 40% of the variation is explained
- B
1.00, meaning all of the variation is explained
- C
0.11, meaning about 11% of the variation is explained
- D
0.60, meaning about 60% of the variation is explained
Correct answer
D0.60, meaning about 60% of the variation is explained
Explanation
Using R2=(11.1−4.4)/11.1 gives approximately 0.60, or 60%.
- A
- 12
Why can sums of squares be used instead of variations to calculate R2 in the described comparison?
- A
The sample size is not used when calculating either variation
- B
The fitted model has no residuals when sums of squares are used
- C
Sums of squares are always numerically identical to variations
- D
Both variations divide their sums of squares by the same n, so the common factor cancels
Correct answer
DBoth variations divide their sums of squares by the same n, so the common factor cancels
Explanation
Both the mean-based and fit-based variations are their respective sums of squares divided by the same sample size, so that shared scaling does not change the ratio.
- A
- 13
What does R2=1 indicate in the examples?
- A
The fitted model has the same variation as the mean-only baseline
- B
The fitted model has no residual variation and explains all the outcome variation
- C
The fitted model explains none of the outcome variation
- D
The predictor and outcome have no relationship
Correct answer
BThe fitted model has no residual variation and explains all the outcome variation
Explanation
When the fit has zero residual variation, the reduction from the mean-based variation is complete, giving R2=1 or 100%.
- A
- 14
What does R2=0 indicate in the described comparison?
- A
Variation around the fit equals variation around the mean, so the model explains none of that variation
- B
The fitted model has more explained variation than total variation
- C
The predictor has a perfect relationship with the outcome
- D
Variation around the fit is zero, so the model explains all variation
Correct answer
AVariation around the fit equals variation around the mean, so the model explains none of that variation
Explanation
When fit-based variation equals mean-based variation, there is no reduction in variation and R2=0.
- A
- 15
When predicting body length from both weight and tail length, what kind of fitted surface is used in the example?
- A
A line fitted to data represented in one dimension
- B
A curve fitted using body length as a predictor
- C
A plane fitted to data represented in three dimensions
- D
A horizontal line that ignores both predictors
Correct answer
CA plane fitted to data represented in three dimensions
Explanation
With two predictors and body length as the outcome, the example represents the data in three dimensions and fits a plane.
- A
- 16
For the equation y=0.3+0.7w+0.5t, what does the coefficient 0.7 represent in the example?
- A
The fitted contribution associated with tail length
- B
The predicted body length when both predictors are zero
- C
The fitted contribution associated with mouse weight
- D
The total residual variation around the plane
Correct answer
CThe fitted contribution associated with mouse weight
Explanation
In the example, 0.7 is the parameter for mouse weight, while 0.5 is the parameter for tail length and 0.3 is the intercept.
- A
- 17
In a model with an intercept and two predictors, what does the intercept represent?
- A
The predicted outcome when both predictors equal zero
- B
The change in outcome for a one-unit increase in the second predictor
- C
The change in outcome for a one-unit increase in the first predictor
- D
The sum of squared residuals for the fitted model
Correct answer
AThe predicted outcome when both predictors equal zero
Explanation
The intercept is the model's predicted outcome when both predictor values are zero.
- A
- 18
What can least squares do when an added predictor does not improve the fit?
- A
Force that predictor's coefficient to equal the intercept
- B
Set that predictor's coefficient to zero
- C
Increase the residual sum of squares to represent the predictor
- D
Remove the outcome variable from the model
Correct answer
BSet that predictor's coefficient to zero
Explanation
If a term does not help reduce the sum of squared residuals, least squares can assign it a coefficient of zero, so it has no effect on predictions.
- A
- 19
What happens to the training sum of squared residuals when predictors are added to a least-squares model?
- A
It remains exactly the same for every possible added predictor
- B
It cannot become larger, because the added coefficients can be set to zero
- C
It must become larger, because each predictor adds a residual
- D
It becomes zero as soon as one predictor is added
Correct answer
BIt cannot become larger, because the added coefficients can be set to zero
Explanation
A model with more terms can reproduce the smaller model by setting added coefficients to zero, so its minimized sum of squared residuals cannot be worse on the same data.
- A
- 20
Why is adjusted R2 reported alongside ordinary R2 in the content?
- A
Ordinary R2 can rise by chance as parameters are added, so adjusted R2 accounts for the number of parameters
- B
Adjusted R2 replaces the fitted model's residuals with the mean
- C
Ordinary R2 always falls as parameters are added, so adjusted R2 restores its original value
- D
Adjusted R2 guarantees that every added predictor is statistically significant
Correct answer
AOrdinary R2 can rise by chance as parameters are added, so adjusted R2 accounts for the number of parameters
Explanation
Adding parameters creates more opportunities for random patterns to reduce residual variation and increase ordinary R2. Adjusted R2 accounts for model complexity.
- A
- 21
Conceptually, what does the F statistic compare when testing whether predictors explain variation?
- A
The fitted slope relative to the fitted intercept
- B
Variation around the mean relative to the sample size
- C
The number of observations relative to the number of outcomes
- D
Variation explained by the model relative to variation left unexplained
Correct answer
DVariation explained by the model relative to variation left unexplained
Explanation
The described F statistic compares variation explained by the predictors with the residual variation not explained by the fit.
- A
- 22
Which quantity is shared as the explained-variation numerator in the descriptions of R2 and F?
- A
The variation left in the residuals after fitting the model
- B
The variation around the mean before fitting any model
- C
The reduction in variation when moving from the mean-only baseline to the fitted model
- D
The sample size minus the number of fitted parameters
Correct answer
CThe reduction in variation when moving from the mean-only baseline to the fitted model
Explanation
Both measures use the reduction in variation from the mean-only baseline to the fitted model as their explained-variation quantity.
- A
- 23
What role do degrees of freedom play in the F calculation described?
- A
They convert residuals into predictor values
- B
They convert sums of squares into variance estimates
- C
They determine the fitted intercept without using data
- D
They ensure that every model has the same number of parameters
Correct answer
BThey convert sums of squares into variance estimates
Explanation
The degrees-of-freedom terms adjust sums of squares to form variance estimates for the explained and unexplained components.
- A
- 24
For a line with an intercept and a slope, what are pfit and pmean in the described setup?
- A
pfit=2 and pmean=1
- B
pfit=1 and pmean=2
- C
pfit=1 and pmean=1
- D
pfit=2 and pmean=2
Correct answer
Apfit=2 and pmean=1
Explanation
The fitted line has an intercept and a slope, so it has two parameters; the mean-only horizontal line has just an intercept, so it has one.
- A
- 25
If a model adds both weight and tail length beyond the mean-only model, what is pfit−pmean in the example?
- A
1, because the model has one outcome
- B
2, because the model adds two predictor parameters
- C
3, because the fitted model has three total parameters
- D
0, because both models contain an intercept
Correct answer
B2, because the model adds two predictor parameters
Explanation
The model with two predictors and an intercept has three parameters, while the mean-only model has one, so pfit−pmean=3−1=2.
- A
- 26
How is the residual sum of squares adjusted for the denominator of the F statistic in the described setup?
- A
It is multiplied by n−pfit rather than divided
- B
It is divided by pfit−pmean
- C
It is added to the sum of squares around the mean
- D
It is divided by n−pfit rather than by n
Correct answer
DIt is divided by n−pfit rather than by n
Explanation
The residual variation is calculated using the residual sum of squares divided by n−pfit, accounting for parameters estimated by the fit.
- A
- 27
Why does estimating more parameters generally require more data?
- A
More observations are needed to estimate each additional parameter reliably
- B
A model with more parameters does not use an intercept
- C
Each parameter requires the sample size to be reduced
- D
More parameters automatically eliminate all residuals
Correct answer
AMore observations are needed to estimate each additional parameter reliably
Explanation
Additional parameters must be estimated from the data, so more observations are needed to support a more complex fit. The content contrasts needing two points for a line with three for a plane.
- A
- 28
If a model explains a large amount of variation and leaves little residual variation, what tends to happen to its F statistic?
- A
It becomes zero because the fitted model has parameters
- B
It becomes small because the residual variation decreases
- C
It stays fixed because F does not use variation
- D
It becomes large because the explained-to-unexplained variation ratio increases
Correct answer
DIt becomes large because the explained-to-unexplained variation ratio increases
Explanation
The F statistic compares explained variation with unexplained variation, so a large numerator relative to a small denominator produces a large value.
- A
- 29
In the random-data explanation of a p-value for F, what is done with repeated simulated datasets?
- A
The original observations are sorted by their residuals
- B
The sample size is increased until all residuals equal zero
- C
A single fitted slope is copied into every dataset
- D
An F value is calculated for each dataset to build a reference distribution
Correct answer
DAn F value is calculated for each dataset to build a reference distribution
Explanation
The explanation generates many random datasets, calculates an F statistic for each, and uses the resulting distribution as a reference for the observed statistic.
- A
- 30
In the described right-tail comparison, how is the p-value interpreted?
- A
The fraction of observations that lie exactly on the fitted line
- B
The ratio of the sample size to the number of model parameters
- C
The proportion of outcome variation explained by the predictors
- D
The fraction of reference F values that are at least as extreme as the observed value
Correct answer
DThe fraction of reference F values that are at least as extreme as the observed value
Explanation
The p-value is described as the number of reference values at least as extreme as the observed F, divided by the total number of reference values.
- A
- 31
How are F distributions used in practice instead of generating very many random datasets?
- A
The residuals are assumed to be identically zero
- B
A distribution is chosen that ignores the degrees of freedom
- C
An appropriate F distribution is used to calculate the tail probability
- D
The observed R2 is treated directly as the p-value
Correct answer
CAn appropriate F distribution is used to calculate the tail probability
Explanation
The content says that, in practice, standard F distributions are used to calculate p-values rather than generating huge numbers of random datasets.
- A
- 32
What determines the shape of the standard F distribution used to calculate a p-value?
- A
The units used to measure the outcome
- B
The degrees of freedom
- C
The fitted intercept alone
- D
The sign of the regression slope
Correct answer
BThe degrees of freedom
Explanation
The degrees of freedom determine the shape of the F distribution used as the reference for the observed statistic.
- A
- 33
According to the example, what happens to the reference distribution when the sample size is larger relative to the number of fitted parameters?
- A
It tapers off faster, which can make the p-value smaller for the observed statistic
- B
It becomes identical to the distribution with fewer observations
- C
It no longer depends on the degrees of freedom
- D
It tapers off more slowly, which always makes the p-value larger
Correct answer
AIt tapers off faster, which can make the p-value smaller for the observed statistic
Explanation
The content notes that with more samples relative to fitted parameters, the distribution tapers off faster and the p-value is smaller for the illustrated comparison.
- A
- 34
Why does fitting a line perfectly through two measurements not, by itself, establish a meaningful relationship?
- A
Any two points can be connected by a straight line, so the perfect fit alone provides no evidence of significance
- B
Two points always produce a negative R2
- C
A perfect fit proves that the predictor has no relationship with the outcome
- D
A straight line cannot be fitted unless there are at least three measurements
Correct answer
AAny two points can be connected by a straight line, so the perfect fit alone provides no evidence of significance
Explanation
With only two points, a line can always be drawn through both, giving a perfect fit and R2=1 even when the points are random. A significance test is needed to assess whether the apparent fit is informative.
- A
- 35
For an interesting regression result, what combination of R2 and p-value does the content recommend looking for?
- A
A small R2 and a large p-value
- B
A small R2 and a small p-value
- C
A large R2 and a small p-value
- D
A large R2 and a large p-value
Correct answer
CA large R2 and a small p-value
Explanation
R2 summarizes how much variation the model explains, while the p-value assesses the reliability of the relationship; the content says both a large R2 and a small p-value are desirable.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.