Suppose you have two variables x and y defined. Write a stub if statement to evaluate...
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...
Python: We defined two variables, x = 'Python' and y = '3.0'. Write code to concatenate the two numbers (the result should be 'Python3.0').
Suppose two continuous random variables X and Y have cumulative distribution functions Fx(x) and Fy(y) respectively. Suppose that Fx(x) > Fy(x) for all x. Indicate whether the following statements are TRUE or FALSE with brief explanation. (a) E(X) > E(Y) (b) The probability density functions fx, fy satisfy fx(x) > fy(x) for all x. (c) P (X = 1) > P (Y = 1)
2. (46 pts) Suppose the random variables X and Y have the joint density function defined by: f(x, y)- otherwise a) Find the value for the constant c b) Find the marginal cdf for X and Y c) Find PiX>3, Y>2)
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. ar (x) 34 Var (Y)- Var() 35 Compute the values of the expressions below. E 4 + 5Z2) -4Z-5x -О Var (-5Y+2)
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)-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)
Question (c) Suppose you have two jointly distributed random variables, X and Y. Suppose you know the following facts. • Var(–7.5 X) = 53.2925 • Var(1.5 x Y) = 1.01765 • Var(2 x X +3 + Y) = 6.26319 i. What is Cov(X,Y)? ii. What is the correlation of X and Y? iii. If you had a random sample of observations of x and y and estimated the regression Y = Bo + BiX +€ What would the
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