11.04.2014 Views

Linear Algebra Exercises-n-Answers.pdf

Linear Algebra Exercises-n-Answers.pdf

Linear Algebra Exercises-n-Answers.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Answers</strong> to <strong>Exercises</strong> 157<br />

0,0,0,q,p,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 2-1<br />

0,0,0,0,q,p, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 1-2_<br />

0,0,0,0,0,q, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 0-3<br />

0,0,0,0,0,0, p,0,0,0,1,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 4-0<br />

0,0,0,0,0,0, q,p,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 3-1__<br />

0,0,0,0,0,0, 0,q,p,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 2-2<br />

0,0,0,0,0,0, 0,0,q,p,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0; # 1-3<br />

0,0,0,0,0,0, 0,0,0,q,0,0, 0,0,1,0,0,0, 0,0,0,0,0,0; # 0-4_<br />

0,0,0,0,0,0, 0,0,0,0,0,p, 0,0,0,1,0,0, 0,0,0,0,0,0; # 4-1<br />

0,0,0,0,0,0, 0,0,0,0,0,q, p,0,0,0,0,0, 0,0,0,0,0,0; # 3-2<br />

0,0,0,0,0,0, 0,0,0,0,0,0, q,p,0,0,0,0, 0,0,0,0,0,0; # 2-3__<br />

0,0,0,0,0,0, 0,0,0,0,0,0, 0,q,0,0,0,0, 1,0,0,0,0,0; # 1-4<br />

0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,p,0, 0,1,0,0,0,0; # 4-2<br />

0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,q,p, 0,0,0,0,0,0; # 3-3_<br />

0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,q, 0,0,0,1,0,0; # 2-4<br />

0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,p,0,1,0; # 4-3<br />

0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,q,0,0,1]; # 3-4<br />

v7 = (A**7) * v;<br />

w = v7(11)+v7(16)+v7(20)+v7(23)<br />

endfunction<br />

Using this script, we get that when the American League has a p = 0.55 probability of winning<br />

each game then their probability of winning the first-to-win-four series is 0.60829. When their<br />

probability of winning any one game is p = 0.6 then their probability of winning the series is<br />

0.71021.<br />

(b) This Octave session<br />

octave:1> v0=[1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0];<br />

octave:2> x=(.01:.01:.99)’;<br />

octave:3> y=(.01:.01:.99)’;<br />

octave:4> for i=.01:.01:.99<br />

> y(100*i)=markov(i,v0);<br />

> endfor<br />

octave:5> z=[x, y];<br />

octave:6> gplot z<br />

yields this graph. By eye we judge that if p > 0.7 then the team is close to assurred of the series.<br />

1<br />

line 1<br />

0.9<br />

0.8<br />

0.7<br />

0.6<br />

0.5<br />

0.4<br />

0.3<br />

0.2<br />

0.1<br />

0<br />

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1<br />

7 (a) They must satisfy this condition because the total probability of a state transition (including<br />

back to the same state) is 100%.<br />

(b) See the answer to the third item.<br />

(c) We will do the 2×2 case; bigger-sized cases are just notational problems. This product<br />

has these two column sums<br />

( ) ( )<br />

a1,1 a 1,2 b1,1 b 1,2<br />

=<br />

a 2,1 a 2,2 b 2,1 b 2,2<br />

( )<br />

a1,1 b 1,1 + a 1,2 b 2,1 a 1,1 b 1,2 + a 1,2 b 2,2<br />

a 2,1 b 1,1 + a 2,2 b 2,1 a 2,1 b 1,2 + a 2,2 b 2,2<br />

(a 1,1 b 1,1 + a 1,2 b 2,1 ) + (a 2,1 b 1,1 + a 2,2 b 2,1 ) = (a 1,1 + a 2,1 ) · b 1,1 + (a 1,2 + a 2,2 ) · b 2,1 = 1 · b 1,1 + 1 · b 2,1 = 1<br />

and<br />

(a 1,1 b 1,2 + a 1,2 b 2,2 ) + (a 2,1 b 1,2 + a 2,2 b 2,2 ) = (a 1,1 + a 2,1 ) · b 1,2 + (a 1,2 + a 2,2 ) · b 2,2 = 1 · b 1,2 + 1 · b 2,2 = 1<br />

as required.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!