Linear Regression Fundamentals
- 56Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
56 questions
- 1In linear regression, the line is fitted to the data using the method of_____.
Hint
This method chooses a line by comparing the squared distances from data points to it.
Answer
least squares
Explanation
Least squares fits a line by choosing the parameters that minimize the sum of squared residuals.
- 2The distance from a data point to the fitted line is called a_____.
Hint
It measures the prediction error for an individual data point.
Answer
residual
Explanation
A residual is the distance between a data point and the fitted line.
- 3To compare candidate lines in least squares, each residual is squared and the squared values are_____.
Hint
The method uses a total of the squared prediction errors.
Answer
added up
Explanation
Least squares evaluates a candidate line by summing its squared residuals.
- 4When fitting a line by least squares, the preferred line is the one with the_____sum of squared residuals.
Hint
The method's name describes whether this total should be large or small.
Answer
least
Explanation
The fitted line minimizes the sum of squared residuals among candidate lines.
- 5In a plot used to examine candidate line rotations, the sum of squared residuals is placed on the_____axis.
Hint
It is the quantity being measured for each rotation.
Answer
y
Explanation
The sum of squared residuals is plotted on the vertical, or y, axis; candidate rotations are on the x-axis.
- 6In the same plot, candidate line rotations are placed on the_____axis.
Hint
This axis represents the different line positions being compared.
Answer
x
Explanation
The different rotations are plotted on the horizontal, or x, axis.
- 7A straight-line regression model estimates a y-intercept and a_____.
Hint
This parameter describes how the line changes as the predictor changes.
Answer
slope
Explanation
A straight-line fit has two parameters: its y-intercept and its slope.
- 8In the mouse example, using weight to predict size is useful when the fitted line's slope is not_____.
Hint
A nonzero value indicates that predicted size changes with weight.
Answer
zero
Explanation
A nonzero slope indicates a relationship between mouse weight and size, so weight can help predict size.
- 9The variation around the mean is calculated by summing squared distances from the data points to the_____.
Hint
This is the central value used as a baseline when ignoring predictors.
Answer
mean
Explanation
The sum of squared distances from each observation to the mean measures variation around the mean.
- 10The shorthand name for the sum of squared distances around the mean is_____.
Hint
It is the sum of squares calculated around the average value.
Answer
SS mean
Explanation
The content calls the sum of squares around the mean SS mean.
- 11The variation around the mean equals the sum of squares around the mean divided by the_____.
Hint
This division turns the total squared deviation into an average per observation.
Answer
sample size
Explanation
Variation around the mean is SS mean divided by the sample size, N.
- 12For the mouse-size example, the sample size used when calculating variation around the mean is_____.
Hint
The content gives the number of mice in this example.
Answer
9
Explanation
The example states that the sample size is N=9.
- 13The shorthand name for the sum of squared distances around the least-squares fitted line is_____.
Hint
It refers to the residual squares around the fitted model.
Answer
SS fit
Explanation
The content calls the sum of squares around the least-squares fit SS fit.
- 14Variation around the fitted line is SS fit divided by the_____.
Hint
As with variation around the mean, divide by the number of observations.
Answer
sample size
Explanation
Variation around the fit is the sum of squared residuals divided by the sample size, N.
- 15More generally, variance can be viewed as the average of the_____.
Hint
It is a total of squared deviations averaged across the relevant observations.
Answer
sum of squares
Explanation
The content describes variance as the sum of squares divided by the number of things, or an average of sum of squares.
- 16R2 describes how much of the variation in mouse size is explained by taking mouse_____into account.
Hint
This is the predictor in the basic mouse example.
Answer
weight
Explanation
In the example, R2 measures how much variation in mouse size is explained by mouse weight.
- 17The R2 formula compares variation around the mean with variation around the fit, then divides the reduction by variation around the_____.
Hint
The denominator is the original variation before accounting for the predictor.
Answer
mean
Explanation
R2 is the variation around the mean minus the variation around the fit, divided by the variation around the mean.
- 18If variation around the mean is 11.1 and variation around the fit is 4.4, then R2 is approximately_____.
Hint
Subtract the fitted variation from the mean variation, then divide by the mean variation.
Answer
0.6
Explanation
Using the stated values gives (11.1−4.4)/11.1, approximately 0.6, or 60%.
- 19An R2 value of 0.6 means that mouse weight explains_____of the variation in mouse size.
Hint
Convert the decimal proportion into a percentage.
Answer
60%
Explanation
An R2 of 0.6 represents a 60% reduction in variation after accounting for mouse weight.
- 20When calculating R2 from raw sums of squares, dividing both sums by the same sample size can be omitted because the shared factor_____.
Hint
The same scaling is applied to both quantities in the ratio.
Answer
cancels
Explanation
Both variation terms are sums of squares divided by N, so the common division by N does not change the ratio.
- 21If the fitted line has no residuals, variation around the fit is zero and R2 equals_____.
Hint
The model explains all the variation when none remains around the fit.
Answer
1
Explanation
With zero residual variation, R2 is 1, or 100%, meaning all variation is explained.
- 22If variation around the fit equals variation around the mean, then R2 equals_____.
Hint
There is no reduction in variation compared with using the mean alone.
Answer
0
Explanation
When the fit leaves as much variation as the mean baseline, the explained variation is zero and R2=0.
- 23If mouse weight provides no information about whether a mouse is small or large, it explains_____of the variation in size.
Hint
In this situation, knowing the predictor does not reduce uncertainty about size.
Answer
0%
Explanation
When weight does not help predict size, the fit variation equals the mean variation, giving R2=0, or 0%.
- 24The R2 approach can be used with a complicated equation as well as a straight line by comparing squared distances to the mean and to the_____.
Hint
The second set of distances is measured from the model being evaluated.
Answer
equation
Explanation
For any model equation, compare the sum of squared distances from the data to the mean with the sum of squared distances from the data to the equation.
- 25When weight and tail length are used to predict body length, the data require a_____-dimensional graph.
Hint
The graph needs one dimension for each of the three measured quantities.
Answer
three
Explanation
The three measurements—weight, tail length, and body length—are represented on a three-dimensional graph.
- 26With an additional predictor such as tail length, least squares fits a_____rather than a line in the illustrated model.
Hint
This is the flat surface used to represent a fit with the extra dimension.
Answer
plane
Explanation
The example fits a plane because the model includes an extra predictor and is represented in three dimensions.
- 27In the body-length model, the response or y-value represents mouse_____.
Hint
It is the quantity the model is trying to predict.
Answer
body length
Explanation
The model uses weight and tail length to predict body length, which is represented by the y-value.
- 28In the example plane, the coefficient 0.7 is associated with mouse_____.
Hint
This coefficient belongs to the first predictor identified in the example.
Answer
weight
Explanation
The plane's coefficient 0.7 is the parameter for mouse weight.
- 29In the example plane, the coefficient 0.5 is associated with tail_____.
Hint
This is the second predictor in the model.
Answer
length
Explanation
The plane's coefficient 0.5 is the parameter for tail length.
- 30If adding tail length does not reduce the sum of squared residuals, least squares can assign its coefficient the value_____.
Hint
A predictor with no contribution can be removed from the prediction without changing it.
Answer
zero
Explanation
When the extra predictor does not improve the fit, least squares can set its parameter to zero, so it has no effect on predictions.
- 31Adding predictors to a least-squares model cannot make the sum of squares around the fit_____than before.
Hint
The larger model can always set an unhelpful new coefficient to zero.
Answer
worse
Explanation
A model with additional terms can reproduce the simpler model by setting new coefficients to zero, so its least-squares fit cannot have a worse sum of squares.
- 32Because extra parameters can improve fit through random chance, researchers may report_____R2, which accounts for the number of parameters.
Hint
This version corrects the ordinary fit measure for model complexity.
Answer
adjusted
Explanation
Adjusted R2 scales or adjusts R2 in light of the number of parameters, addressing apparent improvements due to chance.
- 33With only two data points, a straight line can always be drawn through both, producing a sum of squares around the fit of_____.
Hint
A line connecting both points leaves no distance between them and the fit.
Answer
0
Explanation
Any two points can be connected by a straight line, so the residual sum of squares is zero.
- 34The perfect fit from only two points gives an R2 of 100%, but this does not establish a meaningful relationship because the result occurs for any two_____.
Hint
The problem is that the fit is guaranteed regardless of whether the observations have a real relationship.
Answer
random points
Explanation
Two points always define a line, so a perfect R2 from only two observations is not evidence by itself of a meaningful relationship.
- 35A measure is needed alongside R2 to determine whether the observed relationship is statistically significant; that measure is a_____.
Hint
It evaluates how unusual the observed result is under a null model.
Answer
p-value
Explanation
A p-value is used to assess whether an R2 result is statistically significant rather than merely a good fit to the observed data.
- 36In the general F statistic, the numerator is variation explained by the predictor or predictors, and the denominator is variation_____by them.
Hint
The denominator represents what remains after fitting the model.
Answer
not explained
Explanation
The F statistic compares variation explained by the model with variation that remains unexplained.
- 37The numerator of the F statistic and the numerator used for the regression R2 significance calculation represent the same reduction in_____.
Hint
Both measure the improvement from including the predictor or predictors.
Answer
variance
Explanation
Both numerators represent the reduction in variance when the model's predictors are taken into account.
- 38The sum of squares around the fitted line is obtained by squaring and summing the_____.
Hint
These are the distances from the observations to the fitted line.
Answer
residuals
Explanation
The sum of squares around the fit is the sum of squared residuals, representing variation not explained by the fit.
- 39The degrees of freedom in the F calculation convert sums of squares into_____.
Hint
Dividing a sum of squares by an appropriate degree count yields this quantity.
Answer
variances
Explanation
The degrees of freedom provide the divisors that turn sums of squares into variance estimates.
- 40The symbol P fit denotes the number of_____in the fitted model.
Hint
For a straight line, count the intercept and slope.
Answer
parameters
Explanation
P fit is the number of parameters in the fitted model.
- 41A straight-line model with an intercept and a slope has P fit equal to_____.
Hint
Count the two quantities estimated by the line.
Answer
2
Explanation
The line estimates a y-intercept and a slope, so it has two parameters.
- 42The symbol P mean denotes the number of parameters in the_____.
Hint
This baseline model is a horizontal line at the mean value.
Answer
mean line
Explanation
P mean counts the parameters in the mean line, which has just the y-intercept parameter.
- 43Because the mean line has only an intercept, P mean equals_____.
Hint
There is one estimated parameter in this baseline model.
Answer
1
Explanation
The mean line has one parameter, its y-intercept, so P mean equals 1.
- 44For a straight-line fit compared with the mean line, the number of extra parameters is P fit minus P mean, which equals_____.
Hint
Subtract the one-parameter baseline from the two-parameter line.
Answer
1
Explanation
For the line, P fit is 2 and P mean is 1, so the fit has one extra parameter: the slope.
- 45When both weight and tail length are added to the mean model, the fitted model has three parameters, so P fit minus P mean equals_____.
Hint
Compare the three-parameter model with the one-parameter mean line.
Answer
2
Explanation
The fitted model has three parameters and the mean line has one, so there are two extra parameters.
- 46The F statistic's denominator estimates unexplained variation by dividing the residual sum of squares by N minus_____.
Hint
The adjustment accounts for how many parameters were estimated in the fit.
Answer
P fit
Explanation
The denominator uses the residual sum of squares divided by N−P fit, rather than simply dividing by N.
- 47Estimating a plane requires more data points than estimating a line; the example says a line needs two points while a plane needs_____.
Hint
The plane requires one more point than the line in this comparison.
Answer
three points
Explanation
The example illustrates that more parameters require more observations: two points to estimate a line and three to estimate a plane.
- 48A good fit with a large amount of variation explained by extra parameters and little variation left unexplained produces a_____F value.
Hint
The statistic divides explained variation by unexplained variation.
Answer
large
Explanation
A large numerator and small denominator make the ratio in the F statistic large.
- 49To approximate the null distribution used for a p-value, one can repeatedly generate random data, fit the mean and model, calculate sums of squares, and compute an_____value.
Hint
This is the statistic whose distribution is assembled from the repeated random datasets.
Answer
F
Explanation
The procedure calculates an F statistic for each random dataset and uses the resulting values to form a reference distribution.
- 50In the randomization illustration, the p-value is the number of values at least as_____as the observed statistic divided by the total number of values.
Hint
The count concerns outcomes in the tail that are as unusual or more unusual than the observed result.
Answer
extreme
Explanation
The p-value is the proportion of randomized statistics that are as extreme or more extreme than the observed statistic.
- 51In the example, if the observed F is 6, the illustrated outcomes counted as more extreme include F equal to_____.
Hint
This value is larger than the observed statistic of 6.
Answer
7
Explanation
The example counts the observed value F=6 and a more extreme value, F=7, in the numerator of the proportion.
- 52Instead of generating many random datasets in practice, people commonly use a theoretical_____distribution to calculate the p-value.
Hint
It is the reference distribution associated with the statistic used in this test.
Answer
F
Explanation
In practice, an F distribution is used to approximate the histogram of randomized F statistics and calculate a p-value.
- 53The degrees of freedom determine the shape of the reference_____distribution.
Hint
This is the distribution used to find the p-value for the statistic.
Answer
F
Explanation
The degrees of freedom determine the shape of the F distribution used to calculate the p-value.
- 54In the illustrated comparison, the distribution with N minus P fit equal to 10 tapers off faster when its sample size is_____.
Hint
The red distribution is described as using fewer observations than the blue distribution.
Answer
smaller
Explanation
The red distribution uses a smaller sample size, and with N−P fit equal to 10, it tapers off faster.
- 55A faster-tapering reference distribution in the example means the p-value will be_____when there are more samples relative to the number of fitted parameters.
Hint
The observed statistic is less common in the tail of the described distribution.
Answer
smaller
Explanation
The content states that the p-value will be smaller when there are more samples relative to the number of parameters in the fit equation.
- 56An interesting regression result generally requires both a large R2 and a_____p-value.
Hint
One measure should indicate a strong explained relationship, while the other should indicate statistical significance.
Answer
small
Explanation
R2 quantifies how much variation is explained and should be large; the p-value assesses reliability and should be small.

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