Prof. Alex Suciu       MTH1187-Probability       Winter 2001

Exam 2: Solutions

Problem 1

male=0.55;  female=0.45;  lhmale=0.15;  rhfemale=0.9; 
[Graphics:Images/prob_gr_1.gif]
[Graphics:Images/prob_gr_2.gif]
FemaleIfRightHanded=female*rhfemale/(female*rhfemale+male*(1-lhmale))
[Graphics:Images/prob_gr_3.gif]

Problem 2

n=35;   p=1/50;
N[p*(1-p)^(n-1)]
[Graphics:Images/prob_gr_4.gif]

Problem 3

pdf[t_]:=2*t*Exp[-t^2];   cdf[t_]:=1-Exp[-t^2];
FilledPlot[{pdf[t],cdf[t]},{t,0,3}]

[Graphics:Images/prob_gr_5.gif]

a=1-cdf[1];  {a,N[a]}
[Graphics:Images/prob_gr_6.gif]
[Graphics:Images/prob_gr_7.gif]
[Graphics:Images/prob_gr_8.gif]

Problem 4

[Graphics:Images/prob_gr_9.gif]
[Graphics:Images/prob_gr_10.gif]
[Graphics:Images/prob_gr_11.gif]
[Graphics:Images/prob_gr_12.gif]
[Graphics:Images/prob_gr_13.gif]
[Graphics:Images/prob_gr_14.gif]
n=100;  dist=BinomialDistribution[n,p];
BarChart[Table[PDF[dist,k],{k,0,9}],BarLabels->Range[0,9]]

[Graphics:Images/prob_gr_15.gif]

PDF[dist,3]
[Graphics:Images/prob_gr_16.gif]
[Graphics:Images/prob_gr_17.gif]
[Graphics:Images/prob_gr_18.gif]
1-CDF[dist,1]   (** alternate way **)
[Graphics:Images/prob_gr_19.gif]

Problem 5

[Graphics:Images/prob_gr_20.gif]
FilledPlot[PDF[dist,x],{x,35,60}]

[Graphics:Images/prob_gr_21.gif]

a=CDF[dist,50]-CDF[dist,45]
[Graphics:Images/prob_gr_22.gif]
b=Quantile[dist,0.90]
[Graphics:Images/prob_gr_23.gif]

Problem 6

[Graphics:Images/prob_gr_24.gif]
FilledPlot[PDF[dist,x],{x,40,100}]

[Graphics:Images/prob_gr_25.gif]

below70=N[CDF[dist,70]]
[Graphics:Images/prob_gr_26.gif]
ABcutoff=Quantile[dist,0.86]
[Graphics:Images/prob_gr_27.gif]
BCcutoff=Quantile[dist,0.6]
[Graphics:Images/prob_gr_28.gif]
CDcutoff=Quantile[dist,0.3]
[Graphics:Images/prob_gr_29.gif]
DFcutoff=Quantile[dist,0.1]
[Graphics:Images/prob_gr_30.gif]


Converted by Mathematica      February 14, 2001