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.
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??
Homework inspired questions are welcome here, but you have to tell us what have you tried so far? what is your specific problem? We are more inclined towards helping you with specific coding problems rather than doing your work for you.
For guidelines about how to properly ask homework related questions here, please read our homework policy.