Question 9: Use R to answer the following. Let X have a binomial distribution with parameters n=25 and p=0.6. Calculate each of the following probabilities using both the binomial distribution and the normal approximation (with the continuity correction). Make sure to check that this an an appropriate use of the normal approximation. (a) P(15 ≤X ≤ 20) (b) P(X ≤ 15) (c) P(20 < X)
Question 9: Use R to answer the following. Let X have a binomial distribution with parameters n=25 and p=0.6. Calculate each of the following probabilities using both the binomial distribution and the normal approximation (with the continuity correction). Make sure to check that this an an appropriate use of the normal approximation. (a) P(15 ≤X ≤ 20) (b) P(X ≤ 15) (c) P(20 < X)
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
Use R software to complete this Question.
Expert Solution
Step 1
Solution -given that. n=25 p=0.60 then by using r software to solve the following problem
a)
> n<-25
> p<-0.6
> n*p
[1] 15
> n*(1-p)
[1] 10
> mean<-n*p
> SD<-sqrt(n*p*(1-p))
> # To find P(15<=X<=20) by using below code
> pnorm(20.5,mean,SD)-pnorm(14.5,mean,SD) #(a)
[1] 0.5684994
Step by step
Solved in 3 steps
Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman