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

  • 35Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Least Squares

In the mouse example, what is the main purpose of fitting a line using mouse weight and size?

35 questions

  1. 1

    In the mouse example, what is the main purpose of fitting a line using mouse weight and size?

    1. A

      To use mouse size to calculate mouse weight exactly

    2. B

      To use mouse weight to predict mouse size

    3. C

      To ensure that every mouse lies on the same horizontal line

    4. D

      To identify which mice have the largest residuals

    Correct answer
    B

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

  2. 2

    What does a residual represent in a regression fit?

    1. A

      The slope of the fitted line at a particular observation

    2. B

      The difference between the largest and smallest predictor values

    3. C

      The distance between an observed data point and the fitted line

    4. D

      The distance between an observed data point and the mean of all observations

    Correct answer
    C

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

  3. 3

    How does the least-squares procedure choose among candidate lines?

    1. A

      It selects the line with the steepest slope

    2. B

      It selects the line with the smallest sum of squared residuals

    3. C

      It selects the line with the largest average residual

    4. D

      It selects the line that passes through the most data points

    Correct answer
    B

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

  4. 4

    Why is the fitting method called least squares?

    1. A

      It minimizes the difference between the slope and the intercept

    2. B

      It minimizes the number of observations used to fit the line

    3. C

      It minimizes the range of the predictor values

    4. D

      It minimizes the sum of squared distances from data points to the fitted line

    Correct answer
    D

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

  5. 5

    In a fitted line with a nonzero slope, what does the slope indicate in the mouse example?

    1. A

      The average mouse size is zero

    2. B

      The fitted line has no residuals

    3. C

      Every mouse has exactly the same weight

    4. D

      Weight is associated with a change in predicted size

    Correct answer
    D

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

  6. 6

    Why calculate variation around the mean when evaluating a regression model?

    1. A

      It removes the need to calculate residuals

    2. B

      It measures only the variation explained by the fitted line

    3. C

      It provides a baseline for variation without using the predictor

    4. D

      It determines the slope of the fitted line

    Correct answer
    C

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

  7. 7

    What is the sum of squares around the mean, SSmeanSS_{mean}SSmean​?

    1. A

      The sum of squared differences between observations and the fitted line

    2. B

      The mean of the predictor values multiplied by the sample size

    3. C

      The sum of the residuals without squaring them

    4. D

      The sum of squared differences between observations and their mean

    Correct answer
    D

    The sum of squared differences between observations and their mean

    Explanation

    SSmeanSS_{mean}SSmean​ is obtained by subtracting the mean from each observed outcome, squaring each difference, and adding the squares.

  8. 8

    According to the content, how is variation around the mean calculated from SSmeanSS_{mean}SSmean​?

    1. A

      By dividing the sample size, nnn, by SSmeanSS_{mean}SSmean​

    2. B

      By dividing SSmeanSS_{mean}SSmean​ by the sample size, nnn

    3. C

      By multiplying SSmeanSS_{mean}SSmean​ by the sample size, nnn

    4. D

      By subtracting the sample size, nnn, from SSmeanSS_{mean}SSmean​

    Correct answer
    B

    By dividing SSmeanSS_{mean}SSmean​ by the sample size, nnn

    Explanation

    The described variation is the average squared deviation: SSmean/nSS_{mean}/nSSmean​/n.

  9. 9

    What does variation around the fitted line measure?

    1. A

      The total number of parameters in the fitted model

    2. B

      The average squared distance between the observed outcomes and the fitted values

    3. C

      The average distance between predictor values and their mean

    4. D

      The average squared distance between the observations and their mean

    Correct answer
    B

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

  10. 10

    Which expression gives R2R^2R2 using variation around the mean and variation around the fit?

    1. A

      Vfit/(Vmean−Vfit)V_{fit}/(V_{mean}-V_{fit})Vfit​/(Vmean​−Vfit​)

    2. B

      (Vfit−Vmean)/Vfit(V_{fit}-V_{mean})/V_{fit}(Vfit​−Vmean​)/Vfit​

    3. C

      (Vmean+Vfit)/Vfit(V_{mean}+V_{fit})/V_{fit}(Vmean​+Vfit​)/Vfit​

    4. D

      (Vmean−Vfit)/Vmean(V_{mean}-V_{fit})/V_{mean}(Vmean​−Vfit​)/Vmean​

    Correct answer
    D

    (Vmean−Vfit)/Vmean(V_{mean}-V_{fit})/V_{mean}(Vmean​−Vfit​)/Vmean​

    Explanation

    R2R^2R2 is the reduction in variation after fitting the model divided by the original variation: (Vmean−Vfit)/Vmean(V_{mean}-V_{fit})/V_{mean}(Vmean​−Vfit​)/Vmean​.

  11. 11

    If variation around the mean is 11.111.111.1 and variation around the fitted line is 4.44.44.4, approximately what is R2R^2R2?

    1. A

      0.400.400.40, meaning about 40%40\%40% of the variation is explained

    2. B

      1.001.001.00, meaning all of the variation is explained

    3. C

      0.110.110.11, meaning about 11%11\%11% of the variation is explained

    4. D

      0.600.600.60, meaning about 60%60\%60% of the variation is explained

    Correct answer
    D

    0.600.600.60, meaning about 60%60\%60% of the variation is explained

    Explanation

    Using R2=(11.1−4.4)/11.1R^2=(11.1-4.4)/11.1R2=(11.1−4.4)/11.1 gives approximately 0.600.600.60, or 60%60\%60%.

  12. 12

    Why can sums of squares be used instead of variations to calculate R2R^2R2 in the described comparison?

    1. A

      The sample size is not used when calculating either variation

    2. B

      The fitted model has no residuals when sums of squares are used

    3. C

      Sums of squares are always numerically identical to variations

    4. D

      Both variations divide their sums of squares by the same nnn, so the common factor cancels

    Correct answer
    D

    Both variations divide their sums of squares by the same nnn, 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.

  13. 13

    What does R2=1R^2=1R2=1 indicate in the examples?

    1. A

      The fitted model has the same variation as the mean-only baseline

    2. B

      The fitted model has no residual variation and explains all the outcome variation

    3. C

      The fitted model explains none of the outcome variation

    4. D

      The predictor and outcome have no relationship

    Correct answer
    B

    The 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=1R^2=1R2=1 or 100%100\%100%.

  14. 14

    What does R2=0R^2=0R2=0 indicate in the described comparison?

    1. A

      Variation around the fit equals variation around the mean, so the model explains none of that variation

    2. B

      The fitted model has more explained variation than total variation

    3. C

      The predictor has a perfect relationship with the outcome

    4. D

      Variation around the fit is zero, so the model explains all variation

    Correct answer
    A

    Variation 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=0R^2=0R2=0.

  15. 15

    When predicting body length from both weight and tail length, what kind of fitted surface is used in the example?

    1. A

      A line fitted to data represented in one dimension

    2. B

      A curve fitted using body length as a predictor

    3. C

      A plane fitted to data represented in three dimensions

    4. D

      A horizontal line that ignores both predictors

    Correct answer
    C

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

  16. 16

    For the equation y=0.3+0.7w+0.5ty=0.3+0.7w+0.5ty=0.3+0.7w+0.5t, what does the coefficient 0.70.70.7 represent in the example?

    1. A

      The fitted contribution associated with tail length

    2. B

      The predicted body length when both predictors are zero

    3. C

      The fitted contribution associated with mouse weight

    4. D

      The total residual variation around the plane

    Correct answer
    C

    The fitted contribution associated with mouse weight

    Explanation

    In the example, 0.70.70.7 is the parameter for mouse weight, while 0.50.50.5 is the parameter for tail length and 0.30.30.3 is the intercept.

  17. 17

    In a model with an intercept and two predictors, what does the intercept represent?

    1. A

      The predicted outcome when both predictors equal zero

    2. B

      The change in outcome for a one-unit increase in the second predictor

    3. C

      The change in outcome for a one-unit increase in the first predictor

    4. D

      The sum of squared residuals for the fitted model

    Correct answer
    A

    The predicted outcome when both predictors equal zero

    Explanation

    The intercept is the model's predicted outcome when both predictor values are zero.

  18. 18

    What can least squares do when an added predictor does not improve the fit?

    1. A

      Force that predictor's coefficient to equal the intercept

    2. B

      Set that predictor's coefficient to zero

    3. C

      Increase the residual sum of squares to represent the predictor

    4. D

      Remove the outcome variable from the model

    Correct answer
    B

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

  19. 19

    What happens to the training sum of squared residuals when predictors are added to a least-squares model?

    1. A

      It remains exactly the same for every possible added predictor

    2. B

      It cannot become larger, because the added coefficients can be set to zero

    3. C

      It must become larger, because each predictor adds a residual

    4. D

      It becomes zero as soon as one predictor is added

    Correct answer
    B

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

  20. 20

    Why is adjusted R2R^2R2 reported alongside ordinary R2R^2R2 in the content?

    1. A

      Ordinary R2R^2R2 can rise by chance as parameters are added, so adjusted R2R^2R2 accounts for the number of parameters

    2. B

      Adjusted R2R^2R2 replaces the fitted model's residuals with the mean

    3. C

      Ordinary R2R^2R2 always falls as parameters are added, so adjusted R2R^2R2 restores its original value

    4. D

      Adjusted R2R^2R2 guarantees that every added predictor is statistically significant

    Correct answer
    A

    Ordinary R2R^2R2 can rise by chance as parameters are added, so adjusted R2R^2R2 accounts for the number of parameters

    Explanation

    Adding parameters creates more opportunities for random patterns to reduce residual variation and increase ordinary R2R^2R2. Adjusted R2R^2R2 accounts for model complexity.

  21. 21

    Conceptually, what does the FFF statistic compare when testing whether predictors explain variation?

    1. A

      The fitted slope relative to the fitted intercept

    2. B

      Variation around the mean relative to the sample size

    3. C

      The number of observations relative to the number of outcomes

    4. D

      Variation explained by the model relative to variation left unexplained

    Correct answer
    D

    Variation explained by the model relative to variation left unexplained

    Explanation

    The described FFF statistic compares variation explained by the predictors with the residual variation not explained by the fit.

  22. 22

    Which quantity is shared as the explained-variation numerator in the descriptions of R2R^2R2 and FFF?

    1. A

      The variation left in the residuals after fitting the model

    2. B

      The variation around the mean before fitting any model

    3. C

      The reduction in variation when moving from the mean-only baseline to the fitted model

    4. D

      The sample size minus the number of fitted parameters

    Correct answer
    C

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

  23. 23

    What role do degrees of freedom play in the FFF calculation described?

    1. A

      They convert residuals into predictor values

    2. B

      They convert sums of squares into variance estimates

    3. C

      They determine the fitted intercept without using data

    4. D

      They ensure that every model has the same number of parameters

    Correct answer
    B

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

  24. 24

    For a line with an intercept and a slope, what are pfitp_{fit}pfit​ and pmeanp_{mean}pmean​ in the described setup?

    1. A

      pfit=2p_{fit}=2pfit​=2 and pmean=1p_{mean}=1pmean​=1

    2. B

      pfit=1p_{fit}=1pfit​=1 and pmean=2p_{mean}=2pmean​=2

    3. C

      pfit=1p_{fit}=1pfit​=1 and pmean=1p_{mean}=1pmean​=1

    4. D

      pfit=2p_{fit}=2pfit​=2 and pmean=2p_{mean}=2pmean​=2

    Correct answer
    A

    pfit=2p_{fit}=2pfit​=2 and pmean=1p_{mean}=1pmean​=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.

  25. 25

    If a model adds both weight and tail length beyond the mean-only model, what is pfit−pmeanp_{fit}-p_{mean}pfit​−pmean​ in the example?

    1. A

      111, because the model has one outcome

    2. B

      222, because the model adds two predictor parameters

    3. C

      333, because the fitted model has three total parameters

    4. D

      000, because both models contain an intercept

    Correct answer
    B

    222, 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=2p_{fit}-p_{mean}=3-1=2pfit​−pmean​=3−1=2.

  26. 26

    How is the residual sum of squares adjusted for the denominator of the FFF statistic in the described setup?

    1. A

      It is multiplied by n−pfitn-p_{fit}n−pfit​ rather than divided

    2. B

      It is divided by pfit−pmeanp_{fit}-p_{mean}pfit​−pmean​

    3. C

      It is added to the sum of squares around the mean

    4. D

      It is divided by n−pfitn-p_{fit}n−pfit​ rather than by nnn

    Correct answer
    D

    It is divided by n−pfitn-p_{fit}n−pfit​ rather than by nnn

    Explanation

    The residual variation is calculated using the residual sum of squares divided by n−pfitn-p_{fit}n−pfit​, accounting for parameters estimated by the fit.

  27. 27

    Why does estimating more parameters generally require more data?

    1. A

      More observations are needed to estimate each additional parameter reliably

    2. B

      A model with more parameters does not use an intercept

    3. C

      Each parameter requires the sample size to be reduced

    4. D

      More parameters automatically eliminate all residuals

    Correct answer
    A

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

  28. 28

    If a model explains a large amount of variation and leaves little residual variation, what tends to happen to its FFF statistic?

    1. A

      It becomes zero because the fitted model has parameters

    2. B

      It becomes small because the residual variation decreases

    3. C

      It stays fixed because FFF does not use variation

    4. D

      It becomes large because the explained-to-unexplained variation ratio increases

    Correct answer
    D

    It becomes large because the explained-to-unexplained variation ratio increases

    Explanation

    The FFF statistic compares explained variation with unexplained variation, so a large numerator relative to a small denominator produces a large value.

  29. 29

    In the random-data explanation of a ppp-value for FFF, what is done with repeated simulated datasets?

    1. A

      The original observations are sorted by their residuals

    2. B

      The sample size is increased until all residuals equal zero

    3. C

      A single fitted slope is copied into every dataset

    4. D

      An FFF value is calculated for each dataset to build a reference distribution

    Correct answer
    D

    An FFF value is calculated for each dataset to build a reference distribution

    Explanation

    The explanation generates many random datasets, calculates an FFF statistic for each, and uses the resulting distribution as a reference for the observed statistic.

  30. 30

    In the described right-tail comparison, how is the ppp-value interpreted?

    1. A

      The fraction of observations that lie exactly on the fitted line

    2. B

      The ratio of the sample size to the number of model parameters

    3. C

      The proportion of outcome variation explained by the predictors

    4. D

      The fraction of reference FFF values that are at least as extreme as the observed value

    Correct answer
    D

    The fraction of reference FFF values that are at least as extreme as the observed value

    Explanation

    The ppp-value is described as the number of reference values at least as extreme as the observed FFF, divided by the total number of reference values.

  31. 31

    How are FFF distributions used in practice instead of generating very many random datasets?

    1. A

      The residuals are assumed to be identically zero

    2. B

      A distribution is chosen that ignores the degrees of freedom

    3. C

      An appropriate FFF distribution is used to calculate the tail probability

    4. D

      The observed R2R^2R2 is treated directly as the ppp-value

    Correct answer
    C

    An appropriate FFF distribution is used to calculate the tail probability

    Explanation

    The content says that, in practice, standard FFF distributions are used to calculate ppp-values rather than generating huge numbers of random datasets.

  32. 32

    What determines the shape of the standard FFF distribution used to calculate a ppp-value?

    1. A

      The units used to measure the outcome

    2. B

      The degrees of freedom

    3. C

      The fitted intercept alone

    4. D

      The sign of the regression slope

    Correct answer
    B

    The degrees of freedom

    Explanation

    The degrees of freedom determine the shape of the FFF distribution used as the reference for the observed statistic.

  33. 33

    According to the example, what happens to the reference distribution when the sample size is larger relative to the number of fitted parameters?

    1. A

      It tapers off faster, which can make the ppp-value smaller for the observed statistic

    2. B

      It becomes identical to the distribution with fewer observations

    3. C

      It no longer depends on the degrees of freedom

    4. D

      It tapers off more slowly, which always makes the ppp-value larger

    Correct answer
    A

    It tapers off faster, which can make the ppp-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 ppp-value is smaller for the illustrated comparison.

  34. 34

    Why does fitting a line perfectly through two measurements not, by itself, establish a meaningful relationship?

    1. A

      Any two points can be connected by a straight line, so the perfect fit alone provides no evidence of significance

    2. B

      Two points always produce a negative R2R^2R2

    3. C

      A perfect fit proves that the predictor has no relationship with the outcome

    4. D

      A straight line cannot be fitted unless there are at least three measurements

    Correct answer
    A

    Any 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=1R^2=1R2=1 even when the points are random. A significance test is needed to assess whether the apparent fit is informative.

  35. 35

    For an interesting regression result, what combination of R2R^2R2 and ppp-value does the content recommend looking for?

    1. A

      A small R2R^2R2 and a large ppp-value

    2. B

      A small R2R^2R2 and a small ppp-value

    3. C

      A large R2R^2R2 and a small ppp-value

    4. D

      A large R2R^2R2 and a large ppp-value

    Correct answer
    C

    A large R2R^2R2 and a small ppp-value

    Explanation

    R2R^2R2 summarizes how much variation the model explains, while the ppp-value assesses the reliability of the relationship; the content says both a large R2R^2R2 and a small ppp-value are desirable.

Question 1 of 35
Question 1 of 35

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent