Question

In: Statistics and Probability

Write it in P program. This is only one question with multiple parts, so please answer...

Write it in P program. This is only one question with multiple parts, so please answer all the parts of the question, it is not much. Please also include a screenshot of your R program.

  1. Generator 500 random numbers from the Binomial distribution with size=100, p=0.5 (define it X).
  2. Standardize the vector X using the following equation (define it Z):

Z=(X-E(X))/sd(X)

Where E(X)= mean of B(n,p), which is np, sd(X) = standard deviation of B(n,p), which is sqrt(np(1-p)).

  1. Make a histogram of Z and discuss the shape of the histogram.
  2. Convince your answer from 3 using the method we have learned in the class.
  3. Do the same thing for (n, p) = (100, 0.1), (100, 0.3), (100, 0.7), (100, 0.9), and draw 4 histograms of Z, and discuss about the shape of the histogram.

Solutions

Expert Solution

To generate 500 random numbers from Binomial distribution n=100, we can use rbinom(500,100,0.5) p=0.5 in R.

Single histogram is for B(100,0.5) which seems to be symmetric about 0.

Histogram B(100,0.1) shows that distribution is right skewed.

Histogram B(100,0.3) shows almost symmetric about with a little positive skewness.

Histogram B(100,0.7) almost symmetric but little left skewed.

Histogram B(100,.9) is left skewed.


Related Solutions

Please answer the multiple choice question. Only choose one answer choice. Then write an IRAC answer...
Please answer the multiple choice question. Only choose one answer choice. Then write an IRAC answer about the issue that is being tested. Peter built a small pond in front of his house for his prize koi fish. The pond was visible from the sidewalk. To keep people and animals away, Peter constructed an eight-foot high chain link fence between the sidewalk and the pond. One day, Stewie, a six-year­ old who lived next door, struggled over the fence to...
Please answer both parts of this question. Please answer both parts of this question. Question: a)...
Please answer both parts of this question. Please answer both parts of this question. Question: a) The channel in question 2 now has a 0.3m high smooth extended shelf built across its base to cover a submerged pipeline but still carries 50m3/s. Plot the specific energy diagram for 0 < y < 4m and calculate the critical depth and minimum specific energy. What are now the two possible flow depths for a specific energy of 4m upstream of the obstructions?...
Please answer all the parts of this question Please answer all the parts of this question...
Please answer all the parts of this question Please answer all the parts of this question Question: a) Where is the flow accelerating in the control volume? b) Will the pressure be greater or less than hydrostatic in a region of accelerating flow? c) Is the hydrostatic estimate of force on the gate; larger, smaller, or the same, as that obtained from the Momentum Equation? Explain. d) Where does the change in flow momentum go in this control volume? Explain.
PLEASE READ: This is one question with 3 parts to it, please answer the full question....
PLEASE READ: This is one question with 3 parts to it, please answer the full question. Mark M. Upp has just been fired as the university bookstore manager for setting prices too low (only 20 percent above suggest retail). He is considering opening a competing bookstore near the campus, and he has begun an analysis of the situation. There are two possible sites under consideration. One is relatively small, while the other is large. If he opens at Site 1...
Question 4. Please answer all three parts to this question. a. Write down the quantity equation,...
Question 4. Please answer all three parts to this question. a. Write down the quantity equation, in both the level and the rates of change form. What do each of the terms represent? b. If the Bank of Canada wishes to maintain inflation at 2% per year, how can the bank use the quantity equation to achieve this goal? What assumption is made about the velocity of money? c. Does the Bank of Canada target the rate of growth of...
(PLEASE ANSWER ALL PARTS OF THE QUESTION AND PROVIDE VARIOUS EXAMPLES SO I CAN UNDERSTAND, THANK...
(PLEASE ANSWER ALL PARTS OF THE QUESTION AND PROVIDE VARIOUS EXAMPLES SO I CAN UNDERSTAND, THANK YOU SO MUCH FOR YOUR HELP!!!) A critical difference between the Absorption Approach and the Elasticities Approach to the effect of a devaluation on the Current Account is the addition of income effects. How will income effects alter the effect of a devaluation, and does this tend to make it more or less difficult for a devaluation to strengthen the current account under the...
(This is a multiple choice question, so the answer is either A, B, C, or D.)...
(This is a multiple choice question, so the answer is either A, B, C, or D.) Question: For probability density function of a random variable X, P(X < a) can also be described as: A.) The area under the curve to the right of a. B.) F(a), where F(X) is the cumulative distribution function. C.) The area under the curve between 0 and a. D.) 1- F(a) where F(X) is the cumulative distribution function.
Please answer all 3 parts so I can get full credit for this question A five-year...
Please answer all 3 parts so I can get full credit for this question A five-year annuity of ten $5,900 semiannual payments will begin 9 years from now, with the first payment coming 9.5 years from now. The discount rate is 8 percent compunded monthly. a. What is the value of this annuity five years from now? b. What is the value three years from now? c. What is the current value of the annuity? (Do not round intermediate calculations...
HI please answer all parts of my question. Thank you so much! I will rate you!...
HI please answer all parts of my question. Thank you so much! I will rate you! Why do we call cardiac muscle to be a syncytium of many individual muscle cells? What is the name of membranes that connect longitudinally adjacent muscle cells? As you know the mechanism of organophosphates involves irreversible inhibitors of AChE. Organophosphates have been used in several murders (VX used to kill the half-brother of North Korean dictator Kim Jong Un; Sarin gas used to kill...
QUESTION 1 (20) In each of the following cases only one answer is correct. Write the...
QUESTION 1 (20) In each of the following cases only one answer is correct. Write the letter that represents the correct answer, next to each number. E.g. 1.11 a 1.5 If the cross elasticity of demand between tablets and smart phones is 2,0, this implies that these goods are: a) Luxuries. b) Complements. c) Necessities. d) Substitutes. 1.6 Nonjabulo thinks that McDonald’s hamburgers are the best – much better than Steers’ – while Anne cannot tell the difference: a) Anne’s...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT