STAT 540 Computing in Statistics (Fall 2025)

Dr. Karl Gregory

Class times: 1:15 - 2:30 pm Tuesdays and Thursdays in LeConte College 103

Office hours: 3:00 - 4:00 pm Tuesdays and Wednesdays in LeConte College 216C

TA office hour: Patrick Jin, 12:00 - 1:00 pm Mondays in LeConte College 111


syllabus


Notes Annotated Code Topics
R objects pdf Rscript Introduction, types of objects in R
R basic operations pdf Rscript Arithmetic operations, logical comparisons, statistics functions, missing values, applying functions to matrices and arrays, making plots
R defining functions pdf Rscript Defining functions, conditional programming
R for loops pdf Rscript For loop, nested for loops
R while loops pdf Rscript While loops
R statistics functions pdf Rscript Statistics functions
R Monte Carlo methods pdf Rscript Monte Carlo methods for integration and optimization


R homework template

Quarto cheat sheet

LaTex math symbols


Homework Due Solutions
R Homework 1 Th. Sep 18, 11:59 pm. Render to html, print to pdf, upload to Blackboard.


Exams Solutions


scatterplot with the trajectory of a particle overlaid


Home