Learn R Programming

pkmon (version 1.1)

pEmp: Empirical estimator of a discrete function

Description

Empirical estimator of a discrete function

Usage

pEmp(X)

Value

support

The points of the support of the estimator

count

The counts of the sample

freq

The normalized counts

Arguments

X

A random sample from a discrete probability.

Author

Jade Giguelay

Details

The empirical estimator is defined as \(p(j)=\Sigma_{i=1}^n \bold{1}_{x_j=j}\).

Examples

Run this code
x=rpois(100, lambda=0.3)
ptild=pEmp(x)

Run the code above in your browser using DataLab