Hey guys! So I'm quite new with RStudio and I am needing some urgent help with some coding for general activities that I am finding it difficult. For this particular one we're using a dataset with an annual total precipitation for California from 1895-2019.
Based on this data I need to:
Plot a histogram of this data with a reasonable amount of bins - this is what I got (file attached)
estimate the mean and standard deviation of the normal distribution (I found the mean to be approx. 22 and sd to be 5.85).
superpose a normal probability density function (PDF) to the previous histogram (this is the part I don't know how to do)
Finally, based on the histogram that was superposed with the PDF, would you say the Normal distribution is a good fit? Why is that, given the skewed distribution with a high frequency of no precipitation occurrence??
Thank you guys!