Stat 1510
Statistical Thinking & Concepts
Regression
1
Linear Regression
Objective:
To quantify the linear
relationship between an explanatory
variable (x) and response variable (y).
We
can then predict the average
response for all subjects with a given
Importing Data& Saving Files in R
Importing Data & Saving Files in R
STAT 1510: Fall 2012
Importing data
1. For starting todays lab, we need to save the data set from the course
website.
http:/www.math.mun.ca/~variyath/student.txt
If you right click on th
Introduction to R
Introduction to R
STAT 1510: Fall 2012
Getting started
1. Start R by double-clicking on the R icon on the desktop, or by clicking on the R
icon in the start menu.
2. The R graphical user interface (GUI) will open, containing a single win
Sept 25, 2013
Plotting in R
Plotting in R
STAT 1510: Fall 2013
Plotting
First we'll produce a very simple graph using the values in the car:
# Define the cars with 5 values
>cars <- c(1, 3, 6, 4, 9)
>plot(cars) # Graph the cars with all defaults
Let's add
Sept 18, 2013
Sampling Methods
Sampling Methods
STAT 1510: Fall 2013
Todays session we discuss some sampling methods such as
Simple Random Sampling
Systematic Sampling
Stratified Sampling
2-stage random sampling
We discuss all the problems using a dataset
Statistics 1510: Statistical Thinking and Concepts, Fall 2012
Assignment #3 Solutions
64
60
62
y
66
68
Q1. (a) Yes there is a positive relation between x & y.
66
68
70
72
x
Figure 1: Scatter plot between Sisters height and Brothers height
(b) Table 1 give
Assignment #1 solutions
Q1.
a)
b)
c)
d)
Q2.
All Businesses in city of St. John's
All Businesses in city of St. John's who are listed in telephone book.
Any Business in city of St. John's who are listed in telephone book.
77/150=0.513 or 51.3%
It is a conv
Statistics 1510: Statistical Thinking and Concepts, Fall 2012
Assignment #4 Solutions
Q1. (a) The regression equation is y = 0.126085 + 0.060782x. For x = 2.0, this
formula gives y = 0.004521.
(b) From this R output, R2 = 0.7713, or 77.13% (This is given
Stat 1510
Statistical Thinking and Concepts
Two-Way Tables
1
Categorical Variables
In the last few classes, we study the
relationship between two continuous
variables. Now we will study the
relationship between two categorical
variables (variables whose v
Assignment #2 Solutions
Q1:
(a) Appropriate plot is Time Plot because one variable is year.
(b) Tuition has steadily climbed during the 30-year period, with sharpest absolute increases in the last 10
years.
Q2: (a) The bar graph is provided in the next pa
Stat 1510
Statistical Thinking & Concepts
Picturing Distributions with Graphs
1
Statistics
Statistics is a science that involves the extraction of
information from numerical data obtained during an
experiment or from a sample. It involves the design
of th
Sept 11, 2013
Introduction to R
Introduction to R
STAT 1510: Fall 2013
Installing R on a Windows/Mac/Linux PC
R is a software environment for statistical analysis which is similar to S plus but free.
If you want to download R and install it on a (Availabl