Answered step by step
Verified Expert Solution
Link Copied!

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 two-parameter family with location
parameter and scale parameter . Its cdf is given by
F(x;,):=e-e-x, where ,z=x-
4
Furthermore, this distribution has mean and variance 2 given by
=+,2=262
where ~~0.57721756 is the Euler-Mascheroni constant.
(a) Compute a formula for the pdf f(x;,) of this distribution. Hence write a function
Gumbel_pdf (x, alpha, beta) which computes this density at a vector of values x. Use this
function to write a function Gumbel_LL(x, alpha, beta) which computes the log-likelihood
of the data x as a function of the parameters alpha, beta.
(b) Download the file QM_Exam_Gumbel_data.csv, which contains 400 draws from a certain dis-
tribution. You suspect this distribution may be modelled by the Gumbel (,)-distribution.
Write a matlab script Q3.m which does the following:
(i) Computes and displays method-of-moments estimates alpha_MM, beta_MM of ,.
(ii) Uses maximum likelihood estimation to compute and display a set of point estimates
alpha_MLE, beta_MLE of alpha, beta.
Here, employ the matlab function fminsearch to perform the optimization, with the
point [alpha_MM , beta_MM] as starting point.
(iii) Computes and displays 95%-confidence intervals [L_alpha, U_alpha] and [L_beta,
U_beta] using the pivotal bootstrap method. Here, use B =500 bootstrap simula-
tions.
(iv) Plots a Q-Q plot of the data x against a vector Y consisting of 1000 Gumbel(alpha_MLE,
beta_MLE)-distributed random numbers.
[Hint: In order to generate Y, recall that if F is a cdf and U is a uniformly distributed
random number on 0,1, then the random number F-1(U) is distributed according to
F.]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

How does a partnership differ from a corporation? Discuss.

Answered: 1 week ago