Derivation of the WStat formula#
you can write down the likelihood formula as
where
In the most general case, where
Profile Likelihood#
Most of the times you probably won’t have a model in order to get
This yields a quadratic equation for
with the solution
where
Goodness of fit#
The best-fit value of the WStat as defined now contains no information about the
goodness of the fit. We consider the likelihood of the data
and add twice the log likelihood
to WStat. In doing so, we are computing the likelihood ratio:
Intuitively, this log-likelihood ratio should asymptotically behave like a
chi-square with m-n
degrees of freedom, where m
is the number of
measurements and n
the number of model parameters.
Final result#
Special cases#
The above formula is undefined if
If
and
WStat is derived by taking 2 times the negative log likelihood and adding the goodness of fit term as ever
Note that this is the limit of the original Wstat formula for
The analytical result for
When inserting this into the WStat we find the simplified expression.
If
and
For
Therefore we distinct two cases. The physical one where
is straightforward and gives
For the unphysical case, we set