1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Assignment 1 Solutions
Due Date: January 28, 2013
Please nd one or two partners to work together with on this assignment. Print the
names of yo
January 12, 2016
Introduction
This lecture is based on section 2.4 and 2.5 in the text, as well as some additional material.
Recap
Last lecture we saw:
whole numbers are stored in 32-bit two's complement format, with values from \(-2^cfw_31 + 1 =
-214748
January 14, 2016
Introduction
This lecture is based on sections 2.7 to 2.9 in the text, as well as some additional material.
Logical values
In logic, we say that some statements are true, and some are false. (There are also statements with no truth
value,
January 7, 2016
Introduction
This lecture is based on section 2.4 in the text, as well as some additional material.
Storing data on computers
Nowadays, essentially all computers use binary values internally.
Everything is "encoded" as a sequence of 0's an
January 19, 2016
Introduction
In this unit we'll be talking about
what makes a good graph
how to produce it in R
Ihaka lectures
Ross Ihaka is one of the originators of R. He gave a course on statistical graphics in 2003, and has
allowed me to use his sl
January 21, 2016
Introduction
R has emphasized the production and use of good statistical graphics since the very beginning.
There are several graphics systems in R:
base graphics (we'll concentrate on this)
grid graphics, including lattice and ggplot
January 21, 2016
QQ Plots
Quantile-quantile (or QQ) plots are a kind of scatterplot for comparing distributions.
The basic idea is that if \(X\) and \(Y\) have the same distribution and the sample sizes match, then when
you plot \(y_cfw_[i]\) versus \(x_c
January 28, 2016
Programming
The next few lectures are based on Ch 4 of the text, Programming with R.
Today we start with a general discussion of programming, and continue with "flow control".
What is programming?
In the general sense, programming is sim
January 26, 2016
Axes
Axes and axis labels in plots are important. They give context to the plot. What is being plotted? What are
the units of measurement?
R adds axes automatically in high level plots, but sometimes you can do better manually.
Example: i
SS2864 Midterm Test Solution
Statistics 2864 B
Copyright Jinkun Xiao & A. I. McLeod, 2015
Student performance
109 students wrote the midterm. The stem-and-leaf plot of the grades is shown. Special congratulations to the 4 students who earned 100% as well
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Assignment 2 - Solutions
Due Date: February 25, 2013
Please work together with one or two partners on this assignment, but write it up in your
ow
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Solutions Quiz 2 B
Date: February 7, 2013
INSTRUCTIONS:
Answer the following questions in an ASCII (i.e. text) le named
q2.txt. A complete answ
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Assignment 3 - Solutions
Due Date: March 6, 2013
Please work together with one or two partners on this assignment, but write it up in your
own wo
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Assignment 4 Solutions
Due Date: March 27, 2013
Please work together with one or two partners on this assignment, Hand in one copy of
the assig
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Quiz 1 B
Date: January 24, 2013
INSTRUCTIONS:
Answer the following questions in an ASCII (i.e. text) le named q1.txt. In that le,
list all R co
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Quiz 1 A
Date: January 24, 2013
INSTRUCTIONS:
Answer the following questions in an ASCII (i.e. text) le named q1.txt. In that le,
list all R co
1
The University of Western Ontario
Department of Statistical and Actuarial Sciences
Statistical Sciences 2864B
Solutions Quiz 2 A
Date: February 7, 2013
INSTRUCTIONS:
Answer the following questions in an ASCII (i.e. text) le named
q2.txt. A complete answ
January 28, 2016
options(width = 70) `
R supports several graphics systems
So far, we've been talking about base graphics. The design is based on the graphics in the original S
language back in the 1980s.
R is open source and is an open platform, so anyon