Question

Use the rbinom() function to create a vector of 1000 random observations from the binomial distribution...

  1. Use the rbinom() function to create a vector of 1000 random observations from the binomial distribution with n=100 and probability of success is equal to 0.4.
    1. Calculate the mean and standard deviation statistics for this vector of random draws using the mean() and sd() commands.
    2. How do these numbers compare the mean and standard deviation of the binomial distribution when  and ? If they are different, why?
    3. Make a histogram of this vector using the hist() command.
0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Use the rbinom() function to create a vector of 1000 random observations from the binomial distribution...
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
  • MATLAB: 7) Generate 1000 random numbers with a normal distribution using randn. Plot a the time...

    MATLAB: 7) Generate 1000 random numbers with a normal distribution using randn. Plot a the time series and a histogram (hist) using a 1x2 subplot. 8) Generate 1000 random numbers with a uniform distribution using rand. Plot a the time series and a histogram using a 1x2 subplot.

  • The Binomial and Poisson Distributions Both the Binomial and Poisson Distributions deal with discrete data where...

    The Binomial and Poisson Distributions Both the Binomial and Poisson Distributions deal with discrete data where we are counting the number of occurrences of an event. However, they are very different distributions.  This problem will help you be able to recognize a random variable that belongs to the Binomial Distribution, the Poisson Distribution or neither. Characteristics of a Binomial Distribution Characteristics of a Poisson Distribution The Binomial random variable is the count of the number of success in n trials:   number of...

  • 5000) of uniformly distributed random numbers between 1 Generate a large number (1000 or and 2...

    5000) of uniformly distributed random numbers between 1 Generate a large number (1000 or and 2 (HINT: use the rand command for generating a uniformly distributed random variable between 0 and 1 and then move it!). b Plot the pdf of the distribution. Use the hist command to obtain the number of samples in a random numbers, define binx as a vector with bins on the x-axis (binx = 1:0.01:2). P histx,binx) will provide you the weights pdf. Compare with...

  • Using R programming language, supply the code for: Generate a random sample of size 10, 000...

    Using R programming language, supply the code for: Generate a random sample of size 10, 000 from gamma distribution with scale parameter equal to 1 and shape parameter equal to 2, and form it into a 1000 x 10 matrix. Use the apply() function on this matrix to compute the means of the 1000 rows. Note that the resulting vector comprises the mean of 1000 random samples of size 10 from the above distribution. Examine the distribution of the sample...

  • 12. The random variable Y obeys the binomial distribution with number of trials n and success...

    12. The random variable Y obeys the binomial distribution with number of trials n and success probability p. (a) Derive the MGF for Y. (b) Use the MGF to find the mean and standard deviation of Y.

  • Calculate (by hand) the mean and standard deviation for the binomial distribution with the probability of...

    Calculate (by hand) the mean and standard deviation for the binomial distribution with the probability of a success being 0.10 and n = 10. Write a comparison of these statistics to those from question 5 in a short paragraph of several complete sentences. Use these formulas to do the hand calculations: Mean = np, Standard Deviation = Mean #5 is .5 and standard deviation is 1.581

  • Given a random sample of 500 observations from a population having binomial distribution. Is there a...

    Given a random sample of 500 observations from a population having binomial distribution. Is there a significant evidence to conclude that population mean is greater than 300 if the sample mean is 302. a) Null hypothesis is b) Alternative is c) Test statistic equal to d) Critical Value of the test at a=10% is e) Does it appear at a=10% that population mean is greater than 300 ?

  • Please answer both 1 & 2. 1. Use Excel to generate 100 observations from the standard...

    Please answer both 1 & 2. 1. Use Excel to generate 100 observations from the standard Normal distribution. a.Make a histogram of these observations. How does the shape of this histogram compare with a Normal density curve? 2. Use Excel to generate 100 Normally distributed random values (that is 100 outcomes of a Normally distributed random variable with mean 10 and standard deviation of 5). a. Make a histogram for your data. How does the shape of this histogram compare...

  • (a) Using the rbinom or sample commands in R programming, simulate 50 independent aian (b) Repeat...

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

  • Suppose a random variable, x, arises from a binomial experiment. Suppose n = 6, and p...

    Suppose a random variable, x, arises from a binomial experiment. Suppose n = 6, and p = 0.13. (a) Write the probability distribution. (b) Draw a histogram. (c) Describe the shape of the histogram. (d) Find the mean. (e) Find the variance. (f) Find the standard deviation.

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