Appendix: Log-Likelihood Equations: Difference between revisions
No edit summary |
Lisa Hacker (talk | contribs) No edit summary |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Template: | {{Template:LDABOOK|Appendix D|Log-Likelihood Equations}} | ||
This appendix covers the log-likelihood functions and their associated partial derivatives for most of the distributions available in Weibull++. These distributions are discussed in more detail in the chapter for each distribution. | This appendix covers the log-likelihood functions and their associated partial derivatives for most of the distributions available in Weibull++. These distributions are discussed in more detail in the chapter for each distribution. | ||
Line 155: | Line 155: | ||
:*<math>T_{Ri}^{\prime \prime }\,\!</math> is the ending of the <math>{{i}^{th}}\,\!</math> interval | :*<math>T_{Ri}^{\prime \prime }\,\!</math> is the ending of the <math>{{i}^{th}}\,\!</math> interval | ||
To find the two-parameter solution, look at the partial derivatives <math>\tfrac{\partial \Lambda }{\partial \lambda }</math> and <math>\tfrac{\partial \Lambda }{\partial \gamma}</math>: | |||
::<math>\begin{align} | ::<math>\begin{align} | ||
Line 163: | Line 163: | ||
\end{align}\,\!</math> | \end{align}\,\!</math> | ||
and | and | ||
::<math> | |||
From here we see that <math>\frac{\partial \Lambda }{\partial \gamma}</math> is a positive, constant function of <math>\gamma</math>. As alluded to in the chapter on the exponential distribution, this implies that the log-likelihood function <math>\Lambda</math> is, for fixed <math>\lambda</math>, an increasing function of <math>\gamma</math>. Thus the MLE for <math>\gamma</math> is its largest possible value <math>T_1</math>. Therefore, to find the full MLE solution <math>(\widehat{\lambda },\widehat{\gamma})</math> for the two-parameter exponential distribution, one should set <math>\gamma</math> equal to the first failure time and then find (numerically) a <math>\lambda</math> such that <math>\tfrac{\partial \Lambda}{\partial \lambda} = 0</math>. | |||
The 3D Plot utility in Weibull++ further illustrates this behavior of the log-likelihood function, as shown next: | |||
[[image: appendixc__127.gif|center|350px]] | [[image: appendixc__127.gif|center|350px]] | ||
Line 231: | Line 218: | ||
where: | where: | ||
::<math>\phi \left( x \right)=\frac{1}{\sqrt{2\pi }}{{e}^{-\tfrac{ | ::<math>\phi \left( x \right)=\frac{1}{\sqrt{2\pi }}{{e}^{-\tfrac{{{x}^{2}}}{2}}}\,\!</math> | ||
and: | and: | ||
Line 256: | Line 243: | ||
::<math>\begin{align} | ::<math>\begin{align} | ||
\ln (L)= & \Lambda =\underset{i=1}{\overset{{{F}_{e}}}{\mathop \sum }}\,{{N}_{i}}\ln \left[ \frac{1}{{{\sigma }_{{{T}'}}}}\phi \left( \frac{\ln \left( {{T}_{i}} \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right) \right] \ | \ln (L)= & \Lambda =\underset{i=1}{\overset{{{F}_{e}}}{\mathop \sum }}\,{{N}_{i}}\ln \left[ \frac{1}{{{T}_{i}} {{\sigma }_{{{T}'}}}}\phi \left( \frac{\ln \left( {{T}_{i}} \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right) \right] \ | ||
& \text{ }+\underset{i=1}{\overset{S}{\mathop \sum }}\,N_{i}^{\prime }\ln \left[ 1-\Phi \left( \frac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right) \right] \ | & \text{ }+\underset{i=1}{\overset{S}{\mathop \sum }}\,N_{i}^{\prime }\ln \left[ 1-\Phi \left( \frac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right) \right] \ | ||
& \text{ }+\underset{i=1}{\overset{FI}{\mathop \sum }}\,N_{i}^{\prime \prime }\ln \left[ \Phi \left( \frac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\Phi \left( \frac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right) \right] | & \text{ }+\underset{i=1}{\overset{FI}{\mathop \sum }}\,N_{i}^{\prime \prime }\ln \left[ \Phi \left( \frac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\Phi \left( \frac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right) \right] | ||
Line 277: | Line 264: | ||
The solution will be found by solving for a pair of parameters <math>\left( {\mu }',{{\sigma }_{{{T}'}}} \right)\,\!</math> so that <math>\tfrac{\partial \Lambda }{\partial {\mu }'}=0\,\!</math> and <math>\tfrac{\partial \Lambda }{\partial {{\sigma }_{{{T}'}}}}=0\,\!</math>: | The solution will be found by solving for a pair of parameters <math>\left( {\mu }',{{\sigma }_{{{T}'}}} \right)\,\!</math> so that <math>\tfrac{\partial \Lambda }{\partial {\mu }'}=0\,\!</math> and <math>\tfrac{\partial \Lambda }{\partial {{\sigma }_{{{T}'}}}}=0\,\!</math>: | ||
::<math>\begin{align} | ::<math>\begin{align} | ||
\frac{\partial \Lambda }{\partial {\mu }'}= & \frac{1}{\sigma _{{{T}'}}^{2}}\underset{i=1}{\overset{{{F}_{e}}}{\mathop \sum }}\, | \frac{\partial \Lambda }{\partial {\mu }'}= & \frac{1}{\sigma _{{{T}'}}^{2}}\underset{i=1}{\overset{{{F}_{e}}}{\mathop \sum }}\,N_{i}(\ln ({{T}_{i}})-{\mu }') \ | ||
& +\frac{1}{{{\sigma }_{{{T}'}}}}\underset{i=1}{\overset{S}{\mathop \sum }}\,N_{i}^{\prime }\frac{\phi \left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)}{1-\Phi \left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)} \ | & +\frac{1}{{{\sigma }_{{{T}'}}}}\underset{i=1}{\overset{S}{\mathop \sum }}\,N_{i}^{\prime }\frac{\phi \left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)}{1-\Phi \left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)} \ | ||
& \ \ -\underset{i=1}{\overset{FI}{\mathop \sum }}\,\frac{N_{i}^{\prime \prime }}{\sigma }\frac{\phi \left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\phi \left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)}{\Phi \left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\Phi \left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)} | & \ \ -\underset{i=1}{\overset{FI}{\mathop \sum }}\,\frac{N_{i}^{\prime \prime }}{\sigma }\frac{\phi \left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\phi \left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)}{\Phi \left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\Phi \left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)} | ||
\end{align}\,\!</math> | |||
::<math>\begin{align} | |||
\frac{\partial \Lambda }{\partial {{\sigma }_{{{T}'}}}}= & \underset{i=1}{\overset{{{F}_{e}}}{\mathop \sum }}\,N_{i}\left( \frac{{{\left( \ln ({{T}_{i}})-{\mu }' \right)}^{2}}}{\sigma _{{{T}'}}^{3}}-\frac{1}{{{\sigma }_{{{T}'}}}} \right) \ | |||
& +\frac{1}{{{\sigma }_{{{T}'}}}}\underset{i=1}{\overset{S}{\mathop \sum }}\,N_{i}^{\prime }\frac{\left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)\phi \left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)}{1-\Phi \left( \tfrac{\ln \left( T_{i}^{\prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)} \ | |||
& -\frac{1}{{{\sigma }_{{{T}'}}}}\underset{i=1}{\overset{FI}{\mathop \sum }}\,N_{i}^{\prime \prime }\frac{\left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)\phi \left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)\phi \left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)}{\Phi \left( \tfrac{\ln \left( T_{Ri}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)-\Phi \left( \tfrac{\ln \left( T_{Li}^{\prime \prime } \right)-{\mu }'}{{{\sigma }_{{{T}'}}}} \right)} | |||
\end{align}\,\!</math> | \end{align}\,\!</math> | ||
where: | where: | ||
::<math>\phi \left( x \right)=\frac{1}{\sqrt{2\pi }}\cdot {{e}^{-\tfrac{ | ::<math>\phi \left( x \right)=\frac{1}{\sqrt{2\pi }}\cdot {{e}^{-\tfrac{{{x}^{2}}}{2}}}\,\!</math> | ||
and: | and: | ||
Line 295: | Line 291: | ||
=== Mixed Weibull Log-Likelihood Functions and their Partials=== | === Mixed Weibull Log-Likelihood Functions and their Partials=== | ||
The log-likelihood function (without the constant) is composed of three summation portions: | The log-likelihood function (without the constant) is composed of three summation portions: | ||
::<math>\begin{align} | ::<math>\begin{align} |
Latest revision as of 19:13, 15 September 2023
This appendix covers the log-likelihood functions and their associated partial derivatives for most of the distributions available in Weibull++. These distributions are discussed in more detail in the chapter for each distribution.
Weibull Log-Likelihood Functions and their Partials
The Two-Parameter Weibull
This log-likelihood function is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the Weibull shape parameter (unknown a priori, the first of two parameters to be found) is the Weibull scale parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of interval failure data groups is the number of intervals in group of data intervals is the beginning of the interval is the ending of the interval
For the purposes of MLE, left censored data will be considered to be intervals with
The solution will be found by solving for a pair of parameters
The Three-Parameter Weibull
This log-likelihood function is again composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the Weibull shape parameter (unknown a priori, the first of three parameters to be found) is the Weibull scale parameter (unknown a priori, the second of three parameters to be found) is the time of the group of time-to-failure data is the Weibull location parameter (unknown a priori, the third of three parameters to be found) is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of interval data groups is the number of intervals in the group of data intervals is the beginning of the interval- and
is the ending of the interval
The solution is found by solving for
It should be pointed out that the solution to the three-parameter Weibull via MLE is not always stable and can collapse if
Non-regularity occurs when
Weibull++ attempts to find a solution in all of the regions using a variety of methods, but the user should be forewarned that not all possible data can be addressed. Thus, some solutions using MLE for the three-parameter Weibull will fail when the algorithm has reached predefined limits or fails to converge. In these cases, the user can change to the non-true MLE approach (in Weibull++ Application Setup), where
Exponential Log-Likelihood Functions and their Partials
The One-Parameter Exponential
This log-likelihood function is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the failure rate parameter (unknown a priori, the only parameter to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in the group of suspension data points is the time of the suspension data group is the number of interval data groups is the number of intervals in the group of data intervals is the beginning of the interval is the ending of the interval
The solution will be found by solving for a parameter
The Two-Parameter Exponential
This log-likelihood function for the two-parameter exponential distribution is very similar to that of the one-parameter distribution and is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the failure rate parameter (unknown a priori, the first of two parameters to be found) is the location parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in the group of suspension data points is the time of the suspension data group is the number of interval data groups is the number of intervals in the group of data intervals is the beginning of the interval is the ending of the interval
To find the two-parameter solution, look at the partial derivatives
and
.
From here we see that
The 3D Plot utility in Weibull++ further illustrates this behavior of the log-likelihood function, as shown next:
Normal Log-Likelihood Functions and their Partials
The complete normal likelihood function (without the constant) is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the mean parameter (unknown a priori, the first of two parameters to be found) is the standard deviation parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in the group of suspension data points is the time of the suspension data group is the number of interval data groups is the number of intervals in the group of data intervals is the beginning of the interval is the ending of the interval
The solution will be found by solving for a pair of parameters
where:
and:
Complete Data
Note that for the normal distribution, and in the case of complete data only (as was shown in Basic Statistical Background), there exists a closed-form solution for both of the parameters or:
and:
Lognormal Log-Likelihood Functions and their Partials
The general log-likelihood function (without the constant) for the lognormal distribution is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the mean of the natural logarithms of the times-to-failure (unknown a priori, the first of two parameters to be found) is the standard deviation of the natural logarithms of the times-to-failure (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in the group of suspension data points is the time of the suspension data group is the number of interval data groups is the number of intervals in the group of data intervals is the beginning of the interval is the ending of the interval
The solution will be found by solving for a pair of parameters
where:
and:
Mixed Weibull Log-Likelihood Functions and their Partials
The log-likelihood function (without the constant) is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the number of subpopulations is the proportionality of the subpopulation (unknown a priori, the first set of three sets of parameters to be found) is the Weibull shape parameter of the subpopulation (unknown a priori, the second set of three sets of parameters to be found) is the Weibull scale parameter (unknown a priori, the third set of three sets of parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of groups of interval data points is the number of intervals in group of data intervals is the beginning of the interval is the ending of the interval
The solution will be found by solving for a group of parameters:
so that:
Logistic Log-Likelihood Functions and their Partials
This log-likelihood function is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the logistic shape parameter (unknown a priori, the first of two parameters to be found) is the logistic scale parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of interval failure data group is the number of intervals in group of data intervals is the beginning of the interval is the ending of the interval
For the purposes of MLE, left censored data will be considered to be intervals with
The solution of the maximum log-likelihood function is found by solving for (
The Loglogistic Log-Likelihood Functions and their Partials
This log-likelihood function is composed of three summation portions:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the loglogistic shape parameter (unknown a priori, the first of two parameters to be found) is the loglogistic scale parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of interval failure data groups, is the number of intervals in group of data intervals is the beginning of the interval is the ending of the interval
For the purposes of MLE, left censored data will be considered to be intervals with
The solution of the maximum log-likelihood function is found by solving for (
The Gumbel Log-Likelihood Functions and their Partials
This log-likelihood function is composed of three summation portions:
or:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the Gumbel shape parameter (unknown a priori, the first of two parameters to be found) is the Gumbel scale parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of interval failure data groups is the number of intervals in group of data intervals is the beginning of the interval is the ending of the interval
For the purposes of MLE, left censored data will be considered to be intervals with
The solution of the maximum log-likelihood function is found by solving for (
The Gamma Log-Likelihood Functions and their Partials
This log-likelihood function is composed of three summation portions:
or:
where:
is the number of groups of times-to-failure data points is the number of times-to-failure in the time-to-failure data group is the gamma shape parameter (unknown a priori, the first of two parameters to be found) is the gamma scale parameter (unknown a priori, the second of two parameters to be found) is the time of the group of time-to-failure data is the number of groups of suspension data points is the number of suspensions in group of suspension data points is the time of the suspension data group is the number of interval failure data groups is the number of intervals in group of data intervals is the beginning of the interval- and
is the ending of the interval
For the purposes of MLE, left censored data will be considered to be intervals with
The solution of the maximum log-likelihood function is found by solving for (