Regression Analysis 3

ese2o·2024년 4월 20일
0

Inferences in Simple Linear Regression

이제는 추론을 해야 한다. 이를 위해, ϵ\epsilon의 정규성이 필요하다.

3.1 Normal Error Regression Model

Yi=β0+β1Xi+ϵiY_i=\beta_0+\beta_1X_i+\epsilon_i
  • ϵN(0,σϵ2)\epsilon \sim N(0, \sigma^2_\epsilon)
  • YiN(β0+β1Xi,σϵ2)Y_i \sim N(\beta_0+\beta_1X_i, \sigma^2_\epsilon)
  • Y의 평균은 X에 종속, Y의 분산은 X에 종속x

Maximum Likelihood Estimation

Likelihood Function: 너가 가지고 있는 확률모델(parameter θ\theta)이 있다. 이 모델을 통해서 데이터 X를 얻을 수 있는 확률

Maximum Likelihood Estimation(MLE): 너가 가지고 있는 likelihood functiondmf 최대화시켜주는 θ\theta를 찾는다.

argmaxθi=1nf(xi;θ)\underset{\theta}{\operatorname{argmax}} \prod_{i=1}^n f\left(x_i ; \theta\right)
f(xi;θ)f(x_i; \theta) : product of the pdf of each data points

=argmaxθi=1nL(θ;xi)= \underset{\theta}{\operatorname{argmax}} \prod_{i=1}^n L\left(\theta ;x_i\right)
L(θ;xi;)L(\theta;x_i;) : product of likelihood of each data points
-> combine

=argmaxθi=1nL(θ;xi)= \underset{\theta}{\operatorname{argmax}} \prod_{i=1}^n L\left(\theta ;x_i\right)

=argmaxθ L(θ;x1,...,xn)= \underset{\theta}{\operatorname{argmax}} \ L\left(\theta ;x_1, ... , x_n\right)
-> maximizing raw likelihood is difficult sometimes...

=argmaxθ log{L(θ;x1,...,xn)}= \underset{\theta}{\operatorname{argmax}} \ log\{L\left(\theta ;x_1, ... , x_n\right)\}

=argmaxθ log(θ;x1,...,xn)= \underset{\theta}{\operatorname{argmax}} \ log\left(\theta ;x_1, ... , x_n\right)
-> log of the products is sum of the logs

=argmaxθi=1nlog(θ;xi)= \underset{\theta}{\operatorname{argmax}} \sum_{i=1}^n log\left(\theta ; x_i\right)
-> likelihood function is the pdf itself

=argmaxθi=1nlogf(xi;θ)= \underset{\theta}{\operatorname{argmax}} \sum_{i=1}^n logf\left(x_i ; \theta\right)

3.1.1 Maximum Likelihood Estimation of Parameters

L(β0,β1,σε2)=i=1nf(Yi;β0,β1,σε2)L\left(\beta_0, \beta_1, \sigma_{\varepsilon}^2\right)=\prod_{i=1}^n f\left(Y_i ; \beta_0, \beta_1, \sigma_{\varepsilon}^2\right)

=i=1n1(2πσϵ2)12exp[12σε2(Yiβ0βiXi)2]=\prod_{i=1}^n \frac{1}{\left(2 \pi \sigma^2_\epsilon\right)^{\frac{1}{2}}} \exp \left[-\frac{1}{2 \sigma_{\varepsilon}^2}\left(Y_i-\beta_0-\beta_i X_i\right)^2\right]

0개의 댓글