subject
Computers and Technology, 24.03.2021 15:50 kbows12

Difficulty: Moderate Exercise 6 (4 points):
**Create a function in a file that begins with
function q-markov (P, x0)
format
n=size (P,1);
q-1);
**First, the function has to check whether the given matrix P (that will have positive entries)
is stochastic, that is, left-stochastic. If P is not left-stochastic, the program displays a message
disp('P is not a stochastic matrix')
and terminates. The empty output for a will stay.
If P is left-stochastic (then it will be regular stochastic), we will proceed with following:
**First, find the unique steady-state vector q, which is the probability vector that forms a
basis for the Null space of the matrix P-eye (n): employ a MATLAB command null(,'r')
to find a basis for the Null space and, then, scale the vector in the basis to get the required
probability vector a.
**Next, verify that the Markov chain converges to q by calculating consecutive iterations:
x =P*x0, x =P*x, x, =P*X,
You can use a “while” loop here. Your loop has to terminate when, for the first time, the
output of the function closetozeroroundoff () with p=7, run on the vector of the difference
between a consecutive iteration and q, is the zero vector. Count the number of iterations k that
is required to archive this accuracy and display k in your code with the corresponding
message.
This is the end of your function markov.
We

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
You know the right answer?
Difficulty: Moderate Exercise 6 (4 points):
**Create a function in a file that begins with
Questions
question
Mathematics, 29.01.2021 19:40
question
Spanish, 29.01.2021 19:40
question
Mathematics, 29.01.2021 19:40
Questions on the website: 13722367