2. Write the output matrix “v”
t = [2:4];
k = [1:3];
v = t.*k –...
2. Write the output matrix “v”
t = [2:4];
k = [1:3];
v = t.*k – k.^2
4. Given: D = [1 2 3 4 5 6 7 8 9] (3x3) . Which command will
extract the submatrix [1 2 3 4 5 6] (2x3) ?
a. D[1:2,1:3]
b. D(1,2 ;1,3)
c. [D(1:2),D(1:3)]
d. D(1:2,1:3)
14. What will be the dimension of matrix B?
B=[ones(3) zeros(3) rand(3); 2*eye(9)]
18. Find the value of “C”
A=1:2:10;
B=linspace(1,5,5);
C = length(A)*B(2)+A(5)*B(3);
19....
Solve the system of equations using an inverse matrix
-4x-2y+z= 6
-x-y-2z= -3
2x+3y-z= -4
Choose...
Solve the system of equations using an inverse matrix
-4x-2y+z= 6
-x-y-2z= -3
2x+3y-z= -4
Choose one:
a. (-1, 0, -2)
b. (1, 0, -2)
c. (1, 0, 2)
d. (-1, 0, 2)
Let the population have N=7 units, with {(unit,value)} =
{(A,-1),(B,+1),(C,-2),(D,+3),(E,-4),(F,+5),(G,-6)}. The design is
as follows: first...
Let the population have N=7 units, with {(unit,value)} =
{(A,-1),(B,+1),(C,-2),(D,+3),(E,-4),(F,+5),(G,-6)}. The design is
as follows: first choose A or B at random; if A then choose from
{C,D} at random, if B then choose from {E,F,G} at random. 1) Find
the first-order inclusion probabilities (note that the sample size
n is fixed at 2).
Verify (show numerically for this example) that the
Horvitz-Thompson estimator is unbiased for the population total.
(Hint: find the probability of each sample and the value...
Give the named probability distribution for each of the
following random variables with specific parameter values....
Give the named probability distribution for each of the
following random variables with specific parameter values. You
should name the parameters, that is, write the
parameter name in your answer (for example,
Binomial(n=30,p=0.5))
(a) Nia has 6 cats. Each cat has a 25% chance of finishing their
dinner. The cats eat independently of each other. What is the
distribution of X: the total number of cats that finish their
dinner?
(b) Nia has a cat that meows a lot. The...