2.5

2.5 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 4.26 KB File ID: #16796
image thumbnail

HistOptimal

by Yves Rozenholc

 

10 Oct 2007 (Updated 11 Oct 2007)

Automatic choice of bin number in regular histogram construction

| Watch this File

File Information
Description

Choose automatically the number of bin of a regular histogram using penalized likelihood procedure following paper of Birgé-Rozenholc in ESAIM P&S (2006), 10, pp.24-45 "How many bins should be put in a regular histogram?"

MATLAB release MATLAB 7 (R14)
Other requirements no requirement
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
11 Oct 2007 F Moisy

The file "ReadMe" is unreadable (wrong format?)
I assume everything was explained in this file, because the comments in HistOptimal.m do not help much (no example). The help refers to the files hist_optimal_doc.dvi and hist_optimal_doc.ps, which apparently are also missing in the submission.

11 Oct 2007 Yves Rozenholc

I just upload a modified version which will be disponible in 1 or 2 days. Actually, the references to hist_optimal_doc.ps are wrong. The ReadMe is a plain text file that you could open with any text editor.

12 Oct 2007 F Moisy

I rate here the new version of the submission -- Although the core of the function (determination of the optimal number of bins for an histogram) is original and interesting, the two other functions (binning of the data and plot of the histogram) are redundant with Matlab's built-in functions.

12 Oct 2007 Dimitri Shvorob

The procedure seems to boil down to a simple adjustment, made in 2-3 lines of histoptimal.m. Would it be quite so hard to leave a PDF with the formula and brief explanation? Or leave a link to your paper on ESAIM? 95% of the code, indeed, replicates Matlab's built-in functionality.
 

12 Oct 2007 Yves Rozenholc

The hist.m function in matlab do not create a histogram in a statistical meaning. This is one reason to re-construct it with bin surfaces equal to probabilities.
The link to the paper is :
http://www.esaim-ps.org/index.php?option=article&access=standard&Itemid=129&url=/articles/ps/abs/2006/01/ps0322/ps0322.html

15 Oct 2007 Dimitri Shvorob

I am not sure I follow. In what sense does HIST 'not create a histogram in a statistical meaning'? And what do you mean by 'bin surfaces equal to probabilities'? If you are referring to binwidths, these are constant, and a hardly equal to any probabilities.

Please login to add a comment or rating.
Updates
11 Oct 2007

Corrections in the help of the function. Add a .txt to the readme to help its lecture

11 Oct 2007

Corrections in the help of the function. Add a .txt to the readme to help its lecture. Keywords.

Tag Activity for this File
Tag Applied By Date/Time
statistics Yves Rozenholc 22 Oct 2008 09:30:57
probability Yves Rozenholc 22 Oct 2008 09:30:57
density estimation Yves Rozenholc 22 Oct 2008 09:30:57
regular histogram Yves Rozenholc 22 Oct 2008 09:30:57
penalized likelihood Yves Rozenholc 22 Oct 2008 09:30:57

Contact us at files@mathworks.com