1 Relationships We have examined how to measure relationships between two categorical variables (chi-square) one categorical variable and one measurement.

Slides:



Advertisements
Similar presentations
Introduction: Correlation and Regression The General Linear Model is a phrase used to indicate a class of statistical models which include simple linear.
Advertisements

Kin 304 Regression Linear Regression Least Sum of Squares
AP Statistics.  Least Squares regression is a way of finding a line that summarizes the relationship between two variables.
Regresi Linear Sederhana Pertemuan 01 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Review ? ? ? I am examining differences in the mean between groups
Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
Chapter 15 (Ch. 13 in 2nd Can.) Association Between Variables Measured at the Interval-Ratio Level: Bivariate Correlation and Regression.
LINEAR REGRESSION: What it Is and How it Works Overview What is Bivariate Linear Regression? The Regression Equation How It’s Based on r.
LINEAR REGRESSION: What it Is and How it Works. Overview What is Bivariate Linear Regression? The Regression Equation How It’s Based on r.
Statistics for the Social Sciences
Basic Statistical Concepts Psych 231: Research Methods in Psychology.
Basic Statistical Concepts
The Basics of Regression continued
Basic Statistical Concepts Part II Psych 231: Research Methods in Psychology.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Linear Regression and Linear Prediction Predicting the score on one variable.
Leon-Guerrero and Frankfort-Nachmias,
Chapter 8: Bivariate Regression and Correlation
Linear Regression.
Relationship of two variables
Correlation and regression 1: Correlation Coefficient
Correlation and Regression. The test you choose depends on level of measurement: IndependentDependentTest DichotomousContinuous Independent Samples t-test.
Chapter 8 – 1 Chapter 8: Bivariate Regression and Correlation Overview The Scatter Diagram Two Examples: Education & Prestige Correlation Coefficient Bivariate.
Correlation is a statistical technique that describes the degree of relationship between two variables when you have bivariate data. A bivariate distribution.
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Statistical Methods Statistical Methods Descriptive Inferential
10B11PD311 Economics REGRESSION ANALYSIS. 10B11PD311 Economics Regression Techniques and Demand Estimation Some important questions before a firm are.
Correlation and Regression Basic Concepts. An Example We can hypothesize that the value of a house increases as its size increases. Said differently,
Examining Bivariate Data Unit 3 – Statistics. Some Vocabulary Response aka Dependent Variable –Measures an outcome of a study Explanatory aka Independent.
CHAPTER 5 Regression BPS - 5TH ED.CHAPTER 5 1. PREDICTION VIA REGRESSION LINE NUMBER OF NEW BIRDS AND PERCENT RETURNING BPS - 5TH ED.CHAPTER 5 2.
Chapter 6 (cont.) Difference Estimation. Recall the Regression Estimation Procedure 2.
Chapter 10: Determining How Costs Behave 1 Horngren 13e.
Business Statistics for Managerial Decision Making
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Regression Analysis Deterministic model No chance of an error in calculating y for a given x Probabilistic model chance of an error First order linear.
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Chapter 15 Association Between Variables Measured at the Interval-Ratio Level.
Correlation and Regression Basic Concepts. An Example We can hypothesize that the value of a house increases as its size increases. Said differently,
Linear Regression Essentials Line Basics y = mx + b vs. Definitions
CHAPTER 3 Describing Relationships
Unit 4 LSRL.
LSRL.
Least Squares Regression Line.
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
SCATTERPLOTS, ASSOCIATION AND RELATIONSHIPS
Chapter 5 LSRL.
LSRL Least Squares Regression Line
Multiple Regression.
Chapter 3.2 LSRL.
CHAPTER 10 Correlation and Regression (Objectives)
Least Squares Regression Line LSRL Chapter 7-continued
CHAPTER 3 Describing Relationships
^ y = a + bx Stats Chapter 5 - Least Squares Regression
Unit 4 Vocabulary.
The Least-Squares Line Introduction
Chapter 5 LSRL.
Chapter 5 LSRL.
Chapter 5 LSRL.
CHAPTER 3 Describing Relationships
Multivariate Analysis Regression
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Algebra Review The equation of a straight line y = mx + b
A medical researcher wishes to determine how the dosage (in mg) of a drug affects the heart rate of the patient. Find the correlation coefficient & interpret.
Chapter 14 Multiple Regression
CHAPTER 3 Describing Relationships
Presentation transcript:

1 Relationships We have examined how to measure relationships between two categorical variables (chi-square) one categorical variable and one measurement variable (t-test, F-test) Now we look at relationships between two measurement variables

2 Interval variable relations We want to describe the relationship in terms of form strength We want to make inferences to the population

3 Our Tools Correlation to measure strength of relationship Regression to measure form of relationship

4 Regression Begin with a scatterplot of two measurement variables, X and Y Let X be the independent variable Let Y be the dependent variable Plot each case as we have done before at the beginning of the course.

5 Scatterplot Note:

6 Note the outlier: Dallas

7 Relationships Each city is represented by an X score (percent poor) and a Y score (homicide rate) We are asking about the relationship between poverty and homicide Does homicide change as percent poor changes? If so, in what way and how much?

8 Looking at the scatterplot We see that as percent poor (poverty) increases (from left to right on the graph), the homicide rate increases (from low to high on the graph

9 Scatterplot

10 Representing relationships We represent the relationship with a straight line that goes through the middle of the points on the graph This line is the regression line It shows the average homicide rate for every level of poverty.

11 Regression Line

12 Regression Line Every line is represented by a formula The regression line has the following general formula ‘a’ represents the intercept of the line ‘b’ represents the slope of the line y-hat is the predicted value of y for a given x value

13 Regression of homicide on poverty a = -.815b =.944 x is percent poor y is homicide rate

14 Slope, the value of b The slope of the regression line is positive, it goes from the lower left to the upper right. The slope measures the amount of change in the dependent variable for every unit change in the independent variable b =.944. There is an increase of.944 units in y for every increase of 1.0 in x

15 Regression Line, slope Percent families below poverty units 5 x.944 units Regression Line “rise” “run”

16 Intercept, the value of a The intercept is the point where the regression line crosses the Y axis This point is the value of Y when X is zero a = The predicted rate of homicide is when there is zero poverty

17 Calculate b

18 Calculate a First calculate b, then

19 Calculate predicted y After calculating a and b, one can use the regression line formula to calculate predicted values of y for every actual value of x

20 Prediction errors Prediction errors are the difference between the predicted value of y and the actual value of y

21 Prediction errors Errors (actual minus predicted) Regression Line Predicted Actual

22 Ordinary Least Squares: OLS The regression line is the “best fitting” line through the data points in the graph It is the line that minimizes the sum of the squared error terms -- hence “least squares” Minimize:

23 Sums of Squared Errors

24 Sum of Squared Errors Minimum is when a=-.815, b=.944 b a