User Tools

Site Tools


logistic_regression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
logistic_regression [2023/12/14 07:49] – [Binary Logistic Regression] hkimscillogistic_regression [2023/12/14 07:55] (current) – [coefficient (계수) 해석] hkimscil
Line 283: Line 283:
     * $ p = \displaystyle \frac {e^{-0.13504}}{1+e^{-0.13504}} = 0.4662912$     * $ p = \displaystyle \frac {e^{-0.13504}}{1+e^{-0.13504}} = 0.4662912$
     * 위는 정의된 평션으로 (ilogit) 구해도 된다 ''ilogit(a) = 0.4662912''     * 위는 정의된 평션으로 (ilogit) 구해도 된다 ''ilogit(a) = 0.4662912''
-    * 마지막으로 이 값은 우리가 이미 table에서 구한 probability of female yes 값과 (pf) 같다. +    * 마지막으로 이 값은 우리가 이미 table에서 구한 probability of female yes 값과 (''PF.yes'') 같다. 
  
 <code> <code>
Line 311: Line 311:
 </code> </code>
  
-==== coefficient (계수) 해석 ====+===== coefficient (계수) 해석 =====
   * $X = 1$ 일 경우 $ln(odds) = a + bX = a + b $   * $X = 1$ 일 경우 $ln(odds) = a + bX = a + b $
   * 아래 아웃 풋에서    * 아래 아웃 풋에서 
Line 318: Line 318:
   * 따라서 $a + b = -0.13504 + 0.36784 = 0.2328 $   * 따라서 $a + b = -0.13504 + 0.36784 = 0.2328 $
   * 즉, $ln(odds) = 0.2328 $ 이고    * 즉, $ln(odds) = 0.2328 $ 이고 
-  * $ odds = e^{0.2328} = 1.262129$  이것은 X가 1일 경우이다. +  * $ odds = \displaystyle \frac {p_{\text{ of male yes}}}{p-1} = e^{0.2328} = 1.262129$  이것은 X가 1일 경우이다. 
   * $ p = e^{0.2328} / (1 + e^{0.2328}) = 0.5579386 $ 그리고 X는 1일 경우의 prob = 0.558 정도이다.    * $ p = e^{0.2328} / (1 + e^{0.2328}) = 0.5579386 $ 그리고 X는 1일 경우의 prob = 0.558 정도이다. 
   * or ''ilogit(0.2328) = 0.5579386''   * or ''ilogit(0.2328) = 0.5579386''
logistic_regression.1702507741.txt.gz · Last modified: 2023/12/14 07:49 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki