E(XY)=SUM_x SUM_y (xyp(x,y)) = -20(17)(.02)+(-20)(20)(.03)... and so on n so forth... is this correct?
Certainly the formula E(XY) = sum_{x,y} p(x,y) x*y is correct (basically, it is the definition of E(XY)); however, whether or not your numbers are correct is impossible to say, because your table is formatted so badly it is unreadable. You should use tabs, etc., and choose a fixed-width font (such as courier new) for the table. You can do this by selecting the table using the mouse, then go to the "Fonts" menu on the top panel Alternatively, you can use the "tabular" environment in LaTeX/TeX and format your table that way. On-line tutorials will show you how to do it. See, eg., http://www1.maths.leeds.ac.uk/latex/TableHelp1.pdf or http://www.andy-roberts.net/writing/latex/tables .
Last edited:
#3
joemama69
390
0
Whoops, it looks good in the editor but not once posted, didn't realize that, sorry.
That table syntax looks a little confusing... I attached a PDF of all my work. I'm not to confident with my application of the equations. The dependence kind of threw me a bit.
Are you able to use my pdf file w/ my work on it or do I need to retype it in here?
You can actually make a nice table with TeX. Here's one I did an another thread:
$$
\begin{array}{|c|c|c|c|c|c|}
\hline
Q_1Q_2Q_3& J_1=\bar Q_2& K_1= 1& J_2=\bar Q_3& K_2=Q_3& J_3=Q_1& K_3=Q_1\\
\hline
000&1&1&1&0&0&0 \\
\hline
110&&&&&& \\
\hline
&&&&&& \\
\hline
&&&&&& \\
\hline
\end{array}$$Feel free to copy/paste and change it.
= 1/0.2 (17(0.02)+20(0.03)+23(0.07)+35(0.02)+48(0.06))=30.65V(Y│X=-20)=E(Y-E(Y│X=-20))^2=(28.73-30.65)^2=3.6864P(X<3,Y≤23)=0.02+0.03+0.07+0.05+0.05+0.03+0.02=0.27Does it appear that I have used the formulas correctly?
Does it appear that I have used the formulas correctly?
The calculation inputs look OK, but I have not done the computations to check the answers.
BTW: a much easier way to calculate variance is ##\text{Var}(X) = E(X^2) - (EX)^2,## so if you compute ##E(X^2)## at the same time as ##EX## you will be almost done. As a useful exercise, you should actually verify this; viz., that
\sum_{x_i} p(x_i) (x_i - EX)^2 = \sum_{x_i} p(x_i) x_i^2 - (EX)^2,
where
EX = \sum_{x_i} p(x_i) x_i.
#12
joemama69
390
0
Ya we had to verify that in a HW assignment a week or two ago.
I used excel to do all the tedious computations, I was more worried about my set up than the arithmetic.
So for Variance with conditional probabilities I have..
V(X|Y)=E(X-E(X|Y))^2 = (E(X)-E(X|Y))^2 ... is this correct?
Ya we had to verify that in a HW assignment a week or two ago.
I used excel to do all the tedious computations, I was more worried about my set up than the arithmetic.
So for Variance with conditional probabilities I have..
V(X|Y)=E(X-E(X|Y))^2 = (E(X)-E(X|Y))^2 ... is this correct?
No, it is not, and I cannot figure out why you would think it! You get V(X|Y=y) by using the formulas for Var(X), but with p(x) replaced by p_y(x) = Pr(x|Y=y). Note that p_y(x) is a genuine probability distribution over x; it is >= 0, and its sum over all x is 1.
#14
joemama69
390
0
Ya my professor used that notation but I am not suing it correctly... Guess back to the way I know.V(X│Y=23)=∑(x-E(X|Y=23))^2 p(x|y=23)=(-20+1.5)^2 (0.07/0.18)+(1+1.5)^2 (0.02/0.18)+(3+1.5)^2 (0.03/0.18)+(17+1.5)^2 (0.06/0.18)=1
Am I applying p(x|y) correctly. If I am then I must of done it wrong when I calculated E(X|Y=23)