STAT 1301 Statistical Packages- Assignment Problem

Assignment Help Applied Statistics
Reference no: EM132398826

STAT 1301/2300: Statistical Packages, University of Pittsburghs, USA

Problem 1. Probability distributions and graphical displays

Part 1.a. Generate 1000 observations from a normal distribution with mean 100 and standard deviation 15. Call the random number vector norm_vec.

Part 1.b. Create a histogram to show the sample data. Overlay a red theoretical normal density curve on the histogram.

Part 1.c. Calculate the following

(i) The 90th percentile of an F distribution with 5 and 10 degrees of freedom.

(ii) Calculate the probability P(t19 > 3).

(iii) Calculate the probability P(−1.98 < Z < 2.98) where Z ∼ N(0, 1).

(iv) Find the 99th percentile of χ214

Problem 2. Sampling distributions

Part 2.a. Generate 10000 observations from χ2 5 distribution. Save the random numbers in a vector called chisq_vec. Create a histogram for it. Observe the shape, especially the skewness of it.

Part 2.b. Sample 50 observations from chisq_vec without replacement. Call it chisq_samp. Calculate the mean of the sample data. Compare it with the mean of chisq_vec.

Part 2.c. Put chisq_vec in a matrix with 50 rows and 200 columns. Call it chisq_mat.

Part 2.d. Consider each column of chisq_mat as a random sample of size 50 from χ25 distribution.

Now we have 200 samples (columns)! Calculate the mean of each column and save the means in a vector called mean_vec. You may use the apply() function. Type ?apply in R console for details about apply.

Part 2.e. mean_vec actually contains 100 sample means! Now we are able to verify the properties of the sampling distribution of sample mean.

(i) Calculate the mean and standard devation of mean_vec.

Compare them with their theoretical values. Note that for an χ2k distribution, the mean is k and the variance is 2k. And, based on the property of sampling distribution of sample mean, we have the following:

µx¯ =µx

σ2 = (σ2x/n)

where n is the sample size.

(ii) Create a histogram for mean_vec. What shape do you observe? Is it roughly symmetric? Compare it with the one of chisq_vec.

(iii) Overlay an empirical normal curve on the histogram of mean_vec. In order to do so, you need to create a sequence of consecutive numbers using seq. Check the range of mean_vec for the from and to values of seq. Use dnorm() function to find the density values. The mean and std of dnorm should be the same with the mean and std of mean_vec.

Problem 3. Plot grouped data

The mtcars data set is a built-in data set in base R. It comprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973-74 models). Type ?mtcars in R console for more details about it.

We want to examine the relationship between type of transmission (am) and fuel efficiency (mpg). Use a side-by-side boxplot the compare mpg between the two groups.

Requirements:

1. It should be horizontal.

2. The title should be “Fuel Efficiency vs. Transmission”

3. The x label should be “miles per gallon”

4. Give meaningful names for the transmission levels and show them on the plot. Instead of changing the labels directly, you may consider transforming am to a factor vector and giving character labels to the levels.

Reference no: EM132398826

Questions Cloud

Communication to improve awareness of social perceptions : Evaluate and revise ethical issues in visual media communication to improve awareness of social perceptions.
Create a website for your business : Define for the web development company what you want them to do, so that they can provide a good estimate for what you want delivered on your website
Obtain the joint sampling PDF : STATISTICS 421 Assignment - Obtain the joint sampling PDF. Construct a histogram of the R s2-values using the R function hist()
Develop proposed policy statement regarding genetic testing : Develop a proposed policy statement regarding genetic testing. This proposed policy statement must present an objective summary of the situation
STAT 1301 Statistical Packages- Assignment Problem : STAT 1301 Statistical Packages Assignment Help and Solutions, University of Pittsburghs, USA- Generate 1000 observations from a normal distribution with mean 10
Database management systems : Prepare a small research project on recent topics related to database management systems.
Difference between cyber warfare and cyber espionage : What is the difference between cyber warfare and cyber espionage and what can have a larger, long-term impact?
Men vs women and muscle mass : Men vs Women and muscle mass. References are expected to create a substantial main post.
Computing the unintended effects : Jack has been working as a project engineer for a mechanical energy technology firm for a few years now, and has recently been promoted to review projects

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd