Plot[{ExpectXgivenYis [y], ExpectX}, {y, Ylow, Yhigh}, PlotStyle -> {{Thickness [0.01], LightRed}, {Thickness [0.02], Gr
-
- Site Admin
- Posts: 899559
- Joined: Mon Aug 02, 2021 8:13 am
Plot[{ExpectXgivenYis [y], ExpectX}, {y, Ylow, Yhigh}, PlotStyle -> {{Thickness [0.01], LightRed}, {Thickness [0.02], Gr
statement: No matter what joint probability density function you go with, you are guaranteed that either some of the values of the expected value of X given Y = y will plot out above the expected value of X and others plot out below the expected value of X or all of the values of the expected value of X given Y = y plot out on the expected value of X.
Plot[{ExpectXgivenYis [y], ExpectX}, {y, Ylow, Yhigh}, PlotStyle -> {{Thickness [0.01], LightRed}, {Thickness [0.02], Green}}, Axes Origin -> {Ylow, 0.41}, AspectRatio -> 1/GoldenRatio, AxesLabel -> { "y", "expectXgivenYisy"}] Out[27]= expectXgiven Yisy 0.75 0.70 0.65 0.60 0.55 0.501 0.45 у 0.2 0.4 0.6 0.8 1.0 The bar cuts the vertical axis at the expected value of X. The plotted curve gives you values of the expected value of X given Y = y. Notice that part of the curve plots out above the expected value of X and another part of the curve plots out below the expected value of X. • Explain this bold