120 likes | 310 Vues
Discover the fundamentals of R, a powerful statistical programming language widely used in computational biology and applied statistics. This introduction covers the R console, basic arithmetic, working with vectors, and simple statistics. Explore serious examples like the Gillespie algorithm and the stochastic discrete SIR model. Through practical applications and theory, you'll gain insights into modeling infectious diseases and understanding key statistical concepts. Join us to enhance your programming skills in R and its applications in various fields, including financial mathematics.
E N D
Introduction to the R language Mathew Plucinski University of Cambridge / UC Berkeley
What is it • A free version of S+ • Statistical programming • Used extensively in computational biology, to a lesser extent in applied statistics, financial mathematics • Interpretive language
Outline • Introduction to R Console • Basic arithmetic, working with vectors, and simple statistics • A more serious example – Gillespie Algorithm
Stochastic, Discrete SIR model St,It,Rt
Stochastic, Discrete SIR model Infection St,It,Rt Recovery
Stochastic, Discrete SIR model Infection St,It,Rt Recovery
Stochastic, Discrete SIR model St-1,It+1,Rt Infection St,It,Rt
Stochastic, Discrete SIR model St-1,It+1,Rt Infection St,It,Rt Recovery
Stochastic, Discrete SIR model St-1,It+1,Rt Infection St,It,Rt Recovery St,It-1,Rt+1
Stochastic, Discrete SIR model St-1,It+1,Rt Rate: λStIt St,It,Rt Rate: µIt St,It-1,Rt+1
Stochastic, Discrete SIR model St-1,It+1,Rt p=λStIt/(λStIt+ µIt) St,It,Rt St,It-1,Rt+1 p= µIt/(λStIt+ µIt)