Quantitative Methods Combining continuous and categorical variables.

Slides:



Advertisements
Similar presentations
Quantitative Methods Interactions - getting more complex.
Advertisements

1 1 Chapter 5: Multiple Regression 5.1 Fitting a Multiple Regression Model 5.2 Fitting a Multiple Regression Model with Interactions 5.3 Generating and.
CompositionsFunctions Slope and Graphs Parallel & Perpendicular.
Regression With Categorical Variables. Overview Regression with Categorical Predictors Logistic Regression.
Quantitative Methods Checking the models II: the other three assumptions.
Quantitative Methods Using more than one explanatory variable.
Sociology 601 Class 28: December 8, 2009 Homework 10 Review –polynomials –interaction effects Logistic regressions –log odds as outcome –compared to linear.
Quantitative Methods Checking the models I: independence.
Analyzing quantitative data – section III Week 10 Lecture 1.
10.1 Scatter Plots and Trend Lines
FACTOR THE FOLLOWING: Opener. 2-5 Scatter Plots and Lines of Regression 1. Bivariate Data – data with two variables 2. Scatter Plot – graph of bivariate.
7/6/2015 Orthogonal Functions Chapter /6/2015 Orthogonal Functions Chapter 7 2.
Quantitative Methods Designing experiments - keeping it simple.
Solving Systems of three equations with three variables Using substitution or elimination.
Least Squares Regression
The Line of Best Fit Linear Regression. Definition - A Line of Best or a trend line is a straight line on a Scatter plot that comes closest to all of.
Graph the linear function What is the domain and the range of f?
Relationship of two variables
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-1 Review and Preview.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
1 Chapter 10 Correlation and Regression 10.2 Correlation 10.3 Regression.
Factorial ANOVA More than one categorical explanatory variable STA305 Spring 2014.
Analysing Graphs of Linear Relations Lesson 9.1. Terms  Relationship.
Chapter 10 Correlation and Regression
Copyright © by Holt, Rinehart and Winston. All Rights Reserved. Represent a real-world linear relationship in a table, graph, or equation. Identify linear.
Sec 1.5 Scatter Plots and Least Squares Lines Come in & plot your height (x-axis) and shoe size (y-axis) on the graph. Add your coordinate point to the.
CHAPTER 3 INTRODUCTORY LINEAR REGRESSION. Introduction  Linear regression is a study on the linear relationship between two variables. This is done by.
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.3 Using Multiple Regression to Make Inferences.
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
Chapter 4: Describing the relation between two variables Univariate data: Only one variable is measured per a subject. Example: height. Bivariate data:
 Some variables are inherently categorical, for example:  Sex  Race  Occupation  Other categorical variables are created by grouping values of a.
