If you want a binary as a boolean or logical, cast to logical: You can use isequal () to compare the new matrix against any prior matrix. Or else (better because its possibly more convenient), make a 3D array of 4-by-4-by-20. For that, we would need to check the independence condition for all $x_i \in R_X$ and all $y_j \in R_Y$. Answers (3) Repeat for all of the other x. Thus, even if in the above calculation we had found $P(Y=1 | X=0)= P(Y=1)$, we would not yet have been able to conclude that $X$ and $Y$ are independent. \nonumber P(X=0, Y \leq 1) =P_.Ĭaution: If we want to show that $X$ and $Y$ are independent, we need to check that $P(X=x_i,Y=y_j)=P(X=x_i)P(Y=y_j)$, for all $x_i \in R_X$ and all $y_j \in R_Y$.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |