Question

In: Statistics and Probability

Create a square, almost symmetric 4 X 4 matrix B with values 1, 2, 3 and...

Create a square, almost symmetric 4 X 4 matrix B with values 1, 2, 3 and 4 on the diagonal. Let values off diagonal be between 0.01 and 0.2. Almost symmetric matrix is not a scientific term. It just means that most of the off diagonal terms on transpose positions are close in value:

1. Determine matrix BINV which is an inverse of matrix B;

2. Demonstrate that the matrix multiplied by its inverse produces a unit matrix. Unit

matrix has all elements on the diagonal equal to 1 and all other equal to 0;

3. Find eigen values of Matrix B and matrix BINV;

4. Find eigen values of matrix t(B) where t(0 is transpose function.

Please R studio.

Solutions

Expert Solution

Creating almost symmetric 4 * 4 matrix B with values 1,2,3 and 4 on the diagonal and off-diagonal values between 0.01 and 0.2

#CREATING COLUMNS IN MATRIX
m1 = matrix(c(1,0.05,0.10,0.15))
m2 = matrix(c(0.045,2,0.12,0.16))
m3 = matrix(c(0.095,0.115,3,0.2))
m4 = matrix(c(0.145,0.156,0.197,4))

#MATRIX: 4*4 WITH DIAGONAL VALUES 1,2,3,4
B <- cbind(m1,m2,m3,m4)
B

Result

[,1] [,2] [,3] [,4]
[1,] 1.00 0.045 0.095 0.145
[2,] 0.05 2.000 0.115 0.156
[3,] 0.10 0.120 3.000 0.197
[4,] 0.15 0.160 0.200 4.000

Q1. Determining BINV, inverse of matrix B

# INVERSE OF MATRIX
BINV <- solve(B)
BINV

Result

[,1] [,2] [,3] [,4]
[1,] 1.00897199 -0.01820934 -0.02895683 -0.03443895
[2,] -0.02070424 0.50295179 -0.01742375 -0.01800647
[3,] -0.03047408 -0.01829492 0.33598158 -0.01472891
[4,] -0.03548458 -0.01852048 -0.01501625 0.25274816

Q2. Matrix B multiplied with its inverse BINV

# UNIT MATRIX
I <- zapsmall(B%*%BINV)
I

Result

[,1] [,2] [,3] [,4]
[1,] 1 0 0 0
[2,] 0 1 0 0
[3,] 0 0 1 0
[4,] 0 0 0 1

Q3. Find eigen values of Matrix B and matrix BINV

# EIGEN VALUES FOR MATRIX B
Bev <- eigen(B)
Bev$values

Result

[1] 4.0624422 2.9718147 1.9780407 0.9877024

# EIGEN VALUES FOR MATRIX BINV
BINVev <- eigen(BINV)
BINVev$values

Result

[1] 1.0124507 0.5055508 0.3364947 0.2461574

Q4. Find eigen values of matrix t(B)

# TRANSPOSE MATRIX B
Bt <- t(B)
Bt

Result

[,1] [,2] [,3] [,4]
[1,] 1.000 0.050 0.100 0.15
[2,] 0.045 2.000 0.120 0.16
[3,] 0.095 0.115 3.000 0.20
[4,] 0.145 0.156 0.197 4.00

# EIGEN VALUES FOR TRANSPOSE MATRIX B
Btev <- eigen(Bt)
Btev$values

Result

[1] 4.0624422 2.9718147 1.9780407 0.9877024


Related Solutions

A square matrix A is said to be symmetric if its transpose AT satisfies AT= A,...
A square matrix A is said to be symmetric if its transpose AT satisfies AT= A, and a complex-valued square matrix A is said to be Hermitian if its conjugate transpose AH = (A)T = AT satisfies AH = A. Thus, a real-valued square matrix A is symmetric if and only if it is Hermitian. Which of the following is a vector space? (a) The set of all n xn real-valued symmetric matrices over R. (b) The set of all...
b) a matrix is skew symmetric if AT=-A.If A is a skew-symmetric matrix of odd order,show...
b) a matrix is skew symmetric if AT=-A.If A is a skew-symmetric matrix of odd order,show that A is not invertible c)Let A and B be n*n matrixes with detA=detB not equal to 0,If a and b are non zero real numbers show that det (aA+bB-1)=det(aB+bA-1)
Find the inverse of the matrix [ 1 1 4 ] [ 3 2 4 ]...
Find the inverse of the matrix [ 1 1 4 ] [ 3 2 4 ] [ 1 1 6 ] It is a 3*3 matrix
Let A ∈ Mat n×n(R) be a real square matrix. (a) Suppose that A is symmetric,...
Let A ∈ Mat n×n(R) be a real square matrix. (a) Suppose that A is symmetric, positive semi-definite, and orthogonal. Prove that A is the identity matrix. (b) Suppose that A satisfies A = −A^T . Prove that if λ ∈ C is an eigenvalue of A, then λ¯ = −λ. From now on, we assume that A is idempotent, i.e. A^2 = A. (c) Prove that if λ is an eigenvalue of A, then λ is equal to 0...
solve for matrix B Let I be Identity matrix (I-2B)-1= 1 -3 3 -2 2 -5...
solve for matrix B Let I be Identity matrix (I-2B)-1= 1 -3 3 -2 2 -5 3 -8 9
10. For what values of x in the interval [1, 4] does the graph of f(x)=−x^3+6x^2...
10. For what values of x in the interval [1, 4] does the graph of f(x)=−x^3+6x^2 −9x−1 satisfy Rolle’s Theorem? Include a sketch and a brief explanation of what’s going on in this problem. 11. Evaluate each limit. Provide a brief explanation of how you can apply the “top heavy, bottom heavy, it’s a tie” strategy. lim x→∞ 1 / (2x+sinx) 12) Draw   a   diagram   and   solve:   What   is   the   exact   area   of   the   biggest   isosceles   triangle   you   can   inscribe  ...
Suppose X and Y are independent random variables and take values 1, 2, 3, and 4...
Suppose X and Y are independent random variables and take values 1, 2, 3, and 4 with probabilities 0.1, 0.2, 0.3, and 0.4. Compute (a) the probability mass function of X + Y (b) E[X + Y ]?
Differentiate the following: 1) f(x) = √2x-4. (all under square root) 2) f(x) = x/5-x 3)...
Differentiate the following: 1) f(x) = √2x-4. (all under square root) 2) f(x) = x/5-x 3) y=cos(4x^3) 4) f(x)=tan(x^2) 5) f(x)= 3e^2x cos(2x) 6) y= sin2x/cosx 7) y= √sin(cosx) (all under the square root)
Question For Matrix A = 4 12 3, if g (X) = X2 +4X +2, what...
Question For Matrix A = 4 12 3, if g (X) = X2 +4X +2, what is the answer to g(A)? Using algebra, find the solution to the system of inequalities below                       y ≤ 5-3x                 y + 19 ≥ x2 -8x                                     What is peculiar about the slope of a function before and after a point of inflection as compared with the slope before or after a maximum or minimum point? Suppose that the satisfaction received from a...
Integral x^5-x^4+4x^3-4x^2+8x-4 / ( x^3+2)^3(x^2-1) dx
Integral x^5-x^4+4x^3-4x^2+8x-4 / ( x^3+2)^3(x^2-1) dx
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT