(a) Generate 10,000 random variables following the beta ((5,5)), the beta ((0.8,0.8)), the beta ((0.8,5)), the beta...

Question:

(a) Generate 10,000 random variables following the beta \((5,5)\), the beta \((0.8,0.8)\), the beta \((0.8,5)\), the beta \((5,2)\), the beta \((2,5)\), and the beta( \(5,0.8)\) distributions.

Fit kernel densities to each one, and produce six plots of the empirical densities, similar to the mathematical densities in Figure 3.6.

image text in transcribed

(b) Generate 10,000 random variables following the generalized error distribution, with \(u=2\) (normal), \(u=1\) (double exponential), \(u=0.8\), and \(u=3\). (A function to do this is in the \(\mathrm{R}\) package fGarch.)

Fit kernel densities to each one, and produce four graphs of the empirical densities on the same plot, similar to the mathematical densities in Figure 3.8.

image text in transcribed

Produce a legend to identify the separate densities.

(c) Generate 10,000 random variables following the skewed normal distribution, with \(\xi=1\) (normal), \(\xi=1.5\), and \(\xi=2\).

Fit kernel densities to each one, and produce three graphs of the empirical densities on the same plot, similar to the mathematical densities in Figure 3.9.

image text in transcribed

Produce a legend to identify the separate densities.

(d) Generate 10,000 random variables following each of the normal mixture distributions:

\[ \begin{gathered} 0.6 \mathrm{~N}(0,1)+0.4 \mathrm{~N}(0,9) \\ 0.6 \mathrm{~N}(0,1)+0.4 \mathrm{~N}(0,0.64) \\ 0.5 \mathrm{~N}(0,1)+0.5 \mathrm{~N}(3,1) \\ 0.9 \mathrm{~N}(0,1)+0.1 \mathrm{~N}(3,1) \end{gathered} \]

Fit kernel densities to each one, and produce six graphs of the empirical densities on the same plot, similar to the mathematical densities in Figure 3.10.

image text in transcribed

Produce a legend to identify the separate densities.

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: