Give 4 decimal places in your answers for probability. Use the MATLAB functions
ID: 3071463 • Letter: G
Question
Give 4 decimal places in your answers for probability. Use the MATLAB functions binopdf(x,n,p ) and binocdf( x,n,p) to answer the following questions. Copy the command you used in MATLAB as well as the output from MATLAB in the space below each question. n = 13; p = 1.8% = 0.018
1. What is the probability that exactly one of the 13 couples has a child that has the disease?
0.1882
2. What is the probability that at most 1 of the 13 couples has a child that has the disease?
0.9778
3. What is the probability that at least 1 of the 13 couples has a child that has the disease?
0.0222
4. What is the probability that more than 10 of the 13 couples have a child that has the disease?
1
5. What is the probability that between 3 and 6 (inclusive) of the 13 couples have a child that has the disease?
6. What is the generalized MATLAB line of code you could use to find P(L <= X <= U) if X is a Binomial random variable and L represents of the Lower Bound and U represents the Upper Bound? Use L and U in your code to represent the Lower bound and Upper bound, respectively. Check to make sure it works with the previous problem!!!
7. What is the mean or expected number of couples out of the 13 couples selected that have children that develop the disease? Do not round your answer.
8. What is the standard deviation? Do not round your answer.
I already have problems 1 through 4 done, which i beleive are correct but im having trouble using MATLAB to find number 5.
Explanation / Answer
matlab code for first four problems
Ans.1 Prob[X=1]
code:-
a=binopdf(1,13,0.018)
Ans.2 Prob[X <or=1]
code:-
b=binocdf(1,13,0.018)
Ans.3 Prob[X >or=1]=1-Prob[X <or=1]
code:-
c=1-binocdf(1,13,0.018)
Ans.4 Prob[X <or= 10]
code:-
d=binocdf(10,13,0.018)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.