Inferences in Simple Linear Regression
이제는 추론을 해야 한다. 이를 위해, ϵ의 정규성이 필요하다.
3.1 Normal Error Regression Model
Yi=β0+β1Xi+ϵi
- ϵ∼N(0,σϵ2)
- Yi∼N(β0+β1Xi,σϵ2)
- Y의 평균은 X에 종속, Y의 분산은 X에 종속x
Maximum Likelihood Estimation
Likelihood Function: 너가 가지고 있는 확률모델(parameter θ)이 있다. 이 모델을 통해서 데이터 X를 얻을 수 있는 확률
Maximum Likelihood Estimation(MLE): 너가 가지고 있는 likelihood functiondmf 최대화시켜주는 θ를 찾는다.
θargmax∏i=1nf(xi;θ)
f(xi;θ) : product of the pdf of each data points
=θargmax∏i=1nL(θ;xi)
L(θ;xi;) : product of likelihood of each data points
-> combine
=θargmax∏i=1nL(θ;xi)
=θargmax L(θ;x1,...,xn)
-> maximizing raw likelihood is difficult sometimes...
=θargmax log{L(θ;x1,...,xn)}
=θargmax log(θ;x1,...,xn)
-> log of the products is sum of the logs
=θargmax∑i=1nlog(θ;xi)
-> likelihood function is the pdf itself
=θargmax∑i=1nlogf(xi;θ)
3.1.1 Maximum Likelihood Estimation of Parameters
L(β0,β1,σε2)=∏i=1nf(Yi;β0,β1,σε2)
=∏i=1n(2πσϵ2)211exp[−2σε21(Yi−β0−βiXi)2]