How can l choose the number of bins to plot a histogram for gibbs sampling process?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How can l choose the number of bins to plot a histogram for gibbs sampling process?

Ahmed Mazari


Hello,

l want to plot a histogram for gibbs sampling distribution. But l don't  know how to choose the number of bins !!

x is the set of all possible values

y the frequency of each x value.

What should be the appropriate number of bins ?


Thank you

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How can l choose the number of bins to plot a histogram for gibbs sampling process?

Benjamin Deonovic
There are lots of packages that are capable of doing plotting in Julia already GadflyPlots, etc. which are all capable of doing histograms. If you are set on calculating the bins and widths yourself and making your own function to plot the histogram I suggest you read through the wiki article on histograms, they have an excellent section on many different rules for selecting bin sizes and widths. 

On Tuesday, August 23, 2016 at 9:30:44 AM UTC-5, Ahmed Mazari wrote:


Hello,

l want to plot a histogram for gibbs sampling distribution. But l don't  know how to choose the number of bins !!

x is the set of all possible values

y the frequency of each x value.

What should be the appropriate number of bins ?


Thank you

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...