The markovchain Package: A Package for Easily Handling Discrete Markov Chains in R7 days ago
Introduction | Review of core mathematical concepts | General Definitions | Properties and classification of states | A short example | The structure of the package | Creating markovchain objects | Handling markovchain objects | Probability with markovchain objects | Conditional distributions | Stationary states | Entropy rate | Topological entropy and normalized entropy rate | Classification of states | First passage time distributions and means | Kemeny's constant | Sensitivity of the stationary distribution | Spectral diagnostics: SLEM, spectral gap and implied timescales | Reversibility | Closest reversible approximation | Mixing time | Lazy chains | Evolution of a distribution | Mean recurrence time | Absorption probabilities and mean absorption time | Fundamental matrix | Restricting a chain to a subset of states | Committor probability | Hitting probabilities | Stochastic monotonicity | Classical Markov chain constructors | Birth-death chains | The Ehrenfest urn model | Combining two chains | The n-step chain | Population genetics: the Moran and Wright-Fisher models | Random and special chains | Statistical analysis | Simulation | Lumpability and aggregation of states | Spectral Kullback-Leibler aggregation | Serialization and export | Estimation | Prediction | Predicting from a markovchain object | Predicting from a markovchainList object | Statistical tests | Assessing the independence of consecutive states | Assessing the Markov property of a Markov chain sequence | Assessing the order of a Markov chain sequence | Assessing the stationarity and time-homogeneity of a Markov chain sequence | Divergence tests for empirically estimated transition matrices | Pseudo-Bayesian estimation | Bayesian estimation | Notation and set-up | Methods | Predictive distribution | Choosing the hyper-parameters | Usage and examples | Continuous time Markov chains | Definition and generator matrix | Stationary distributions | Estimation of the generator matrix | Expected hitting time | Transition probabilities over time | Examples | Applications | Weather forecasting | Land of Oz | Alofi Island Rainfall | Finance and Economics | Finance | Economics | Discretizing autoregressive processes | Actuarial science | MTPL Bonus Malus | Health insurance example | Sociology | Genetics and Medicine | Genetics | Medicine | Discussion, issues and future plans | Acknowledgments | References