Question
Suppose that random variable X 0, representing the annual rainfall (in metres) at your weather station, has a Gamma distribution, i.e., X Gamma(, ), where
Suppose that random variable X 0, representing the annual rainfall (in metres) at your weather station, has a Gamma distribution, i.e., X Gamma(, ), where and are
positive parameters. Below, we re-parameterize by using the parameter = 1/.
(a) Use Python to describe your rainfall data series, by computing summary statistics, and plotting the kernel density function. Explain and discuss these results, including the nature and implications of the empirical distribution for rainfall at your weather station.
(b) Estimate the parameters of the Gamma distribution by the method of maximum likelihood, presenting your results (parameter estimates, standard errors, etc.) in tabular form.
(c) Plot the estimated (using the maximum likelihood estimates) Gamma density for
rainfall. Using the estimated Gamma density for rainfall, compute estimates of the probabilities of rainfall being (i) less than 70% of average annual rainfall (very dry), (ii) more than 130% of average annual rainfall (very wet) and (iii) either (i) or (ii). Discuss these results and their implications.
(d) Use the likelihood ratio test procedure to test the null hypothesis that = 1 (meaning
that the population mean and variance are equal) against the alternative hypothesis that = 1 using a 5% significance level. Your answer should provide full details of the logic used and your conclusion. [Hint: To estimate the model with = 1, replace '{theta}' by '1' in the estimation command.]
Include your Python program(s) at the end of your answers to this question.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started