estimation of variance of slope and intercept in logistic regression

182 Views Asked by At

let us suppose we have following data

enter image description here

i would like to test whether number of hours of studying helps me to predict student will pass or not, i used following step, initially i give some values to slope and intercept

$\beta_1=0.1 $

$\beta_0=0.1$

after that i have calculated $L$ as

$L=\beta_1 \cdot\text{Hours}+\beta_0 $

and also i have calculated probabilities , all calculation is shown on screenshot

enter image description here

finally i have calculate sum of last calculated part and i have got

-13.27734511

using solver i have estimated slope and intercepts, also i have calculated estimated probabilities and residuals enter image description here

Slope       1.510731897
Intercept   -4.346648201

now i have following questions

  1. how to calculate std error of intercepts and slope ?
  2. how to calculate P value using Wald test ?

please give me hint and i will try to solve myself