Extra 1522 Questions
Extra 1522 Questions
sports league since 2020, primarily based in two regions: North America
and Europe. The World Final 2024 just happened in Resorts World Sentosa,
Singapore, from 30 October to 3 November. As a CS2 enthusiast, you want
to keep track of the number of fans of your favourite teams, Team Astralis
(AST), Team Vitality (VIT) and G2 Esports (G2). After every World Finals,
you note down the number of fans of the three teams and observe the
following:
- Fans of either of the three teams will keep being fans of either of the
three teams, and people not being fans of these three teams will
never become fans of these three teams.
- After every World Final, 6% of AST fans convert into VIT fans, and
4% convert into G2 fans. 3% of VIT fans convert into AST fans and
5% convert into G2 fans. 7% of G2 fans convert into AST fans and
2% convert into VIT fans.
Let the number of AST, VIT and G2 fans before World Finals 2020 be a 0, b 0
and c 0 respectively. The transition from a t, b t, c t to a t+ 1, b t+1 , c t +1 happens
after the ( 2020+t )th World Final.
Answer
( )
0.9 0.03 0.07
a) A= 0.06 0.92 0.02 . A is a stochastic matrix.
0.04 0.05 0.91
b) No. A cannot be split into linear factors.
c) Since A is a stochastic matrix, A must have a steady state vector,
which is the probability vector and eigenvector associated with
eigenvalue 1. Solving (I – A)v = 0, you get the steady state vector v
= [1/3; 1/3; 1/3]. This means that the Markov chain will converge to
the vector (a0 + b0 + c0) * v, and in the long run, the three teams
will have equal number of fans.
Consider the following system with 2 masses and 3 springs.
m1 ẍ 1 + ( k 1+ k 2 ) x 1−k 2 x 2=0
m2 ẍ 2 + ( k 2+ k 1 ) x2−k 2 x 1=0
From now on, we consider the case that m1=m2=m . Also, k 1 and k 2 are
positive.
Answer:
a) K= (
k 1+ k 2 −k 2
−k 2 k 1+ k 2 )
b) M is a diagonal matrix, so for M to be invertible, we must assume
that the masses m1 and m2 are positive. This is a valid assumption
(anything that occupies volume must have mass, as far as we are
concerned).
c) M ( −ω2 x ) + K x=0 ⟹−M ω2 x+ K x=0⇒ M ω 2 x=K x ⇒ M −1 K x=ω 2 x
k1 k +2 k 2
d) ω= or ω= 1
m m
k1
()
1
e) ω= has x= . ω= 1
m 1
k +2 k 2
m ( )
has x=
1
−1
a) (Easy one) Prove that if λ is an eigenvalue of a square matrix A , then
cλ is an eigenvalue for cA where c is a non-zero scalar.
b) (Medium to hard one) Prove that for all square matrices A and B that
satisfies A=PB P−1 , A and B have the same eigenvalues.
c) (Medium to hard one) Vieta’s formula states that for a degree-n
polynomial a n x n +a n−1 x n−1+ …+a1 x+ a0 =0, with n roots x 1 , x 2 ,… , x n, the
−an−1
sum of the roots are defined as x 1+ x2 +…+ x n= . Prove that for any
an
square matrix A , the sum of its eigenvalues is equal to the sum of
its diagonals.
( ) ( )
a 11 ⋯ a1 n x −a11 ⋯ −a1 n
Suppose A= ⋮ ⋱ ⋮ and xI − A= ⋮ ⋱ ⋮
an 1 ⋯ a nn −a n1 ⋯ x−ann
Define M i 1 j 1 ,i 2 j 2 ,… be the matrix minor of xI − A by deleting the i1-th row
and j1-th column, the i2-th row and j2-th column.
det ( xI−A )
¿ ( x−a11 ) det (M 11 )−(−a12) det ( M 12) −… (cofactor expansion along row 1)
Notice that as this point, the degree of the first term is n, but any other
term is only n−2. That is, you can rewrite as
¿ ( x−a11 ) det (M 11 )+ p (n−2)
¿ ( x−a11 ) ¿
¿ ( x−a11 ) (x −a22)det ( M 11,22 ) +(x −a11 ) p (n−3)+ p(n−2)
¿ ( x−a11 ) ( x−a 22) det ( M 11,22 ) + p(n−2) (merge the last 2 terms to form a degree
n-2 polynomial)
¿…
¿ ( x−a11 ) ( x−a 22) … ( x−ann ) + p(n−2)
n n−1
¿ x +(−a11 −a22 …−ann )x + p(n−2)
c 1 x 1 +c 2 x 2 +c 3 x3 =b
( )
150 1000 6 7 500 000
240 1 330 3 5 000 000
250 540 4 7 700 000
60 250 1 2300 000
Answer
a) The numbers in this part are just the last row multiplied by 3.
$ 6 900 000.
b) The RREF of this matrix is the identity matrix, so no c 1, c 2, and c 3
exist that will make Andrew’s hypothesis correct.
c) c 1=16828 , c 2=−1768 , c 3=1127893.
d) $ 6 639 572.
e) Stanford CS229: Machine Learning Full Course taught by Andrew Ng
After finishing Chapter 1 or MA1522, you finally have the tools necessary
to answer one question: How is the assessment weightage of the course
CSxxxxS distributed? This is one of the few courses in NUS that do not
disclose weightage of assessments, but a Canvas loophole (probably the
professors forget to disable this) allows students to view their assessment
component results and the average results. CSxxxxS has three
assessment components: class participation, midterm examination and
final examination. After finding two friends who are comfortable in sharing
their results, you have the following information:
- You get 100% for class participation, 65% for midterm examination,
84% for final examination and your average score is 81.5%.
- Your first friend gets 90% for class participation, 75% for midterm
examination, 90% for final examination and his average score is
85.5%.
- Your second friend gets 85% for class participation, 80% for midterm
examination, 85% for final examination and her average score is
83.5%.
Ans:
a) ST =¿ ¿
1
b) K= ( A−A ¿¿ T ) ¿.
2
T
K =¿ ¿
Random:
1. True
2. False
( )
a
Qn: Suppose T is a non-zero 3 by 3 matrix and T b = 0, which of the
a+b
following is true about T?
1. T must be rank 3
2. T must be of rank 2
3. T must be of rank 1
Remarks: Nullity T = 2 since basis of kernel is {[1;0;1], [0;1;1]}
1. True
2. False
Remarks: Any non-empty non-zero set would give a span that is infinite
1. True
2. False
1. False
2. True
1. True
2. False