Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have a data set to which you want to fit the Gumbel distribution, which is an extreme value distribution. The Gumbel distribution Gumbel (
You have a data set to which you want to fit the Gumbel distribution, which is an extreme value
distribution. The Gumbel distribution Gumbel is a twoparameter family with location
parameter and scale parameter Its cdf is given by
;: where
Furthermore, this distribution has mean and variance given by
where ~~ is the EulerMascheroni constant.
a Compute a formula for the pdf ; of this distribution. Hence write a function
Gumbelpdf alpha, beta which computes this density at a vector of values Use this
function to write a function GumbelLL alpha, beta which computes the loglikelihood
of the data as a function of the parameters alpha, beta.
b Download the file QMExamGumbeldata.csv which contains draws from a certain dis
tribution. You suspect this distribution may be modelled by the Gumbel distribution.
Write a matlab script Qm which does the following:
i Computes and displays methodofmoments estimates alphaMM betaMM of
ii Uses maximum likelihood estimation to compute and display a set of point estimates
alphaMLE, betaMLE of alpha, beta.
Here, employ the matlab function fminsearch to perform the optimization, with the
point alphaMM betaMM as starting point.
iii Computes and displays confidence intervals Lalpha, Ualpha and Lbeta,
Ubeta using the pivotal bootstrap method. Here, use B bootstrap simula
tions.
iv Plots a QQ plot of the data against a vector consisting of GumbelalphaMLE,
betaMLEdistributed random numbers.
Hint: In order to generate recall that if is a cdf and is a uniformly distributed
random number on then the random number is distributed according to
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