Chapter 4: Problem 6
Determine a method to generate random observations for the following pdf:
$$
f(x)=\left\\{\begin{array}{ll}
4 x^{3} & 0
Chapter 4: Problem 6
Determine a method to generate random observations for the following pdf:
$$
f(x)=\left\\{\begin{array}{ll}
4 x^{3} & 0
All the tools & learning materials you need for study success - in one app.
Get started for freeIn Exercise 4.2.11, the sampling was from the \(N(0,1)\) distribution. Show, however, that setting \(\mu=0\) and \(\sigma=1\) is without loss of generality. Hint: First, \(X_{1}, \ldots, X_{n}\) is a random sample from the \(N\left(\mu, \sigma^{2}\right)\) if and only if \(Z_{1}, \ldots, Z_{n}\) is a random sample from the \(N(0,1)\), where \(Z_{i}=\left(X_{i}-\mu\right) / \sigma\). Then show the confidence interval based on the \(Z_{i}\) 's contains 0 if and only if the confidence interval based on the \(X_{i}\) 's contains \(\mu\).
Here are the weights of 26 professional baseball pitchers; [see page 76 of Hettmansperger and McKean (2011) for the complete data set]. The data are in \(\mathrm{R}\) file bb. rda. Suppose we assume that the weight of a professional baseball pitcher is normally distributed with mean \(\mu\) and variance \(\sigma^{2}\). \(\begin{array}{llllllllllllll}160 & 175 & 180 & 185 & 185 & 185 & 190 & 190 & 195 & 195 & 195 & 200 & 200 \\ 200 & 200 & 205 & 205 & 210 & 210 & 218 & 219 & 220 & 222 & 225 & 225 & 232\end{array}\) (a) Obtain a histogram of the data. Based on this plot, is a normal probability model credible? (b) Obtain the maximum likelihood estimates of \(\mu, \sigma^{2}, \sigma\), and \(\mu / \sigma .\) Locate your estimate of \(\mu\) on your plot in part (a). Then overlay the normal pdf with these estimates on your histogram in Part (a). (c) Using the binomial model, obtain the maximum likelihood estimate of the proportion \(p\) of professional baseball pitchers who weigh over 215 pounds. (d) Determine the mle of \(p\) assuming that the weight of a professional baseball player follows the normal probability model \(N\left(\mu, \sigma^{2}\right)\) with \(\mu\) and \(\sigma\) unknown.
This data set was downloaded from the site http://lib.stat.cmu.edu/DASL/ at Carnegie-Melon university. The original source is Willerman et al. (1991). The data consist of a sample of brain information recorded on 40 college students. The variables include gender, height, weight, three IQ measurements, and Magnetic Resonance Imaging (MRI) counts, as a determination of brain size. The data are in the rda file braindata. rda at the sites referenced in the Preface. For this exercise, consider the MRI counts. (a) Load the rda file braindata.rda and print the MRI data, using the code: \(\mathrm{mri}<-\) braindata \([, 7] ;\) print(mri). (b) Obtain a histogram of the data, hist \((m r i, p r=T)\). Comment on the shape. (c) Overlay the default density estimator, lines (density(mri)). Comment on the shape. 4.1.10. This data set was downloaded from the site http://lib.stat.cmu.edu/DASL/ at Carnegie-Melon university. The original source is Willerman et al. (1991). The data consist of a sample of brain information recorded on 40 college students. The variables include gender, height, weight, three IQ measurements, and Magnetic Resonance Imaging (MRI) counts, as a determination of brain size. The data are in the rda file braindata. rda at the sites referenced in the Preface. For this exercise, consider the MRI counts. (a) Load the rda file braindata.rda and print the MRI data, using the code: \(\mathrm{mri}<-\) braindata \([, 7] ;\) print(mri). (b) Obtain a histogram of the data, hist \((m r i, p r=T)\). Comment on the shape. (c) Overlay the default density estimator, lines (density(mri)). Comment on the shape.
Two different teaching procedures were used on two different groups of students. Each group contained 100 students of about the same ability. At the end of the term, an evaluating team assigned a letter grade to each student. The results were tabulated as follows. \begin{tabular}{ccccccc} \hline & \multicolumn{5}{c} { Grade } & \\ \cline { 2 - 6 } Group & A & B & C & D & F & Total \\ \hline I & 15 & 25 & 32 & 17 & 11 & 100 \\ II & 9 & 18 & 29 & 28 & 16 & 100 \\ \hline \end{tabular} If we consider these data to be independent observations from two respective multinomial distributions with \(k=5\), test at the \(5 \%\) significance level the hypothesis
Let \(X\) have a Poisson distribution with mean \(\theta\). Consider the simple hypothesis \(H_{0}: \theta=\frac{1}{2}\) and the alternative composite hypothesis \(H_{1}: \theta<\frac{1}{2} .\) Thus \(\Omega=\left\\{\theta: 0<\theta \leq \frac{1}{2}\right\\}\). Let \(X_{1}, \ldots, X_{12}\) denote a random sample of size 12 from this distribution. We reject \(H_{0}\) if and only if the observed value of \(Y=X_{1}+\cdots+X_{12} \leq 2\). Show that the following \(\mathrm{R}\) code graphs the power function of this test: theta=seq \((.1, .5, .05) ;\) gam=ppois \((2\), theta*12 \()\) plot (gam "theta, pch=" ", xlab=expression(theta), ylab=expression(gamma)) lines (gam "theta) Run the code. Determine the significance level from the plot.
What do you think about this solution?
We value your feedback to improve our textbook solutions.