lnP
lnP is the natural logarithm of a probability or likelihood value, commonly used in statistics and probability theory. The letter P denotes a probability, which may represent either the probability of observed data under a model (the likelihood) or a probability distribution's probability mass or density. Since ln uses base e, ln P is the natural log of P. When P is a likelihood, ln P is called the log-likelihood.
For a dataset x and a parameter vector θ, the likelihood L(θ) = P(x | θ). The log-likelihood is l(θ)
Optimization uses l(θ) rather than L(θ) for maximum likelihood estimation. The score s(θ) = ∂l/∂θ; the observed
Cautions: ln P is defined only for P > 0; zero probabilities yield -∞, requiring care with zero-probability