Some Examples. Example: daily auto accidents in Saskatchewan to 1984 to 1992 Data collected: 1.Date 2.Number of Accidents Factors we want to consider:

Slides:



Advertisements
Similar presentations
Chapter 12 Simple Linear Regression
Advertisements

Excel Notes Phys244/246 © 2007, B.J. Lieb. Calculating Velocity The velocity is calculated by entering the following: =(B3-B2) / (A3-A2). Then drag the.
Data Modeling and Parameter Estimation Nov 9, 2005 PSCI 702.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 15.
Correlation Correlation is the relationship between two quantitative variables. Correlation coefficient (r) measures the strength of the linear relationship.
Simple Linear Regression
Regression Regression: Mathematical method for determining the best equation that reproduces a data set Linear Regression: Regression method applied with.
Multipe and non-linear regression. What is what? Regression: One variable is considered dependent on the other(s) Correlation: No variables are considered.
Chapter 11: Inferential methods in Regression and Correlation
N-way ANOVA. 3-way ANOVA 2 H 0 : The mean respiratory rate is the same for all species H 0 : The mean respiratory rate is the same for all temperatures.
Lesson #32 Simple Linear Regression. Regression is used to model and/or predict a variable; called the dependent variable, Y; based on one or more independent.
Simple Linear Regression Statistics 700 Week of November 27.
Probability & Statistics for Engineers & Scientists, by Walpole, Myers, Myers & Ye ~ Chapter 11 Notes Class notes for ISE 201 San Jose State University.
Simple Linear Regression Analysis
This Week Continue with linear regression Begin multiple regression –Le 8.2 –C & S 9:A-E Handout: Class examples and assignment 3.
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Linear Regression and Linear Prediction Predicting the score on one variable.
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
Multiple Linear Regression Response Variable: Y Explanatory Variables: X 1,...,X k Model (Extension of Simple Regression): E(Y) =  +  1 X 1 +  +  k.
Hydrologic Statistics
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Simple Linear Regression Analysis Chapter 13.
1 Experimental Statistics - week 10 Chapter 11: Linear Regression and Correlation.
Transformations. Transformations to Linearity Many non-linear curves can be put into a linear form by appropriate transformations of the either – the.
Statistical Analysis Regression & Correlation Psyc 250 Winter, 2008.
Chapter 5 Z Transform. 2/45  Z transform –Representation, analysis, and design of discrete signal –Similar to Laplace transform –Conversion of digital.
Regression Regression relationship = trend + scatter
Regression Lesson 11. The General Linear Model n Relationship b/n predictor & outcome variables form straight line l Correlation, regression, t-tests,
Solutions to Tutorial 5 Problems Source Sum of Squares df Mean Square F-test Regression Residual Total ANOVA Table Variable.
PS 225 Lecture 20 Linear Regression Equation and Prediction.
Regression & Correlation. Review: Types of Variables & Steps in Analysis.
STA 286 week 131 Inference for the Regression Coefficient Recall, b 0 and b 1 are the estimates of the slope β 1 and intercept β 0 of population regression.
Assignment (1) WEEK 3.
Revision: Pivot Table 1. Histogram 2. Trends 3. Linear 4. Exponential
Chapter 6 (cont.) Difference Estimation. Recall the Regression Estimation Procedure 2.
Graphing with Computers Pressure and Density. What is Pressure? Pressure = Force = lbs area in 2 Let me propose the following experiment.
Environmental Modeling Basic Testing Methods - Statistics III.
 Relationship between education level, income, and length of time out of school  Our new regression equation: is the predicted value of the dependent.
