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

85 views
Skip to first unread message

Ahmed Mazari

unread,
Aug 23, 2016, 10:30:44 AM8/23/16
to julia-stats


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

Benjamin Deonovic

unread,
Aug 29, 2016, 11:04:29 AM8/29/16
to julia-stats
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. 
Reply all
Reply to author
Forward
0 new messages