Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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.

Short Answer

Expert verified
This exercise involves loading an rda file, extracting the MRI data, creating a histogram of said data, overlaying a density estimator, and then drawing conclusions about the data based on the produced visual. The results depend on the actual shape of the histogram and density line, implying the need for detailed visual examination to draw definitive conclusions.

Step by step solution

01

Loading and Printing the Data

Firstly, the R environment must be set up to run R scripts. Make sure that the 'braindata.rda' file is present in the correct directory. Now, load the 'braindata.rda' file and print the MRI data using the provided code: mri<- braindata[, 7]; print(mri). The 'mri' vector now contains the MRI counts.
02

Generating the Histogram

The hist() function is used to arrange data into grouped format for graphical representation. Generate a histogram of the MRI data with the probability density instead of the count on the y-axis by running: hist(mri, pr=T). Now, the shape of the data distribution can be visually inspected.
03

Overlaying the Density Estimator

After creating the histogram, overlay it with a default density estimator. Density estimation visualizes the probability density function of the underlying variable. To overlay the histogram with density estimator, use the lines() function: lines(density(mri)). Now, we have the histogram with a density line which gives a better understanding of the distribution.
04

Analyzing and Interpreting

Upon examining the histogram and overlaid density line, comments can be made about the shape of the data. These observations may reveal trends, patterns, or outliers in the brain data. The shape of the histogram might indicate the data to be normally distributed or skewed. Observations from this step will provide the final conclusion.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Recall that \(\log 2=\int_{0}^{1} \frac{1}{x+1} d x\). Hence, by using a uniform(0,1) generator, approximate log \(2 .\) Obtain an error of estimation in terms of a large sample \(95 \%\) confidence interval. Write an \(\mathrm{R}\) function for the estimate and the error of estimation. Obtain your estimate for 10,000 simulations and compare it to the true value.

Consider the following permutation test for the two-sample problem with hypotheses \((4.9 .7) .\) Let \(\mathbf{x}^{\prime}=\left(x_{1}, x_{2}, \ldots, x_{n_{1}}\right)\) and \(\mathbf{y}^{\prime}=\left(y_{1}, y_{2}, \ldots, y_{n_{2}}\right)\) be the realizations of the two random samples. The test statistic is the difference in sample means \(\bar{y}-\bar{x} .\) The estimated \(p\) -value of the test is calculated as follows: 1\. Combine the data into one sample \(\mathbf{z}^{\prime}=\left(\mathbf{x}^{\prime}, \mathbf{y}^{\prime}\right)\). 2\. Obtain all possible samples of size \(n_{1}\) drawn without replacement from \(\mathrm{z}\). Each such sample automatically gives another sample of size \(n_{2}\), i.e., all elements of \(\mathbf{z}\) not in the sample of size \(n_{1}\). There are \(M=\left(\begin{array}{c}n_{1}+n_{2} \\ n_{1}\end{array}\right)\) such samples. 3\. For each such sample \(j\) : (a) Label the sample of size \(n_{1}\) by \(\mathbf{x}^{*}\) and label the sample of size \(n_{2}\) by \(\mathbf{y}^{*}\). (b) Calculate \(v_{j}^{*}=\bar{y}^{*}-\bar{x}^{*}\). 4\. The estimated \(p\) -value is \(\hat{p}^{*}=\\#\left\\{v_{j}^{*} \geq \bar{y}-\bar{x}\right\\} / M\). (a) Suppose we have two samples each of size 3 which result in the realizations: \(\mathbf{x}^{\prime}=(10,15,21)\) and \(\mathbf{y}^{\prime}=(20,25,30)\). Determine the test statistic and the permutation test described above along with the \(p\) -value. (b) If we ignore distinct samples, then we can approximate the permutation test by using the bootstrap algorithm with resampling performed at random and without replacement. Modify the bootstrap program boottesttwo.s to do this and obtain this approximate permutation test based on 3000 resamples for the data of Example \(4.9 .2 .\) (c) In general, what is the probability of having distinct samples in the approximate permutation test described in the last part? Assume that the original data are distinct values.

Let \(Y_{1}

Let \(Y_{1}

In the baseball data set discussed in the last exercise, it was found that out of the 59 baseball players, 15 were left-handed. Is this odd, since the proportion of left-handed males in America is about \(11 \% ?\) Answer by using \((4.2 .7)\) to construct a \(95 \%\) approximate confidence interval for \(p\), the proportion of left-handed professional baseball players.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free