Simple and Multiple Linear Regression

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

1/56

encourage image

There are no tags or description

Looks like no tags are added yet.

57 Terms

1
New cards

Multiple regression model

y = β₀ + β₁x₁ + β₂x₂ + … + β_k x_k + ε

2
New cards

Difference between simple and multiple regression

Simple uses one independent variable; multiple uses two or more. Both have only one dependent variable.

3
New cards

Interpreting a coefficient in multiple regression

b_j is the estimated change in mean y for a one-unit increase in x_j, holding all other variables constant.

4
New cards

Multiple R

√R². Always positive; use the sign of each b_j to see direction.

5
New cards

R²

SSR / SST: the proportion of variation in y explained by all the x variables together.

6
New cards

Why R² can mislead

It rises whenever any variable is added, even a useless one.

7
New cards

Adjusted R²

1 − (1 − R²)(n − 1)/(n − k − 1). Penalizes extra variables, so it's better for comparing models.

8
New cards

Mean square error (MSE)

SSE / (n − k − 1)

9
New cards

Standard error (s)

√MSE

10
New cards

Mean square regression (MSR)

SSR / k

11
New cards

Overall F statistic

F = MSR / MSE

12
New cards

Degrees of freedom in multiple regression

Regression = k; Residual = n − k − 1; Total = n − 1.

13
New cards

Overall F test hypotheses

H₀: β₁ = β₂ = … = β_k = 0; Ha: at least one β_j ≠ 0.

14
New cards

Overall F test decision rule

Reject H₀ if F(model) > F-alpha, or if Significance F (p-value) < α.

15
New cards

Test for an individual variable

H₀: β_j = 0; Ha: β_j ≠ 0. t = b_j / SE(b_j), df = n − k − 1. Reject H₀ if p-value < α.

16
New cards

CI for a coefficient

b_j ± t* · SE(b_j)

17
New cards

Mean-of-zero assumption

The mean of the error terms is 0.

18
New cards

Constant variance assumption

The error variance σ² is the same for every combination of x values.

19
New cards

Normality assumption

The error terms are normally distributed.

20
New cards

Independence assumption

The error terms are statistically independent of each other.

21
New cards

Prediction in multiple regression

Plug the x values into the estimated equation. Example (illustrative): ŷ = 10 + 12(Labor) + 90(Hours); at 20.8 and 3, ŷ = 529.6.

22
New cards

Residual

Observed y − predicted ŷ. Example: 527.1 − 529.6 = −2.5.

23
New cards

Bakery sales example

Cakes, cookies, tea, and sandwiches predict sales. Use the overall F test, then p-values to see which variables are significant at α.

24
New cards

Dependent (response) variable

The variable we want to understand or predict (y).

25
New cards

Independent (predictor) variable

The variable used to explain or predict the dependent variable (x).

26
New cards

Simple linear regression model

y = β₀ + β₁x + ε

27
New cards

Estimated regression equation

ŷ = b₀ + b₁x

28
New cards

Intercept (b₀)

The predicted mean of y when x = 0 (may not be meaningful in context).

29
New cards

Slope (b₁)

The estimated change in the mean of y for each one-unit increase in x.

30
New cards

Error term (ε)

The effect on y of all factors other than x.

31
New cards

Residual

Observed y − predicted ŷ.

32
New cards

First step before fitting a regression

Make a scatter plot to check for a linear trend.

33
New cards

Total variation (SST)

Σ(y − ȳ)²

34
New cards

Explained variation (SSR)

Σ(ŷ − ȳ)²

35
New cards

Unexplained variation (SSE)

Σ(y − ŷ)²

36
New cards

Relationship among sums of squares

SST = SSR + SSE

37
New cards

Coefficient of determination (R²)

SSR / SST: the proportion of total variation in y explained by x.

38
New cards

Correlation coefficient (r)

±√R², with the same sign as the slope b₁.

39
New cards

Mean square error (MSE)

SSE / (n − 2)

40
New cards

Standard error of the regression (s)

√MSE: the typical size of the residuals.

41
New cards

F statistic (simple regression)

F = MSR / MSE, where MSR = SSR / 1. For simple regression, F = t².

42
New cards

t statistic for the slope

t = b₁ / SE(b₁), df = n − 2.

43
New cards

CI for the slope

b₁ ± t* · SE(b₁)

44
New cards

Degrees of freedom in simple regression

Regression = 1; Residual = n − 2; Total = n − 1.

45
New cards

Hypotheses for testing the slope

H₀: β₁ = 0 (no relationship); Ha: β₁ ≠ 0.

46
New cards

Significance F

The p-value for the overall regression F test. Reject H₀ if it is less than α.

47
New cards

Four assumptions of simple regression

Linearity, independence, constant variance of residuals, normality of residuals.

48
New cards

Fan-shaped residual plot means…

Variance is increasing (constant variance assumption violated).

49
New cards

Funnel-shaped residual plot means…

Variance is decreasing (constant variance assumption violated).

50
New cards

Which data most likely violates independence?

Time-series data.

51
New cards

House price example: equation

ŷ = 98.248 + 0.10977x (price in $1000s, x = square feet).

52
New cards

House price example: slope interpretation

Each extra square foot is associated with an average price increase of about $109.77.

53
New cards

House price example: R²

0.58082: about 58.1% of the variation in house price is explained by house size.

54
New cards

House price example: prediction at 2,000 sq ft

ŷ ≈ 317.8 ($1000s), which is about $317,800.

55
New cards

House price example: F test

F = 11.08, Significance F = 0.0104 < 0.05, so reject H₀; the model is significant.

56
New cards

House price example: 95% CI for slope

(0.0337, 0.1858). It does not contain 0, so the slope is significant.

57
New cards

Tasty Sub Shop example

ŷ = 183.31 + 15.59x; at x = 20.8, ŷ ≈ 507.69; observed 527.1, so residual = 19.41.