Using a previous example on logistic regression, the likelihood ratio can be calculated for an estimate of goodness of fit of the parameters in the regression model. Assuming a confidence level of 95%, and hypothesis setting below:

Null hypothesis: A_{1}=A_{2}=0.

Alternative hypothesis: Not A_{1}=A_{2}=0.

Firstly, recall the parameters of the logistic regression are obtained by the Nelder-Mead method:

Since the maximum likelihood approach is used, the maximum likelihood value, L, is obtained:

The success and failure count are obtained, and then substituted into the equation below together with the maximum likelihood.

Finally, the χ² distribution for the value obtained above is determined, with degree of freedom of 2.

Since P-value is smaller than 0.05, therefore the conclusion is reject the null hypothesis A_{1}=A_{2}=0 and accept Not A_{1}=A_{2}=0.

### Like this:

Like Loading...

*Related*