Extracting Output From A Markov Chain Simulation?

1 view (last 30 days)
Micah
Micah on 13 Dec 2022
Commented: Sai on 28 Dec 2022
A school project requires me to write a program capable of recieving rudimentary data for two different baseball teams, and simulate a game with that data using discrete-time Markov chains for each potential state of the game. The data provided is simply the number of plate appearances, hits, outs, singles, doubles, etc. achieved by each team within a certain time frame (provided in attatchments). So far, I have successfully created a Markov chain (using the dtmc() method) that can simulate an inning (using the simulate() method), using the given data to imitate players at bat, and what base each player reaches, if any. However, the Markov chain is only capable of evaluating the positions of the players on the bases, and cannot recognize when an actual run should have been earned, meaning I cannot keep score. Very inexperienced with MATLAB, and have been scouring the site to figure out how to generate output from a Markov chain to no avail.
Due to the nature of the code, including any here would essentially require me to upload the entire project, which, while not massive, I'd rather not do unless explicitly requested. Thank you in advance.

Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!