1. Home
  2. Explore
  3. Statistics
  4. Linear Regression Fundamentals

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Linear Regression Fundamentals

  • 56Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Least Squares
In linear regression, the line is fitted to the data using the method of
.

56 questions

  1. 1
    In 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.

  2. 2
    The 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.

  3. 3
    To 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.

  4. 4
    When 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.

  5. 5
    In 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.

  6. 6
    In 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.

  7. 7
    A 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.

  8. 8
    In 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.

  9. 9
    The 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.

  10. 10
    The 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.

  11. 11
    The 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, NNN.

  12. 12
    For 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=9N = 9N=9.

  13. 13
    The 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.

  14. 14
    Variation 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, NNN.

  15. 15
    More 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.

  16. 16
    R2R^2R2 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, R2R^2R2 measures how much variation in mouse size is explained by mouse weight.

  17. 17
    The R2R^2R2 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

    R2R^2R2 is the variation around the mean minus the variation around the fit, divided by the variation around the mean.

  18. 18
    If variation around the mean is 11.111.111.1 and variation around the fit is 4.44.44.4, then R2R^2R2 is approximately
    _____
    .
    Hint

    Subtract the fitted variation from the mean variation, then divide by the mean variation.

    Answer

    0.60.60.6

    Explanation

    Using the stated values gives (11.1−4.4)/11.1(11.1 - 4.4)/11.1(11.1−4.4)/11.1, approximately 0.60.60.6, or 60%60\%60%.

  19. 19
    An R2R^2R2 value of 0.60.60.6 means that mouse weight explains
    _____
    of the variation in mouse size.
    Hint

    Convert the decimal proportion into a percentage.

    Answer

    60%60\%60%

    Explanation

    An R2R^2R2 of 0.60.60.6 represents a 60%60\%60% reduction in variation after accounting for mouse weight.

  20. 20
    When calculating R2R^2R2 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 NNN, so the common division by NNN does not change the ratio.

  21. 21
    If the fitted line has no residuals, variation around the fit is zero and R2R^2R2 equals
    _____
    .
    Hint

    The model explains all the variation when none remains around the fit.

    Answer

    111

    Explanation

    With zero residual variation, R2R^2R2 is 111, or 100%100\%100%, meaning all variation is explained.

  22. 22
    If variation around the fit equals variation around the mean, then R2R^2R2 equals
    _____
    .
    Hint

    There is no reduction in variation compared with using the mean alone.

    Answer

    000

    Explanation

    When the fit leaves as much variation as the mean baseline, the explained variation is zero and R2=0R^2 = 0R2=0.

  23. 23
    If 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%0\%0%

    Explanation

    When weight does not help predict size, the fit variation equals the mean variation, giving R2=0R^2 = 0R2=0, or 0%0\%0%.

  24. 24
    The R2R^2R2 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.

  25. 25
    When 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.

  26. 26
    With 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.

  27. 27
    In 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.

  28. 28
    In the example plane, the coefficient 0.70.70.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.70.70.7 is the parameter for mouse weight.

  29. 29
    In the example plane, the coefficient 0.50.50.5 is associated with tail
    _____
    .
    Hint

    This is the second predictor in the model.

    Answer

    length

    Explanation

    The plane's coefficient 0.50.50.5 is the parameter for tail length.

  30. 30
    If 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.

  31. 31
    Adding 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.

  32. 32
    Because extra parameters can improve fit through random chance, researchers may report
    _____
    R2R^2R2, which accounts for the number of parameters.
    Hint

    This version corrects the ordinary fit measure for model complexity.

    Answer

    adjusted

    Explanation

    Adjusted R2R^2R2 scales or adjusts R2R^2R2 in light of the number of parameters, addressing apparent improvements due to chance.

  33. 33
    With 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

    000

    Explanation

    Any two points can be connected by a straight line, so the residual sum of squares is zero.

  34. 34
    The perfect fit from only two points gives an R2R^2R2 of 100%100\%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 R2R^2R2 from only two observations is not evidence by itself of a meaningful relationship.

  35. 35
    A measure is needed alongside R2R^2R2 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 R2R^2R2 result is statistically significant rather than merely a good fit to the observed data.

  36. 36
    In the general FFF 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 FFF statistic compares variation explained by the model with variation that remains unexplained.

  37. 37
    The numerator of the FFF statistic and the numerator used for the regression R2R^2R2 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.

  38. 38
    The 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.

  39. 39
    The degrees of freedom in the FFF 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.

  40. 40
    The symbol PPP fit denotes the number of
    _____
    in the fitted model.
    Hint

    For a straight line, count the intercept and slope.

    Answer

    parameters

    Explanation

    PPP fit is the number of parameters in the fitted model.

  41. 41
    A straight-line model with an intercept and a slope has PPP fit equal to
    _____
    .
    Hint

    Count the two quantities estimated by the line.

    Answer

    222

    Explanation

    The line estimates a y-intercept and a slope, so it has two parameters.

  42. 42
    The symbol PPP mean denotes the number of parameters in the
    _____
    .
    Hint

    This baseline model is a horizontal line at the mean value.

    Answer

    mean line

    Explanation

    PPP mean counts the parameters in the mean line, which has just the y-intercept parameter.

  43. 43
    Because the mean line has only an intercept, PPP mean equals
    _____
    .
    Hint

    There is one estimated parameter in this baseline model.

    Answer

    111

    Explanation

    The mean line has one parameter, its y-intercept, so PPP mean equals 111.

  44. 44
    For a straight-line fit compared with the mean line, the number of extra parameters is PPP fit minus PPP mean, which equals
    _____
    .
    Hint

    Subtract the one-parameter baseline from the two-parameter line.

    Answer

    111

    Explanation

    For the line, PPP fit is 222 and PPP mean is 111, so the fit has one extra parameter: the slope.

  45. 45
    When both weight and tail length are added to the mean model, the fitted model has three parameters, so PPP fit minus PPP mean equals
    _____
    .
    Hint

    Compare the three-parameter model with the one-parameter mean line.

    Answer

    222

    Explanation

    The fitted model has three parameters and the mean line has one, so there are two extra parameters.

  46. 46
    The FFF statistic's denominator estimates unexplained variation by dividing the residual sum of squares by NNN minus
    _____
    .
    Hint

    The adjustment accounts for how many parameters were estimated in the fit.

    Answer

    PPP fit

    Explanation

    The denominator uses the residual sum of squares divided by N−PN - PN−P fit, rather than simply dividing by NNN.

  47. 47
    Estimating 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.

  48. 48
    A good fit with a large amount of variation explained by extra parameters and little variation left unexplained produces a
    _____
    FFF value.
    Hint

    The statistic divides explained variation by unexplained variation.

    Answer

    large

    Explanation

    A large numerator and small denominator make the ratio in the FFF statistic large.

  49. 49
    To 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

    FFF

    Explanation

    The procedure calculates an FFF statistic for each random dataset and uses the resulting values to form a reference distribution.

  50. 50
    In 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.

  51. 51
    In the example, if the observed FFF is 666, the illustrated outcomes counted as more extreme include FFF equal to
    _____
    .
    Hint

    This value is larger than the observed statistic of 666.

    Answer

    777

    Explanation

    The example counts the observed value F=6F = 6F=6 and a more extreme value, F=7F = 7F=7, in the numerator of the proportion.

  52. 52
    Instead 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

    FFF

    Explanation

    In practice, an FFF distribution is used to approximate the histogram of randomized FFF statistics and calculate a p-value.

  53. 53
    The 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

    FFF

    Explanation

    The degrees of freedom determine the shape of the FFF distribution used to calculate the p-value.

  54. 54
    In the illustrated comparison, the distribution with NNN minus PPP fit equal to 101010 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−PN - PN−P fit equal to 101010, it tapers off faster.

  55. 55
    A 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.

  56. 56
    An interesting regression result generally requires both a large R2R^2R2 and a
    _____
    p-value.
    Hint

    One measure should indicate a strong explained relationship, while the other should indicate statistical significance.

    Answer

    small

    Explanation

    R2R^2R2 quantifies how much variation is explained and should be large; the p-value assesses reliability and should be small.

1 of 56
Question 1 of 56

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent