Functions | |
def | loglikelihood |
Simply computes the log of the probability. | |
def | mixedloglikelihood |
Compute a simulated loglikelihood function. | |
def | likelihoodregression |
Computes likelihood function of a regression model. |
def loglikelihood::likelihoodregression | ( | meas, | |
model, | |||
sigma | |||
) |
Computes likelihood function of a regression model.
meas | An expression providing the value ![]() |
model | An expression providing the output ![]() |
sigma | An expression (typically, a parameter) providing the standard error ![]() |
def likelihoodregression(meas,model,sigma): t = (meas - model) / sigma f = bioNormalPdf(t) / sigma return f
def loglikelihood::loglikelihood | ( | prob ) |
Simply computes the log of the probability.
prob | An expression providing the value of the probability. |
def loglikelihood(prob): loglikelihood = log(prob) return loglikelihood
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
|
def mixedloglikelihood(prob): drawIterator('drawIter') l = Sum(prob,'drawIter') return log(l)