Download Chapter Review

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Choice modelling wikipedia , lookup

Time series wikipedia , lookup

Regression analysis wikipedia , lookup

Linear regression wikipedia , lookup

Coefficient of determination wikipedia , lookup

Transcript
Activity 2 - R
Chapter 2 Review
Objectives
• Make sure you have Lines Review Sheet
• Make sure you have Regression Review Sheet
• Make sure you have all three quizzes from chapter 2
Vocabulary
• Study individual lesson’s vocabulary
Slope
The average rate of change between any two points on
a line is always the same constant value. The
“steepness” of the line is called the slope.
∆y
y2 – y1
rise
m = slope = ---- = ----------- = ---------∆x
x2 – x1
run
distance up (+) or down(-)
= ---------------------------------------distance right (+) or left (-)
Different Slopes for Different Folks
Positive slope represents an increasing function
Negative slope represents a decreasing function
A Zero slope represents a constant function – a
horizontal line
Undefined slope represents a vertical line, which is not
a function!
y
x
Slope Intercept Form
•
A line in slope-intercept form:
y = mx + b
where m represents the slope of the line
(the average rate of change)
and b represents the y-intercept (0, b)
∆y
slope, m = ---∆x
y2 – y1
rise
= ----------- = -------- = average rate of change
x2 – x1
run
Point-Slope Form
•
Slope Intercept:
•
Point Slope:
y = mx + b
y – k = m(x – h)
∆y
y–k
Slope = m = ------ = ----------, so
∆x
x–h
m ( x – h) =
y–k
Shifts and Reflections
• Vertical shifts: output value ± constant
• Horizontal shifts: (input value ± constant)
• Reflections:
– x-axis: x-values same, y-values flip sign
– y-axis: y-values same, x-values flip sign
• Shifts (also called translations), reflections
(flips) and vertical stretches and shrinks are
called Transformations
TI-83 Instructions for Scatter Plots
•
•
•
•
•
•
Enter explanatory variable in L1
Enter response variable in L2
Press 2nd y= for StatPlot, select 1: Plot1
Turn plot1 on by highlighting ON and enter
Highlight the scatter plot icon and enter
Press ZOOM and select 9: ZoomStat
Interpreting Scatterplots
Scatter plots should be described by
– Direction
positive association (positive slope left to right)
negative association (negative slope left to right)
– Form
linear – straight line,
curved – quadratic, cubic, etc, exponential, etc
– Strength of the form
weak
moderate (either weak or strong)
strong
– Outliers (any points not conforming to the form)
– Clusters (any sub-groups not conforming to the form)
Example 1
Strong Negative Linear Association
Response
Response
Response
Explanatory
Explanatory
Strong Positive Linear Association
Explanatory
No Relation
Response
Response
Explanatory
Strong Negative Quadratic Association
Explanatory
Weak Negative Linear Association
Line of Best Fit
The established method for finding the line of best fit is
called the Least Squares Regression Model. It
minimizes the sum of the square of the residual values.
It uses calculus, so is beyond our course, but our
calculator can do all the work for us.
Diagnostics must be turned on (see last page)
Use LinReg(ax+b) L1, L2 (from STAT, CALC)
Write down a = 0.22357
b = – 21.3767
r = 0.7199
(the slope)
(the y-intercept)
(correlation coefficient)
Least Squares Regression Line
residual
residual
• The blue line minimizes the sum of the
squares of the residuals (dark vertical lines)
Example 2
Match the r values
to the Scatterplots
to the left
1)
2)
3)
4)
5)
6)
r = -0.99
r = -0.7
r = -0.3
r=0
r = 0.5
r = 0.9
F
E
D
A
B
C
A
D
B
E
C
F
Residuals Part Two
• The sum of the least-squares residuals is
always zero
• Residual plots helps assess how well the line
describes the data
• A good fit has
– no discernable pattern to the residuals
– and the residuals should be relatively small in size
• A poor fit violates one of the above
– Discernable patterns:
Curved residual plot
Increasing / decreasing spread in residual plot
Residuals Part Two Cont
A)
B)
C)
Unstructured scatter
of residuals indicates
that linear model is a
good fit
Curved pattern of
residuals indicates
that linear model may
not be good fit
Increasing (or
decreasing) spread of
the residuals indicates
that linear model is not
a good fit (accuracy!)
Piecewise Linear Functions
• Piecewise function is a function that is
defined differently for certain “pieces” of its
domain
• The absolute value is a special piecewise
function:
x if x  0
|x| =
-x if x < 0
• The absolute value of a linear function, g(x) =
|x – c|, always has a v-shaped graph with a
vertex at (c, 0)
Summary and Homework
• Summary
– Chapter two is about lines and regression
• Homework
– study for test