Problems 1-3 compute the SVD of a square singular matrix A.
Read more
Table of Contents
Textbook Solutions for Introduction to Linear Algebra
Question
Run a random walk x (2), ... , x (n) starting from web site x (1) = 1. Count the visits to each site. At each step the code chooses the next website x (k) with probabilities given by column x(k - 1) of A. At the end, p gives the fraction of time at each site from a histogram: count visits. The ran kings are based on p. Please compare p to the steady state eigenvector of the Markov matrix A: A = [0 .1 .2 .7; .05 0 .15 .8; .15 .25 0 .6; .1 .3 .6 0]' n = 100; x = zeros(l,n); x(l) = 1; for k = 2 : n x(k) = min(find(rand
Solution
The first step in solving 6.7 problem number 16 trying to solve the problem we have to refer to the textbook question: Run a random walk x (2), ... , x (n) starting from web site x (1) = 1. Count the visits to each site. At each step the code chooses the next website x (k) with probabilities given by column x(k - 1) of A. At the end, p gives the fraction of time at each site from a histogram: count visits. The ran kings are based on p. Please compare p to the steady state eigenvector of the Markov matrix A: A = [0 .1 .2 .7; .05 0 .15 .8; .15 .25 0 .6; .1 .3 .6 0]' n = 100; x = zeros(l,n); x(l) = 1; for k = 2 : n x(k) = min(find(rand
From the textbook chapter Singular Value Decomposition (SVD) you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution