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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to julia-stats
There are lots of packages that are capable of doing plotting in Julia already Gadfly, Plots, 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.