Regression Design Matrix Flashcards

(20 cards)

1
Q

What is a predictor in regression?

A

An observed variable used as input to explain or predict the response variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is another name for a predictor?

A

Explanatory variable, independent variable, covariate, or feature.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the response variable?

A

The outcome variable the model is trying to explain or predict.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the model (design) matrix?

A

A numeric matrix whose rows are observations and whose columns correspond to model parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do the rows of the model matrix represent?

A

Individual observations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do the columns of the model matrix represent?

A

Model parameters (one per column).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does the model matrix contain parameter values?

A

No, it contains predictor-derived numeric values used to estimate parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What equation defines fitted values using the model matrix?

A

ŷ = Xβ̂

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where do predictors come from?

A

The raw dataset.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where do parameters come from?

A

They are estimated by the regression model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Is the intercept a predictor?

A

No, it is a parameter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How is the intercept represented in the model matrix?

A

As a column of ones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can one predictor create multiple columns in the model matrix?

A

Yes, especially for categorical predictors or polynomial terms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If a factor has k levels, how many parameters does it add?

A

k − 1 parameters (with an intercept).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a model term?

A

A specific way a predictor enters the model, such as a transformation or interaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the hat matrix?

A

The matrix that maps observed responses y to fitted values ŷ.

17
Q

What is the formula for the hat matrix?

A

H = X (XᵀX)⁻¹ Xᵀ

18
Q

What does the diagonal of the hat matrix represent?

A

Leverage values.

19
Q

What does the trace of the hat matrix equal?

A

The number of estimated parameters (rank of X).

20
Q

Can you compute the hat matrix without specifying a model?

A

No, because the hat matrix depends on the design matrix.