You are viewing this question as it will appear in the manual grading interface. Return to the normal view when you are done.

Gambler Example

Open the workspace below and complete the IPython notebook.

Open workspace

The cells that will be graded are marked with the tag #grade. Do not delete that line and/or cell, or the autograder will not be able to find your solution. Once you complete each one of the #grade cells, you can click "Save & Grade" to see if you got the correct solution.

To get points for this question, you will need to define the following variables inside the notebook:

Name Type Description
G 2d numpy array markov matrix G
xstar2 1d numpy array probability of winning and losing

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Variant

Started at:
2026-08-04 21:49:57 (CDT)
Duration:
0s
Show/Hide answer
{}
History
dec frac
rad deg