dlcd {LogConcDEAD}R Documentation

Evaluation of a log-concave maximum likelihood estimator at a point

Description

This function evaluates the density function of a log-concave maximum likelihood estimator at a point or points.

Usage

dlcd(x,lcd, uselog=FALSE, eps=10^-10)

Arguments

x

Point (or matrix of points) at which the maximum likelihood estimator should be evaluated

lcd

Object of class "LogConcDEAD" (typically output from mlelcd)

uselog

Scalar logical: should the estimator should be calculated on the log scale?

eps

Tolerance for numerical stability

Details

A log-concave maximum likelihood estimate f^n\hat{f}_n is satisfies logf^n=hˉy\log \hat{f}_n = \bar{h}_y for some yRny \in R^n, where

hˉy(x)=inf{h(x) ⁣:h concave ,h(xi)yi for i=1,,n}.\bar{h}_y(x) = \inf \lbrace h(x) \colon h \textrm{ concave }, h(x_i) \geq y_i \textrm{ for } i = 1, \ldots, n \rbrace.

Functions of this form may equivalently be specified by dividing CnC_n, the convex hull of the data into simplices CjC_j for jJj \in J (triangles in 2d, tetrahedra in 3d etc), and setting

f(x)=exp{bjTxβj}f(x) = \exp\{b_j^T x - \beta_j\}

for xCjx \in C_j, and f(x)=0f(x) = 0 for xCnx \notin C_n. The estimated density is zero outside the convex hull of the data.

The estimate may therefore be evaluated by finding the appropriate simplex CjC_j, then evaluating exp{bjTxβj}\exp\{b_j^T x - \beta_j\} (if xCnx \notin C_n, set f(x)=0f(x) = 0).

For examples, see mlelcd.

Value

A vector of maximum likelihood estimate (or log maximum likelihood estimate) values, as evaluated at the points x.

Author(s)

Madeleine Cule

Robert Gramacy

Richard Samworth

See Also

mlelcd


[Package LogConcDEAD version 1.6-9 Index]