Question

(a) Using the rbinom or sample commands in R programming, simulate 50 independent aian (b) Repeat for 100 tosses, and then 500 tosses. For each of these calculate the proportion of heads and the standard deviation. (c) What do you observe? Is it because of the Law of Large Numbers or because of the Central Limit Theorem? Explain. (d) Now draw 500 samples of 500 tosses each. What is the mean proportion of heads? (e) Plot the sampling distribution for the proportion of heads. Is it standard normal? Explain. (f) What is the probability that the proportion of heads is greater than 52%? What is the probability that it is less than 48%?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

run the followung comands on R software,

n=50;

x=rbinom(n,1,0.5) # note here i take 1 as a no. of trial.

l=length(x(x==1))

p=l/n # you will fond the proportion which is just near to 25 but not exact.

# for standard deviation. Run the following command

sd=sqrt(n*p*(1-p))

B--

# repeat these steps for n=100, n=50p you will find as n increase proportion approaches to .5

C-- it is due to law of large numbers as n increase x bar tends to polpn mean i.e .5

D-- run the following command on R

n=500;

m=500;

i=0

s[i]=0

for(i in 1:m){

s[i]=mean(rbinom(n,1,.5))

p=mean(s[i])

}

print(p)

E-- for sampling distribution plot

hist(x)

Any doubt comment

Add a comment
Know the answer?
Add Answer to:
(a) Using the rbinom or sample commands in R programming, simulate 50 independent aian (b) Repeat...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using R, Exercise 4 (CLT Simulation) For this exercise we will simulate from the exponential distribution....

    Using R, Exercise 4 (CLT Simulation) For this exercise we will simulate from the exponential distribution. If a random variable X has an exponential distribution with rate parameter A, the pdf of X can be written for z 2 0 Also recall, (a) This exercise relies heavily on generating random observations. To make this reproducible we will set a seed for the randomization. Alter the following code to make birthday store your birthday in the format yyyymmdd. For example, William...

  • In the notes there is a Central Limit Theorem example in which a sampling distribution of means i...

    R Programming codes for the above questions? In the notes there is a Central Limit Theorem example in which a sampling distribution of means is created using a for loop, and then this distribution is plotted. This distribution should look approximately like a normal distribution. However, not all statistics have normal sampling distributions. For this problem, you'll create a sampling distribution of standard deviations rather than means. 3. Using a for loop, draw 10,000 samples of size n-30 from a...

  • 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 va...

    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...

  • Note: This is a graduate-level question. Please provide a full answer to this question or do not ...

    Note: This is a graduate-level question. Please provide a full answer to this question or do not provide an answer at all. If you do not know the answer please leave this question for other Statistics and Probability Experts. Kindly do not copy and paste the same answer posted for the same question because it is incorrect. Numerically verify that the Central Limit Theorem is valid even when sampling from non-normal distributions. Suppose that a component has a probability of...

  • A. Suppose you take a sample of size n from a population and calculate a statistic...

    A. Suppose you take a sample of size n from a population and calculate a statistic from that sample. The statistic could be a sample proportion p, a sample mean x, or another statistic. Then suppose we repeat this process over and over again until we find all possible samples of size n from the population (this is a theoretical idea) and we calculate the same statistic from 1. each sample. The collection of all of the statistics calculated is...

  • Find the sampling error: u = -5, B = -2.5, n= 100 -7.5 -2.5 0.25 2.5...

    Find the sampling error: u = -5, B = -2.5, n= 100 -7.5 -2.5 0.25 2.5 Find M, and o, the mean and standard deviation of the sampling distribution of x: H= 25, 0=5, n= 10. M =25, o,=0.5 M =25, o,=1.58 M=2.5, o,=0.5 My=7.91, o,=1.58 B) A) Assume that the random variable X is normally distributed with mean = 52 and standard deviation = 10. Let n = 25. Find P(x>50). -0 0.16 0.84 D) A) B) C) D)...

  • A statistics group divides families into two groups, couple families and lone-parent families. Da...

    A statistics group divides families into two groups, couple families and lone-parent families. Data from a recent census for a region are available below. A surveyor calls 1000 families in the region at random in order to market products of different types to the two types of family. For each of the following questions, either answer the question or state why it is not possible to answer it with the information provided and the sampling distribution. Complete parts through (f)...

  • Let x represent the dollar amount spent on supermarket impulse buying in a 10-minute (unplanned) shopping...

    Let x represent the dollar amount spent on supermarket impulse buying in a 10-minute (unplanned) shopping interval. Based on a certain article, the mean of the x distribution is about $46 and the estimated standard deviation is about $8. (a) Consider a random sample of n = 40 customers, each of whom has 10 minutes of unplanned shopping time in a supermarket. From the central limit theorem, what can you say about the probability distribution of x-bar, the average amount...

  • Histograms Samples of size 2 200 Samples of size 5 28 Sample Mean Waist Size 48...

    Histograms Samples of size 2 200 Samples of size 5 28 Sample Mean Waist Size 48 30 Sample Mean Waist Size 42 Samples of sizeSamples of size Q 20 200 200 32 Sample Mean Waist Size 32 Sample Mean Waist Size This Question: 1 pt 7 of 8 (0 complete) This Quiz: 8 pts pos A study measured the waist size of 989 men, finding a mean of 36.22 inches and a standard deviation of 4.03 inches. A histogram of...

  • Which choice best describes a simple random sample? O a selection of members of a population...

    Which choice best describes a simple random sample? O a selection of members of a population chosen because of their convenient accessibility and proximity O when a population is first sorted into groups that share a similar characteristic and individuals are randomly chosen from each of the groups O a selection of members from a population in such a way that every possible sample of the same size has an equal chance of being chosen O when a population is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT