1. Suppose that x, y and z are int variables, and x=5, y=7 and z =4, Determine whether the following expressions evaluated to true or false
a). (x!=z%2)||(y! = z++)
b). (--x>= z) || (x+y!=z)
c). (x<=y-2) && (y%3>=z)&&(z-2!=20)
a) (x!=z%2)||(y! = z++) => (5!=4%2)||(7! = 4++) => (5!=0)||(7!= 4) => true||true => true Answer: true b) (--x>= z) || (x+y!=z) => (--5>= 4) || (5+7!=4) => (4>= 4) || (12!=4) => true||true => true Answer: true c) (x<=y-2) && (y%3>=z)&&(z-2!=20) => (5<=7-2) && (7%3>=4)&&(4-2!=20) => (5<=5) && (1>=4)&&(2!=20) => true && false&&true => false&&true => false Answer: false
1. Suppose that x, y and z are int variables, and x=5, y=7 and z =4,...
Suppose that X, Y, and Z are jointly distributed random variables, that is, they are defined on the same sample space. Suppose that we also have the following. E(x)-4 E(Y) 2 E(Z)-7 Var (x) -28 Var(Y)-3 Var (Z) -44 Compute the values of the expressions below. E(Y 1) 5Z + 4x Var (4Y-3)
Suppose that X, Y, and Z are jointly distributed random variables, that is, they are defined on the same sample space. Suppose that we also have the following. E(X)-8 E(Y)-7 E(Z)-2 Var (x) 24 Var (Y) 2 Var (z) 29 Compute the values of the expressions below. E (5x- 4) Var (-2 5z) - [D
Suppose that X, Y, and Z are jointly distributed random variables, that is, they are defined on the same sample space. Suppose that we also have the following. E(x)-5 ECY)4 E(Z)--8 Var (x)-39 Var (Y)-11 Var (z) 37 Compute the values of the expressions below. E(2 -2z) 35 30 Var (sz)-5-D
Suppose that X, Y, and Z are jointly distributed random variables, that is, they are defined on the same sample space. Suppose that we also have the following. E(x)-3 E(Y)9 E(Z)-2 Var(X) = 36 par(r)=19 par(Z)-10 Compute the values of the expressions below E (32 +3) 5Y+ 2x Var (5-2)-
Suppose three random variables X, Y, Z have a joint distribution PX,Y,Z(x,y,z)=PX(x)PZ∣X(z∣x)PY∣Z(y∣z). Then X and Y are independent given Z? True or False Suppose random variables X and Y are independent given Z , then the joint distribution must be of the form PX,Y,Z(x,y,z)=h(x,z)g(y,z), where h,g are some functions? True or false
QUESTION 62 Consider the following code: void Pancake(int x, int& y, int z); void Waffle(int& x, int& y); int Doughnut(int y, int z); int main( ) { int a = 1; int b = 2; int c = 3; int d = 4; Pancake(a, b, c); Waffle(b, c); Pancake(d, c, b); d = Doughnut(b, a); return 0; } void Pancake(int x, int& y, int z) { y += 3; ...
Suppose that X, Y, and Zare jointly distributed random variables, that is, they are defined on the same sample space. Suppose that we also have the following. E(x)-4 E(Y) 2 E(Z)-7 Var (x) -28 Var(Y)-3 Var (Z) -44 Compute the values of the expressions below. E(Y -1) 5Z + 4X Var (4Y-3)
Suppose that X, Y, and Z are jointly distributed random variables, that is, they are defined on the same sample space. Suppose that we also have the following. E(x) = 3 Var (x) = 19 E(r)--2 Var (r)-36 E(Z)-6 Var (Z)-45 Compute the values of the expressions below. E (2 1)
for java
12) Suppose you have defined variables int x 42 String y ="lunchtime" a) Evaluate each expression below y.equals ("breakfast") 11 x !-42 5 1 (y.length )>0 66 ! (x < =0)) x !( (x>0 GG x > 1) || x > 2) b) Using the variables x and y above, for each phrase below, write a Java boolean expression that captures its meaning. Then determine whether the expression is true or false using the values of x and...
X,Y, and Z are random variables.
Var(X) = 2, Var(Y) = 1, Var(Z) = 5, Cov(X,Y) = 3, Cov(X, Z) = -2, Cov(Y,Z) = 7. Determine Var(3X – 2Y - 2+10)