Find CI for mean of linear regression with

Ariel Collier

Ariel Collier

Answered question

2022-04-14

Find CI for mean of linear regression with variance unknown
For the simple linear regression model:
Yi=βXi+ϵi
I want to find CI for βx which is E(Yi) when xi=x.
I find that β^N(β,σ2(Xi2)), so the distribution of β x is N(βx,X2σ2(Xi2)). If the variance is known I can use P(zα2β^xβxxσ(xi2)zα2).
If the variance is unknown, what unbiased estimator should I use for σ2? Is it the sample variance? What is it in this case?

Answer & Explanation

gil001q4wq

gil001q4wq

Beginner2022-04-15Added 11 answers

Suppose number of predictors is p and number of observations is N. Let X be N×p matrix, and the specific x be 1×p. Then
xβxβ^σ^x(XTX)1xtNp
where σ^2=RSSNp=(YXβ^)T(YXβ^)Np.
In the above t stands for t distribution.
For simple regression p=1, so σ2 turns out to be sample variance. However, you need to use t distribution, not Gaussian.
tralhavahr9c

tralhavahr9c

Beginner2022-04-16Added 16 answers

If your model is Yi=βxi+ϵi, then the unbiased estimator for var(ϵi)=σ2 is given by s2=ei2n1, where ei=yiy^i.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in College Statistics

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?