Section 4.2 Building Linear Models from Data. OBJECTIVE 1.
Day Problems Solve by graphing. Check your solution.
Least Squares Regression.   If we have two variables X and Y, we often would like to model the relation as a line  Draw a line through the scatter.
POD 09/19/ B #5P a)Describe the relationship between speed and pulse as shown in the scatterplot to the right. b)The correlation coefficient, r,
Section 1-3: Graphing Data
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Chapter 10 Correlation and Regression 10-2 Correlation 10-3 Regression.
6.EE.C.Represent and analyze quantitative relationships between dependent and independent variables. 9.Use variables to represent two quantities in a real-world.
ANSWER is 25% of what number ANSWER 40% 4.What percent of 90 is 36? ANSWER d = 4 ANSWER x = Solve:
Method 3: Least squares regression. Another method for finding the equation of a straight line which is fitted to data is known as the method of least-squares.
Chapter Nonlinear models. Objectives O Classify scatterplots O Use scatterplots and a graphing utility to find models for data and choose the model.
Direct Variation Chapter 5 Section 2. Objective  Students will write and graph an equation of a direct variation.
NOTES 2.3 & 9.1 Direct and Inverse Variation. Direct Variation A function in the form y = kx, where k is not 0 Constant of variation (k) is the coefficient.
Statistics: Scatter Plots and Lines of Fit. Vocabulary Scatter plot – Two sets of data plotted as ordered pairs in a coordinate plane Positive correlation.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 9 l Simple Linear Regression 9.1 Simple Linear Regression 9.2 Scatter Diagram 9.3 Graphical.
1 Objective Given two linearly correlated variables (x and y), find the linear function (equation) that best describes the trend. Section 10.3 Regression.
Warm up… Page 297 practice quiz at the bottom of the page.
CHAPTER 3 Describing Relationships
Lesson 4.5 Topic/ Objective: To use residuals to determine how well lines of fit model data. To use linear regression to find lines of best fit. To distinguish.
1.1 Tables and Graphs of Linear Equations
Regression Chapter 6 I Introduction to Regression
Example 6 Voting The table shows the percent of voting-age population who voted in presidential elections for the years 1960–2004. Graph the data points,
SIMPLE LINEAR REGRESSION MODEL
Simple Linear Regression
Soc 3306a: ANOVA and Regression Models
5-2 Direct Variation.
Indicator Variables Often, a data set will contain categorical variables which are potential predictor variables. To include these categorical variables.
Residuals and Residual Plots
Soc 3306a Lecture 11: Multivariate 4
Write the equation for the following slope and y-intercept:
ADDITIVE VS. MULTIPLICATIVE RELATIONSHIPS
Graph Review Skills Needed Identify the relationship in the graph
Models, parameters and GLMs
Regression and Categorical Predictors
Models, parameters and GLMs
Designing experiments - keeping it simple
Graphing Data Section 1-3.
Combining continuous and categorical variables
Presentation transcript:

Quantitative Methods Combining continuous and categorical variables

Combining categorical and continuous variables Reprise of models fitted so far YIELD=FERTIL YIELDM=VARIETY VOLUME=HEIGHT MATHS=ESSAYS SPECIES2=SPECIES1 AMA=YEARS+HGHT FINALHT=INITHT+WATER WGHT=RLEG+LLEG POETSAGE=BYEAR+DYEAR LVOLUME=LDIAM+LHGHT YIELD=BLOCK+BEAN SEEDS=COLUMN+ROW+TREATMT

Combining categorical and continuous variables Reprise of models fitted so far YIELD=FERTIL YIELDM=VARIETY VOLUME=HEIGHT MATHS=ESSAYS SPECIES2=SPECIES1 AMA=YEARS+HGHT FINALHT=INITHT+WATER WGHT=RLEG+LLEG POETSAGE=BYEAR+DYEAR LVOLUME=LDIAM+LHGHT YIELD=BLOCK+BEAN SEEDS=COLUMN+ROW+TREATMT ANOVA table - whether x- variables predict y-variable Coefficients table - how x- variables predict y-variable

Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Model formulae, model and fitted values BACAFTER = BACBEF+TREATMNT TREATMNT Coef 1  1 BACAFTER =  + BACBEF + 2  2 +  3 - 1 - 2 TREATMNT Coef PREDICTED BACAFTER = BACBEF (Model Formula) (Model) (Fitted Value Equation or Best Fit Equation)

Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Model formulae, model and fitted values

Combining categorical and continuous variables Graphs and equations

Combining categorical and continuous variables FAT =  + *WEIGHT FAT =  + SEX Coeff M  F - FAT =  + SEX Coeff + *WEIGHT M  F - Graphs and equations

Combining categorical and continuous variables Graphs and equations

Combining categorical and continuous variables Graphs and equations

Combining categorical and continuous variables Orthogonality … is a relationship that may hold between two x-variables The general concept is that two x-variables are orthogonal if you can’t predict one when you know the other.

Combining categorical and continuous variables Orthogonality

Combining categorical and continuous variables Orthogonality

Combining categorical and continuous variables Orthogonality

Combining categorical and continuous variables Ambivalence

Combining categorical and continuous variables Ambivalence

Combining categorical and continuous variables Ambivalence

Combining categorical and continuous variables Generality of GLM

Combining categorical and continuous variables Last words… Next week: Interactions - getting more complex Read Chapter 7 (a long one) Continuous and categorical variables can be freely combined in a model formula Know how to construct the model Know how to construct the fitted value equation Some variables may be treated in either way The GLM encompasses many traditional tests