<< Chapter < Page | Chapter >> Page > |
For the joint densities in Exercises 10-22 below
for , .
Region is triangle with vertices (0,0), (1,0), (0,2).
tuappr
Enter matrix [a b]of X-range endpoints [0 1]
Enter matrix [c d]of Y-range endpoints [0 2]
Enter number of X approximation points 200Enter number of Y approximation points 400
Enter expression for joint density (t<=1)&(u<=2*(1-t))
Use array operations on X, Y, PX, PY, t, u, and Pfx = PX/dx;
FX = cumsum(PX);plot(X,fx,X,FX) % Figure not reproduced
M1 = (t>0.5)&(u>1);
P1 = total(M1.*P)P1 = 0 % Theoretical = 0
M2 = (t<=0.5)&(u>0.5);
P2 = total(M2.*P)P2 = 0.5000 % Theoretical = 1/2
P3 = total((u<=t).*P)
P3 = 0.3350 % Theoretical = 1/3
on the square with vertices at .
The region is bounded by the lines , , , and
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 0.5*(u<=min(1+t,3-t))&...
(u>=max(1-t,t-1))
Use array operations on X, Y, PX, PY, t, u, and Pfx = PX/dx;
FX = cumsum(PX);plot(X,fx,X,FX) % Plot not shown
M1 = (t>1)&(u>1);
PM1 = total(M1.*P)PM1 = 0.2501 % Theoretical = 1/4
M2 = (t<=1/2)&(u>1);
PM2 = total(M2.*P)PM2 = 0.0631 % Theoretical = 1/16 = 0.0625
M3 = u<=t;
PM3 = total(M3.*P)PM3 = 0.5023 % Theoretical = 1/2
for , .
Region is the unit square.
tuappr
Enter matrix [a b]of X-range endpoints [0 1]
Enter matrix [c d]of Y-range endpoints [0 1]
Enter number of X approximation points 200Enter number of Y approximation points 200
Enter expression for joint density 4*t.*(1 - u)Use array operations on X, Y, PX, PY, t, u, and P
fx = PX/dx;FX = cumsum(PX);
plot(X,fx,X,FX) % Plot not shownM1 = (1/2<t)&(t<3/4)&(u>1/2);
P1 = total(M1.*P)P1 = 0.0781 % Theoretical = 5/64 = 0.0781
M2 = (t<=1/2)&(u>1/2);
P2 = total(M2.*P)P2 = 0.0625 % Theoretical = 1/16 = 0.0625
M3 = (u<=t);
P3 = total(M3.*P)P3 = 0.8350 % Theoretical = 5/6 = 0.8333
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?