Difference between revisions of "Least squares modelling (2014)"

From Statistics for Engineering
Jump to navigation Jump to search
Line 5: Line 5:
| vimeoID2 = 85489099
| vimeoID2 = 85489099
| vimeoID3 = 85777548
| vimeoID3 = 85777548
| vimeoID4 =
| vimeoID4 = 86065752
| vimeoID5 =
| vimeoID5 =
| vimeoID6 =
| vimeoID6 =
Line 24: Line 24:
| video_download_link3_MP4_size = 291 M
| video_download_link3_MP4_size = 291 M
| video_notes3 =
| video_notes3 =
| video_download_link4_MP4 =  
| video_download_link4_MP4 = http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05B.mp4
| video_download_link4_MP4_size = M
| video_download_link4_MP4_size = 216 M
| video_notes4 =
| video_notes4 =
| video_download_link5_MP4 =
| video_download_link5_MP4 =
Line 74: Line 74:
| [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05A.mp3 Audio] (41 M)  
| [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05A.mp3 Audio] (41 M)  
| See the source code below
| See the source code below
|-
| 05 February
| 05B
| [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05B.mp4 Video] (216 M) 
| [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05B.mp3 Audio] ( M)
| None
|-
| 06 February
| 05C
| <!-- [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05B.mp4 Video] (216 M) --> 
| <!-- [http://learnche.mcmaster.ca/media/2014-4C3-6C3-Class-05B.mp3 Audio] ( M) -->
| [[Media:2014-4C3-6C3-Least-squares-practice-problems.pdf|Practice problems]] (with partial solutions)
|}
|}



Revision as of 23:05, 6 February 2014

Class date(s): 29 January 2014 to 13 February 2014
Nuvola mimetypes pdf.png (PDF) Course slides
Download video: Link (plays in Google Chrome) [119M]

Download video: Link (plays in Google Chrome) [304 M]

Download video: Link (plays in Google Chrome) [291 M]

Download video: Link (plays in Google Chrome) [216 M]

Course notes and slides

Date Class number Video and audio files Other materials Reading (PID) Slides
29 January 04C Video (119 M) Audio (18 M) None Chapter 4 Nuvola mimetypes pdf.png Slides for class
30 January 04D Video (304 M) Audio (42 M) See the source code below
03 February 05A Video (291 M) Audio (41 M) See the source code below
05 February 05B Video (216 M) Audio ( M) None
06 February 05C Practice problems (with partial solutions)

Software source code

Take a look at the software tutorial, particularly steps 16 to 22.

Code used in class

Least squares demo

x <- c(10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5)
y <- c(8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68)
plot(x,y)
model.ls <- lm(y ~ x)
summary(model.ls)

coef(model.ls)
confint(model.ls)

names(model.ls)
model.ls$resisduals
resid(model.ls)

plot(x, y)
abline(model.ls)