<< Chapter < Page | Chapter >> Page > |
for , .
Region is the square .
tuappr
Enter matrix [a b]of X-range endpoints [0 2]
Enter matrix [c d]of Y-range endpoints [0 2]
Enter number of X approximation points 200Enter number of Y approximation points 200
Enter expression for joint density (1/8)*(t+u)Use array operations on X, Y, PX, PY, t, u, and P
fx = PX/dx;FX = cumsum(PX);
plot(X,fx,X,FX)M1 = (t>1/2)&(u>1/2);
P1 = total(M1.*P)P1 = 0.7031 % Theoretical = 45/64 = 0.7031
M2 = (t<=1)&(u>1);
P2 = total(M2.*P)P2 = 0.2500 % Theoretical = 1/4
M3 = u<=t;
P3 = total(M3.*P)P3 = 0.5025 % Theoretical = 1/2
for
Region is strip bounded by
tuappr
Enter matrix [a b]of X-range endpoints [0 3]
Enter matrix [c d]of Y-range endpoints [0 1]
Enter number of X approximation points 400Enter number of Y approximation points 200
Enter expression for joint density 4*u.*exp(-2*t)Use array operations on X, Y, PX, PY, t, u, and P
M2 = (t>0.5)&(u>0.5)&(u<3/4);
p2 = total(M2.*P)p2 = 0.1139 % Theoretical = (5/16)exp(-1) = 0.1150
p3 = total((t<u).*P)
p3 = 0.7047 % Theoretical = 0.7030
for , .
Region bounded by
tuappr
Enter matrix [a b]of X-range endpoints [0 2]
Enter matrix [c d]of Y-range endpoints [0 3]
Enter number of X approximation points 200Enter number of Y approximation points 300
Enter expression for joint density (3/88)*(2*t+3*u.^2).*(u<=1+t)
Use array operations on X, Y, PX, PY, t, u, and Pfx = PX/dx;
FX = cumsum(PX);plot(X,fx,X,FX)
MF = (t<=1)&(u<=1);
F = total(MF.*P)F = 0.0681 % Theoretical = 3/44 = 0.0682
M1 = (t<=1)&(u>1);
P1 = total(M1.*P)P1 = 0.1172 % Theoretical = 41/352 = 0.1165
M2 = abs(t-u)<1;
P2 = total(M2.*P)P2 = 0.9297 % Theoretical = 329/352 = 0.9347
on the parallelogram with vertices
Region bounded by
tuappr
Enter matrix [a b]of X-range endpoints [-1 1]
Enter matrix [c d]of Y-range endpoints [0 1]
Enter number of X approximation points 400Enter number of Y approximation points 200
Enter expression for joint density 12*u.*t.^2.*((u<=t+1)&(u>=t))
Use array operations on X, Y, PX, PY, t, u, and Pp1 = total((t<=1/2).*P)
p1 = 0.4098 % Theoretical = 33/80 = 0.4125M2 = (t<1/2)&(u<=1/2);
p2 = total(M2.*P)p2 = 0.1856 % Theoretical = 3/16 = 0.1875
P3 = total((u>=1/2).*P)
P3 = 0.8144 % Theoretical = 13/16 = 0.8125
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?