|
Biogeme: Python Library
2.5
|
Functions | |
| def | loglikelihood.loglikelihood (prob) |
| Simply computes the log of the probability. More... | |
| def | loglikelihood.mixedloglikelihood (prob) |
| Compute a simulated loglikelihood function. More... | |
| def | loglikelihood.likelihoodregression (meas, model, sigma) |
| Computes likelihood function of a regression model. More... | |
| def | loglikelihood.loglikelihoodregression (meas, model, sigma) |
| Computes log likelihood function of a regression model. More... | |
| def | weightedloglikelihood.weightedloglikelihood (prob, choice, weight) |
| Computes the log likelihood function for the WESML estimator. More... | |
| def loglikelihood.likelihoodregression | ( | meas, | |
| model, | |||
| sigma | |||
| ) |
Computes likelihood function of a regression model.
| meas | An expression providing the value of the measure for the current observation. |
| model | An expression providing the output of the model for the current observation. |
| sigma | An expression (typically, a parameter) providing the standard error of the error term. |
is the pdf of the normal distribution. Definition at line 50 of file loglikelihood.py.
| def loglikelihood.loglikelihood | ( | prob | ) |
Simply computes the log of the probability.
| prob | An expression providing the value of the probability. |
Definition at line 13 of file loglikelihood.py.
| def loglikelihood.loglikelihoodregression | ( | meas, | |
| model, | |||
| sigma | |||
| ) |
Computes log likelihood function of a regression model.
| meas | An expression providing the value of the measure for the current observation. |
| model | An expression providing the output of the model for the current observation. |
| sigma | An expression (typically, a parameter) providing the standard error of the error term. |
Definition at line 70 of file loglikelihood.py.
| def loglikelihood.mixedloglikelihood | ( | prob | ) |
Compute a simulated loglikelihood function.
| prob | An expression providing the value of the probability. Although it is not formally necessary, the expression should contain one or more random variables of a given distribution, and therefore write
|
is the number of draws, and
is the rth draw of the random variable
. Definition at line 32 of file loglikelihood.py.
| def weightedloglikelihood.weightedloglikelihood | ( | prob, | |
| choice, | |||
| weight | |||
| ) |
Computes the log likelihood function for the WESML estimator.
| prob | dictionary were the keys are the identifiers of the alternatives in the choice set, and the values are expressions representing the choice probabilities. |
| choice | expression producing the id of the chosen alternative. |
| weight | expression producing the id of the chosen alternative. |
Definition at line 12 of file weightedloglikelihood.py.