-
Home
- Applied probability
- Conditional expectation,
- Problems on conditional expectation
(See
Exercise 18 from " Problems On Random Vectors and Joint Distributions",
Exercise 28 from "Problems on Mathematical Expectation", and
Exercise 28 from "Problems on Variance, Covariance, Linear Regression").
for
,
.
The regression line of
Y on
X is
.
The regression line of
Y on
X is
.
tuappr: [0 2] [0 2]200 200 (3/23)*(t+2*u).*(u<=max(2-t,t))
EYx = sum(u.*P)./sum(P);M = X<=1;
eyx = (1/12)*(X-2).*(X-8).*M + (7/12)*X.*(1-M);plot(X,EYx,X,eyx) % Plots quite close
Got questions? Get instant answers now!
(See
Exercise 21 from " Problems On Random Vectors and Joint Distributions",
Exercise 31 from "Problems on Mathematical Expectation", and
Exercise 29 from "Problems on Variance, Covariance, Linear Regression").
, for
,
.
The regression line of
Y on
X is
.
The regression line of
Y on
X is
.
tuappr: [0 2] [0 2]200 200 (2/13)*(t+2*u).*(u<=min(2*t,3-t))
EYx = sum(u.*P)./sum(P);M = X<=1;
eyx = (11/9)*X.*M + (1/18)*(X.^2 - 15*X + 36).*(1-M);plot(X,EYx,X,eyx) % Plots quite close
Got questions? Get instant answers now!
(See
Exercise 22 from " Problems On Random Vectors and Joint Distributions",
Exercise 32 from "Problems on Mathematical Expectation", and
Exercise 30 from "Problems on Variance, Covariance, Linear Regression").
,
for
.
The regression line of
Y on
X is
.
The regression line of
Y on
X is
.
tuappr: [0 2] [0 1]200 100 (3/8)*(t.^2 + 2*u).*(t<=1) + ...
(9/14)*t.^2.*u.^2.*(t>1)
EYx = sum(u.*P)./sum(P);M = X<=1;
eyx = M.*(3*X.^2 + 4)./(6*(X.^2 + 1)) + (3/4)*(1 - M);plot(X,EYx,X,eyx) % Plots quite close
Got questions? Get instant answers now!
For the distributions in Exercises 12-16 below
- Determine analytically
- Use a discrete approximation to calculate the same functions.
for
,
(see
Exercise 37 from "Problems on Mathematical Expectation", and
[link] ).
, Use of linearity,
(CE8) , and
(CE10) gives
% Continuation of
[link] G = 4*t.*(t<=1) + (t + u).*(t>1);
EZx = sum(G.*P)./sum(P);M = X<=1;
ezx = 4*X.*M + (X + (X+1).*(X+3).*(3*X+1)./(4*(1 + 4*X + X.^2))).*(1-M);plot(X,EZx,X,ezx) % Plots nearly indistinguishable
Got questions? Get instant answers now!
for
,
(see
Exercise 38 from "Problems on Mathematical Expectaton",
[link] ).
% Continuation of
[link] Q = u>t;
G = (1/2)*t.*Q + u.^2.*(1-Q);EZx = sum(G.*P)./sum(P);
M = X<= 1;
ezx = (1/2)*X.*(1-X.^2+X.^3).*M + (1/2)*(2-X).^2.*(1-M);plot(X,EZx,X,ezx) % Plots nearly indistinguishable
Got questions? Get instant answers now!
Source:
OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.