Code covered by the BSD License  

Highlights from
Probability Density Function (PDF) Estimator (V3.2)

4.8

4.8 | 5 ratings Rate this file 110 Downloads (last 30 days) File Size: 61.13 KB File ID: #19121
image thumbnail

Probability Density Function (PDF) Estimator (V3.2)

by Yi Cao

 

09 Mar 2008 (Updated 08 Apr 2010)

An estimate of probability density function of the given random data with bounded support.

| Watch this File

File Information
Description

This function provides an estimate of probability density function for a given random data (an 1-d vector). The estimation can be done with a specified number of intervals, and bandwidth. Without any output, the function will plot the probability density function. A few examples are included to show how to use the function and its output.

It also includes bounded support. For some problems, bounded support is important. For example, many physical problems require positive variables. This function is able to estimate PDF for such problems as well if the lower and upper bounds are specified.

The new version includes cdf and inverse cdf estimation.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
PDFPLOT
This submission has inspired the following:
Update PDF Estimation, Bivariant Kernel Density Estimation (V2.0)

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
10 Mar 2008 Jesper Henriksen

I havent tried this code, but it sounds very similar to matlabs ksdensity

10 Mar 2008 Dimitri Shvorob

It's an ad hoc smoother:
p.f(2:end-1)=p.f(2:end-1)*0.5+(p.f(1:end-2)+p.f(3:end))*0.25;
One can search FEX for 'kernel density estimator'.

10 Mar 2008 Yi Cao

The file has been upgraded to use Gaussian kernel smoothing estimation algorithm.

08 May 2008 ricardo lusternik  
05 Apr 2009 V. Poor  
02 Dec 2009 Liu ?  
12 Apr 2010 Turkay YILDIZ  
22 Apr 2011 Brent Boehlert

Excellent -- exactly what I needed.

Please login to add a comment or rating.
Updates
11 Mar 2008

upgrade to use Gaussian kernel density estimation

13 Mar 2008

update with the optimal bandwidth

14 Apr 2008

upgrade for bounded support and to include the html description.

24 Apr 2009

update descriptions

04 Nov 2009

update with cdf and inverse cdf estimation.

07 Apr 2010

a bug fixed

08 Apr 2010

Bug fix and new functionality

Tag Activity for this File
Tag Applied By Date/Time
statistics Yi Cao 22 Oct 2008 09:52:33
probability Yi Cao 22 Oct 2008 09:52:33
probability function Yi Cao 22 Oct 2008 09:52:33
probability density function Yi Cao 22 Oct 2008 09:52:33
probability density function peicfull 24 May 2011 09:37:49

Contact us at files@mathworks.com