How do I show relative frequency on histogram?
21 views (last 30 days)
Okay, I am supposed to make 1000 random values between 1 to 10 and plot them on the histogram to show the relative frequency.
Also my nbins must be 50
It puts data on the histogram, but how do I show the relative frequency?
Star Strider on 8 Sep 2014
The relative frequency is the absolute frequency normalised by the total number of events. In your particular situation, you would get the relative frequency for each bin by dividing the empirical frequencies in each of your bins by 1000.