Math 4030 – 11b Method of Least Squares. Model: Dependent (response) Variable Independent (control) Variable Random Error Objectives: Find (estimated)
Transformations.
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Differential Equations Linear Equations with Variable Coefficients.
1 1 Slide The Simple Linear Regression Model n Simple Linear Regression Model y =  0 +  1 x +  n Simple Linear Regression Equation E( y ) =  0 + 
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Interaction regression models. What is an additive model? A regression model with p-1 predictor variables contains additive effects if the response function.
1 Experimental Statistics - week 12 Chapter 11: Linear Regression and Correlation Chapter 12: Multiple Regression.
REGRESSION Stats 1 with Liz. AIMS By the end of the lesson, you should be able to… o Understand the method of least squares to find a regression line.
PreCalculus 1-7 Linear Models. Our goal is to create a scatter plot to look for a mathematical correlation to this data.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
رگرسیون چندگانه Multiple Regression
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
1 Objective Given two linearly correlated variables (x and y), find the linear function (equation) that best describes the trend. Section 10.3 Regression.
Regression and Correlation of Data Summary
A First Course on Kinetics and Reaction Engineering
Correlation and regression
Ch 12.2 Chemical Calculations
Linear Regression.
Example 1 5. Use SPSS output ANOVAb Model Sum of Squares df
Prediction of new observations
Section 10.2: Fitting a Linear Model to Data
Avogadro’s Number: 1 mole = 6.02 x 1023 particles
Nonlinear Fitting.
Discrete Least Squares Approximation
HW# : Complete the last slide
Aim: How do chemists calculate the mass of one mole of a substance?
CALCULATING EQUATION OF LEAST SQUARES REGRESSION LINE
Multivariate Analysis Regression
Multivariate Models Regression.
Regression and Correlation of Data
Chapter 12: Chemical Kinetics
Regression and Correlation of Data
Presentation transcript:

Some Examples

Example: daily auto accidents in Saskatchewan to 1984 to 1992 Data collected: 1.Date 2.Number of Accidents Factors we want to consider: 1.Trend 2.Yearly Cyclical Effect 3.Day of the week effect 4.Holiday effects

Trend This will be modeled by a Linear function : Y =  0 +  1 X (more generally a polynomial) Y =  0 +  1 X +  2 X 2 +  3 X 3 + …. Yearly Cyclical Trend This will be modeled by a Trig Polynomial – Sin and Cos functions with differing frequencies(periods) : Y =  1 sin(2  f 1 X) +  1 cos(2  f 2 X)  1 sin(2  f 2 X) +  2 cos(2  f 2 X) + …

Day of the week effect: This will be modeled using “dummy”variables :  1 D 1 +  2 D 2 +  3 D 3 +  4 D 4 +  5 D 5 +  6 D 6 D i = (1 if day of week = i, 0 otherwise) Holiday Effects Also will be modeled using “dummy”variables :

Independent variables X = day,D1,D2,D3,D4,D5,D6,S1,S2,S3,S4,S5, S6,C1,C2,C3,C4,C5,C6,NYE,HW,V1,V2,cd,T1, T2. Si=sin( *i*day). Ci=cos( *i*day). Dependent variable Y = daily accident frequency

Independent variables ANALYSIS OF VARIANCE SUM OF SQUARES DF MEAN SQUARE F RATIO REGRESSION RESIDUAL VARIABLES IN EQUATION FOR PACC. VARIABLES NOT IN EQUATION STD. ERROR STD REG F. PARTIAL F VARIABLE COEFFICIENT OF COEFF COEFF TOLERANCE TO REMOVE LEVEL. VARIABLE CORR. TOLERANCE TO ENTER LEVEL (Y-INTERCEPT ). day E E IACC D Dths D S D S D S D C D V S V S cd S T C C C C C NYE HW T ***** F LEVELS( 4.000, 3.900) OR TOLERANCE INSUFFICIENT FOR FURTHER STEPPING

D D D D D D Day of the week effects

NYE HW T Holiday Effects

S S S C C C C C Cyclical Effects

Example 2 Data on the reaction rate of the catalytic isomerization of л-pentane to isopentane versus the partial pressures of hydrogen, л- pentane, and isopentane are reproduced in the Table on the following slide

Isomerization is a chemical process in which a complex chemical is converted into more simple units, called isomers: catalytic isomerization employs catalysts to speed the reaction. The reaction rate depends on various factors, such as partial pressures of the products and the concentration of the catalyst.

The differential reaction rate was expressed as grams of isopentane produced per gram of catalyst per hour (hr -1 ), and the instantaneous partial pressure of a component was calculated as the mole fraction of the component times the total pressure, in pounds per square inch absolute (psia).

A common form of model for the reaction rate is the Hougen-Watson model: Fit this model