R codes
> Step 1
>
> random_sample = sample(1:5,1)
> sample = rep(random_sample,147)
> length(sample)
[1] 147
>
>
> Step 2
>
> mean = mean(sample)
> variance = var(sample)
>
> Step3
>
> mean1 = variance1 = c()
> for (i in 1: 9999)
+ {
+ random_sample = sample(1:5,1)
+ sample = rep(random_sample,147)
+ mean1[i] = mean(sample)
+ variance1[i] = var(sample)
+ }
>
a)
From this we can say that all numbers are drawn in equal proportion.
b)
Expected value of mean of all 10000 values of mean is (1+2+3+4+5)/5 = 3
From sample Value of mean for 10000 values of mean is 2.9999
Expected value of variance of all 10000 value of mean is var of 1,2,3,4,5 which is 2.5
From sample Value of variance for 10000 values of mean is 2.013
c)
Shape of histogram has uniform distribution. All points between 1 and 5 are uniformly distributed.
Q4. (Sampling distributions and the central limit theorem) [10 points Sup- pose you programmed a computer...
4 The Sampling Distributions of Means and Proportions The Central Limit Theorem] Suggested Reading #6 (The Central Limit Theorem) 41 Ponder this and calculate: Consider all possible random samples of 5 in a class of 28 many different samples are there? Show your work (not as tedious as it appears) Note: Please continue to use the algebraic notation, as discussed in class, to obtain the answer e.9. Px<54) or P (x> 112)-1-P(x< 112)-1-Pizs ete. 4.2 A nurse supervisor has found...
1) the distribution and histogram of individual penny dates for the entire class (this will be our population), Math/BSAD 2170 Sampling Distributions and Central Limit Theorem 2) the distribution and histogram of the means from samples of 5 pennies (this is called a sampling distribution with n 5), 3) the distribution and histogram of the means from samples of 10 pennies (a sampling distribution with n 10), and 4) the distribution and histogram of the means of each sample of...
R commands
2) Illustrating the central limit theorem. X, X, X, a sequence of independent random variables with the same distribution as X. Define the sample mean X by X = A + A 2 be a random variable having the exponential distribution with A -2. Denote by -..- The central limit theorem applied to this particular case implices that the probability distribution of converges to the standard normal distribution for certain values of u and o (a) For what...
3. Applying the central limit theorem Suppose you are a television network executive interested in how a new pilot show, Statistics, will be received by the general U.S. television-viewing population. You hire several market research firms; each recruits a random sample of television viewers and asks them to watch the pilot of Statistics. Each firm then gathers 25 respondents and asks each of them, "On a scale of 1 to 10, where 1 means you'll never watch Statistics again, and...
2. Applying the central limit theorem (Chapter 9) Aa Aa pilot show, Stat1stics, will be received by Suppose you are a television network executive interested in how a new the general U.s. television-viewing population. You hire several market research firms; each recruits a random sample of television viewers and asks them to watch the pilot of Stat1stics. Each firm then gathers 25 respondents and asks each of them, "On a scale of 1 to 10, where 1 means you'll never...
Option 1 or 2.
Option 1: Use the NOAA data set provided, to examine the variable DX32. DX32 represents the number of days in that month whose maximum temperature was less than 32 degrees F. The mean of DX32 during this time period was 3.6. Using Excel, StatCrunch, etc, draw a histogram for DX32. Does this variable have an approximately normal (i.e. bell-shaped) distribution? A normal distribution should have most of its values clustered close to its mean. What kind...
2. (18 marks total) In this exercise, we will derive the famous "envelope theorem". Suppose you wish to (unconditionally) maximize some objective function f(x,y; a), where r and y are two variables you can choose, while a is some variable that is given exogenously. Note that, even though we don't get to choose a, it may still affect the optimal choice of r. An example of a variable like this would be the wage in the household problem we discussed...
(10 points) The 2010 General Social Survey asked 1225 US residents: "Do you think the use of marijuana should be made legal, or not? Of the respondents, 600 said it should be made legal. 1. The value 48.98% is a... A. population parameter B. sample statistic 2. Construct a 95% confidence interval for the proportion of US residents who think marijuana should be made legal, and interpret it in the context of the data. Round your results to four decimal...
As you are answering each question, please explain your answers in addition to picking what you believe to be the correct letter choice. 1. You conduct a hypothesis test with a sample of size n = 40 and you observe values for the sample mean and sample standard deviation that do not lead to the rejection of the null hypothesis. In fact, you determine the p-value is 0.0667. What would you expect to happen to the p-value if the sample...
Part 1: Hypothesis Testing (25 points) Step 1: Suppose you are asked to conduct a hypothesis test on the population mean. What type of hypothesis test would you use? What assumptions do you need to make about the process when you are conducting a hypothesis test on the population mean in order for your results to be valid? This needs to be at least one (1) paragraph in length. Note a paragraph contains at least three complete sentences. Watch your...