Regression Analysis: Joins, Inference, Diagnostics, and Prediction

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

49 Terms

1
New cards

Why do we perform EDA before regression?

To understand the data and check if a regression model makes sense.

2
New cards

What is the difference between a left join and an inner join?

A left join keeps every row from the left table. An inner join keeps only rows that have a match in both tables.

3
New cards

Why can one channel's subscriber count appear many times after a join?

One channel can have many videos, so the channel's information is repeated for each video.

4
New cards

What happens if there is no matching key in a left join?

The row stays, but the missing information from the other table becomes NA.

5
New cards

What does correlation measure?

The strength and direction of a linear relationship between two variables.

6
New cards

Does correlation imply causation?

No. Two variables can be related without one causing the other.

7
New cards

Can correlation near 0 occur with a nonlinear relationship?

Yes. Correlation measures linear relationships, so it can miss nonlinear relationships.

8
New cards

Why might log transformations help skewed variables?

They can reduce skew and make patterns easier to see and model.

9
New cards

What does the error term represent?

The part of Y that the model does not explain.

10
New cards

Why can't we perfectly predict Y from X?

Other factors affect Y, creating variation that the model cannot explain.

11
New cards

What is the difference between β₁ and β̂₁?

β₁ is the true population slope. β̂₁ is our estimate of the slope from the sample.

12
New cards

What does the slope mean?

The expected change in Y for a 1-unit increase in X.

13
New cards

What does the intercept mean?

The expected value of Y when X = 0.

14
New cards

Why does least squares square residuals?

So positive and negative errors cannot cancel each other out.

15
New cards

Why doesn't the sample slope automatically tell us the true population slope?

A sample is only part of the population, so the estimate has sampling variability.

16
New cards

What does H₀: β₁ = 0 mean?

There is no linear relationship between X and Y in the population.

17
New cards

What does a small p-value tell us?

The data would be unusual if the null hypothesis were true.

18
New cards

What does a p-value NOT tell us?

It does not tell us the probability that the null hypothesis is true.

19
New cards

What does a confidence interval tell us?

It gives a range of plausible values for the population parameter.

20
New cards

How does a CI relate to a hypothesis test?

If a 95% CI does not include 0, that agrees with rejecting H₀: β = 0 at about the 5% level.

21
New cards

Why do we need inference if we already have an estimated slope?

Inference tells us how much uncertainty there is around our estimated slope.

22
New cards

Why can R give you a p-value you shouldn't trust?

If the model assumptions fail, the p-value may not be reliable.

23
New cards

What does LINE stand for?

Linearity, Independence, Normality, Equal spread.

24
New cards

How can a residual plot show nonlinearity?

A curved or patterned shape suggests the relationship is not linear.

25
New cards

What does a funnel-shaped residual plot suggest?

The spread changes, so the equal-spread assumption may be violated.

26
New cards

Why is independence related to data collection?

Observations may be related because of how or when they were collected.

27
New cards

Are we checking normality of X, Y, or residuals?

Residuals.

28
New cards

Why do model assumptions matter for inference?

Inference methods rely on assumptions. If they are violated, the results can be unreliable.

29
New cards

What does R² measure?

The proportion of variation in Y explained by the model.

30
New cards

Why doesn't high R² prove causation?

A model can explain variation without showing that X causes Y.

31
New cards

Why use multiple regression instead of several separate simple regressions?

It lets us study several predictors together and account for their relationships.

32
New cards

What does 'holding all other variables constant' mean?

We look at the effect of one predictor while keeping the other predictors the same.

33
New cards

Why can a coefficient change when another predictor is added?

The predictors may overlap in what they explain about Y.

34
New cards

What is confounding?

When predictor effects become mixed together because predictors are related to each other.

35
New cards

What is collinearity?

When predictors are highly related, making their individual effects harder to separate.

36
New cards

Why can a predictor be significant in one model but not another?

Adding predictors can change the estimated effect and its uncertainty.

37
New cards

What does H₀: βⱼ = 0 mean in MLR?

That predictor has no linear relationship with Y after accounting for the other predictors.

38
New cards

Why is interpreting an MLR coefficient different from an SLR coefficient?

An MLR coefficient describes the relationship while holding the other predictors constant.

39
New cards

What is the difference between statistical and practical significance?

Statistical significance asks whether there is evidence an effect exists. Practical significance asks whether the effect is large enough to matter.

40
New cards

Why aren't regression predictions exact?

The model has uncertainty, and individual observations have random variation.

41
New cards

What is the difference between predicting the mean and predicting a new observation?

A mean prediction estimates the average Y. A new-observation prediction estimates one individual Y.

42
New cards

Why is a prediction interval wider than a confidence interval?

It includes both model uncertainty and individual-to-individual variation.

43
New cards

Why can in-sample performance be misleading?

The model was trained on those same observations, so its performance can look too good.

44
New cards

What is the purpose of cross-validation?

To estimate how well a model will predict new, unseen data.

45
New cards

What happens in one iteration of K-fold cross-validation?

Train on K−1 folds and test on the remaining fold.

46
New cards

Why is out-of-sample performance more useful?

It better shows how the model will perform on new data.

47
New cards

What does RMSE tell you?

The typical size of prediction errors, measured in the units of Y.

48
New cards

Why is RMSE easier to interpret than MSE?

RMSE is in the original units of Y, while MSE is in squared units.

49
New cards

If Model A has a lower RMSE than Model B, what does that tell you?

Model A has smaller typical prediction errors and better predictive performance.