close
Warning:
Can't synchronize with repository "(default)" (/var/svn/mms does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Aug 7, 2014, 10:52:54 AM (10 years ago)
- Author:
-
Pedro Gea
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v2
|
v3
|
|
49 | 49 | |
50 | 50 | {{{ |
51 | | Grad = d(LogL(B))/dB = - Sum_i( Y_i*Exp(-B'X)*(-X_i)/(1+Exp(-B'X)) + (1-Y_i)*Exp(B'X)*X_i/(1+Exp(B'X)) ) |
| 51 | G(B) = d(LogL(B))/dB = |
52 | 52 | |
| 53 | = - Sum_i( Y_i*Exp(-B'X_i)*(-X_i)/(1+Exp(-B'X_i)) + (1-Y_i)*Exp(B'X_i)*X_i/(1+Exp(B'X_i)) ) = |
| 54 | |
| 55 | = Sum_i( Y_i*X_i/(1+Exp(B'X_i)) - (1-Y_i)*X_i/(1+Exp(-B'X_i)) ) = |
| 56 | |
| 57 | = Sum_i( ( Y_i/(1+Exp(B'X_i)) - (1-Y_i)/(1+Exp(-B'X_i)) ) * X_i ) |
53 | 58 | }}} |
| 59 | |
| 60 | ==== Hessian ==== |
| 61 | |
| 62 | La segunda derivada respecto a la matriz de parámetros ({{{B}}}) es la hessiana del logaritmo de la verosimilitud: |
| 63 | |
| 64 | {{{ |
| 65 | H(B) = d^2(LogL(B))/(dB dB') = |
| 66 | |
| 67 | = Sum_i( ( Y_i*Exp(B'X_i)/(1+Exp(B'X_i))^2 - (1-Y_i)*Exp(-B'X_i)/(1+Exp(-B'X_i))^2 ) * X_i * X'_i ) = |
| 68 | |
| 69 | = Sum_i( Exp(B'X_i)/(1+Exp(B'X_i))^2 * X_i * X'_i ) |
| 70 | }}} |