18.05 | Spring 2014 | Undergraduate

Introduction to Probability and Statistics

18.05 R Code

R and RStudio

Home of the R project,    
Get RStudio here.

Tutorials

Tutorial 1A    
Tutorial 1B    
Tutorial rle()    
Tutorial for loops    
R code that shows how to do basic plotting (short)

Studios

This section holds all the posted studio materials plus some extra files used for preparation or analysis.

   (extra code to make plots)    
    
    
    
    
    
No studio 7    
    
   studio9-prep.r    
No studio 10    
    

Other R Code

colMatches.r    
oldfaithful_simple.r • oldfaithful data (This a standard R data set.)    
sensorsim.r • runsensorsim.r (Simulates a network of sensors.)

R code used for reading and slides

Studio 3 solutions    
Class 6 prep    
Class 6 slides    
Class 7 prep    
Class 14 prep    
Class 16 prep    
Class 18 experiment    
Class 19 prep    
Class 19 slides    
Class 20 prep    
Class 21    
Class 23 prep    
Class 24 prep    
Class 24 slides    
Class 25 prep    
Class 25 slides

Problem sets

(Code used to produce graphs do computations numbers for problem sets and their solutions.)    
ps1.r    
ps2.r    
ps3.r    
ps3-sol.r (posted with pset solutions)    
ps3prob2data.r (needed to do pset)    
ps6.r    
ps6-post.r (posted with pset solutions)    
ps7.r    
ps8.r    
ps9.r

Course Info

Spring 2014
Exam Solutions
Exams
Instructor Insights
Lecture Notes
Other Video
Problem Set Solutions
Problem Sets