Docsity

Hints for Assignment 4: Linear Algebra Contradictions and Data Visualization - Prof. Mark , Assignments of Statistics

Toggle sidebar
bg1
Hints for Assignment 4
1.
Suppose
9
E
s.t.
EA
=
I
. Since
E
is invertible, then
rank
(
EA
) =
rank
(
A
) =
rank
(
I
) =
n
(
A
n
n
)
From the other hand,
rank
(
E
n
:::E
1
A
) =
rank
(
A
) =
rank
(
B
)
< n
, because all
E
i
are invertible.
This is a contradiction.
2.
x
1
0
@
k
1
0
1
A
+
x
2
0
@
1
k
1
1
A
+
x
3
0
@
0
1
k
1
A
=
0
@
0
0
0
1
A
)
2
4
k
1 0
1
k
1
0 1
k
3
5
2
4
x
1
x
2
x
3
3
5
=
2
4
0
0
0
3
5
)
2
4
0 1
k
2
k
1
k
1
0 1
k
3
5
)
2
4
0 0
k
(
k
2
2)
1 0 1
k
2
0 1
k
3
5
k
= 0 or
k
=
p
2
()
linearly dependent
3.
Suppose
U
6
=
V
,
W
6
=
V
.
9
a
2
V
s.t.
a
62
U
, but
a
2
W
9
b
2
V
s.t.
b
62
W
, but
b
2
U
a
+
b
2
V
)
a
+
b
2
U
or
W
. This is a contradiction.
1
pf2

Partial preview of the text

Download Hints for Assignment 4: Linear Algebra Contradictions and Data Visualization - Prof. Mark and more Assignments Statistics in PDF only on Docsity!

Hints for Assignment 4

Suppose 9 E s.t. EA = I. Since E is invertible, then rank(EA) = rank(A) = rank(I) = n (Ann) From the other hand, rank(En:::E 1 A) = rank(A) = rank(B) < n, because all Ei are invertible. This is a contradiction.

x 1

k 1 0

A (^) + x 2

k 1

A (^) + x 3

k

A =

A

k 1 0 1 k 1 0 1 k

x 1 x 2 x 3

0 1 k^2 k 1 k 1 0 1 k

0 0 k(k^2 2) 1 0 1 k^2 0 1 k

k = 0 or k = 

p 2 () linearly dependent

Suppose U 6 = V , W 6 = V. 9 a 2 V s.t. a 62 U , but a 2 W 9 b 2 V s.t. b 62 W , but b 2 U a + b 2 V ) a + b 2 U or W. This is a contradiction.

4. x <‐ scan ("smoking.txt", list("",0,0), skip=1)

smoke <‐ x[[2]];

deth <‐ x[[3]];

plot(smoke, death, xlab='smoking rate', ylab='death rate', type='p')

abline(lsfit(smoke, death), lty = 2)

5.

pdf("3D_plot.pdf")

x <‐seq(‐1,1, length = 100)

y <‐seq(0,1, length = 100)

z <‐ matrix(0, length(x), length(y))

for (i in 1:length(x))

{

for(j in 1:length(y))

{

u <‐ (x[i]sin(20y[j])+y[j]sin(20x[i]))^2cosh(sin(10x[i])*x[i]);

v <‐ (x[i]sin(10y[j])‐y[j]sin(10x[i]))^2cosh(cos(20y[j])*y[j]);

z[i,j] <‐ u+v

}

}

persp(x,y,z, xlim=range(‐1,1), ylim=range(0,1), zlim=range(0, max(z)+1/2), theta=30, phi=20, ticktype='detailed')

dev.off()