Example 11.4 Demand and Cost for Electricity Modeling Possibilities.

Slides:



Advertisements
Similar presentations
Example 12.2 Multicollinearity | 12.3 | 12.3a | 12.1a | 12.4 | 12.4a | 12.1b | 12.5 | 12.4b a12.1a a12.1b b The Problem.
Advertisements

Example 11.2b Multiple Regression | 11.2 | 11.2a | 11.1a | 11.2b | 12.3 | a 11.1a11.2b12.3 Background Information n In Example 11.2 we.
Scatterplots and Correlation
Example 2.2 Estimating the Relationship between Price and Demand.
Estimating Total Cost for A Single Product
Guide to Using Minitab 14 For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 8th Ed. Chapter 15: Multiple.
Example 16.1 Forecasting Sales at Best Chips. Thomson/South-Western 2007 © South-Western/Cengage Learning © 2009Practical Management Science, Revised.
Chapter 8 Linear Regression.
Chapter 8 Linear Regression © 2010 Pearson Education 1.
Describing the Relation Between Two Variables
Example 7.1 Pricing Models | 7.3 | 7.4 | 7.5 | 7.6 | 7.7 | 7.8 | 7.9 | 7.10 | Background Information n The Madison.
CHAPTER 3 Describing Relationships
| 13.1a | 13.2a | 13.2b | 13.3 | 13.3a | 13.4 | 13.3b | 13.5 | a13.2a13.2b a b Dummy Variables n Some potential.
Example 16.3 Estimating Total Cost for Several Products.
Regression, Residuals, and Coefficient of Determination Section 3.2.
Simple Linear Regression
Descriptive Methods in Regression and Correlation
+ Hw: pg 788: 37, 39, 41, Chapter 12: More About Regression Section 12.2b Transforming using Logarithms.
Simple Regression Scatterplots: Graphing Relationships.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-3 Regression.
Relationship of two variables
Transforming to achieve linearity
Modeling Possibilities
1 Chapter 3: Examining Relationships 3.1Scatterplots 3.2Correlation 3.3Least-Squares Regression.
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.
Chapter 10 Correlation and Regression
1 Everyday is a new beginning in life. Every moment is a time for self vigilance.
Summarizing Bivariate Data
Example 11.2 Explaining Overhead Costs at Bendrix Scatterplots: Graphing Relationships.
Notes Bivariate Data Chapters Bivariate Data Explores relationships between two quantitative variables.
Basic Concepts of Correlation. Definition A correlation exists between two variables when the values of one are somehow associated with the values of.
Relationships If we are doing a study which involves more than one variable, how can we tell if there is a relationship between two (or more) of the.
Describing Relationships Using Correlations. 2 More Statistical Notation Correlational analysis requires scores from two variables. X stands for the scores.
Bivariate Data Analysis Bivariate Data analysis 4.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 3 Describing Relationships 3.2 Least-Squares.
Example 13.2 Quarterly Sales of Johnson & Johnson Regression-Based Trend Models.
WARM-UP Do the work on the slip of paper (handout)
Agresti/Franklin Statistics, 1 of 88  Section 11.4 What Do We Learn from How the Data Vary Around the Regression Line?
Section 2.6 – Draw Scatter Plots and Best Fitting Lines A scatterplot is a graph of a set of data pairs (x, y). If y tends to increase as x increases,
Chapter 9: Correlation and Regression Analysis. Correlation Correlation is a numerical way to measure the strength and direction of a linear association.
Correlation – Recap Correlation provides an estimate of how well change in ‘ x ’ causes change in ‘ y ’. The relationship has a magnitude (the r value)
Regression Analysis: Part 2 Inference Dummies / Interactions Multicollinearity / Heteroscedasticity Residual Analysis / Outliers.
Residuals Recall that the vertical distances from the points to the least-squares regression line are as small as possible.  Because those vertical distances.
LEAST-SQUARES REGRESSION 3.2 Least Squares Regression Line and Residuals.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Chapter 10 Correlation and Regression 10-2 Correlation 10-3 Regression.
Statistics: Analyzing 2 Quantitative Variables MIDDLE SCHOOL LEVEL  Session #2  Presented by: Dr. Del Ferster.
CHAPTER 3 Describing Relationships
Discovering Mathematics Week 9 – Unit 6 Graphs MU123 Dr. Hassan Sharafuddin.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Example 13.3 Quarterly Sales at Intel Regression-Based Trend Models.
Copyright © 2009 Pearson Education, Inc. Chapter 8 Linear Regression.
Copyright © 2009 Pearson Education, Inc. 7.1 Seeking Correlation LEARNING GOAL Be able to define correlation, recognize positive and negative correlations.
Chapter 4 More on Two-Variable Data. Four Corners Play a game of four corners, selecting the corner each time by rolling a die Collect the data in a table.
1 Objective Given two linearly correlated variables (x and y), find the linear function (equation) that best describes the trend. Section 10.3 Regression.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Ch. 10 – Linear Regression (Day 2)
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 7 LINEAR RELATIONSHIPS
Dummy Variables Some potential explanatory variables are categorical and cannot be measured on a quantitative scale. However, we often need to use these.
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
3.2 – Least Squares Regression
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
CHAPTER 3 Describing Relationships
Presentation transcript:

Example 11.4 Demand and Cost for Electricity Modeling Possibilities

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Objective To see whether the cost of supplying electricity is a nonlinear function of demand, and if it is, what form the nonlinearity takes.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b POWER.XLS n The Public Service Electric Company produces different quantities of electricity each month, depending on the demand. n This file lists the number of units of electricity produced (Units) and the total cost of producing these (Cost) for a 36-month period. n The data set appears on the next slide. n How can regression be used to analyze the relationship between Cost and Units?

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Data for Electric Power

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution n A good place to start is with a scatterplot of Cost versus Units.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n The scatterplot indicates a definite positive relationship and one that is nearly linear. n However, there is also some evidence of curvature in the plot. The points increase slightly less rapidly as Units increase from left to right. n In economic terms, there may be economics of scale, where marginal cost of the electricity decreases as more units of electricity are produced. n Nevertheless, we use regression to estimate a linear relationship between Cost and Units.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n The resulting regression equation is Predicted Cost = 23, Units n The corresponding R 2 and s e are 73.6% and $2734. We also requested a scatterplot of the residuals versus the fitted values. The scatterplot is on the next slide. Obtaining this scatterplot is always a good idea if nonlinearity is suspected. n The sign of nonlinearity in this plot is that the residuals to the far left and the far right are all negative, whereas the majority of the residuals in the middle are positive.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Residuals from a Straight-Line Fit

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n Admittedly the pattern is far from perfect - there are a few negatives in the middle - but the plot does hint at nonlinear behavior. n The negative-positive-negative behavior of the residuals suggests a parabola; that is, a quadratic equation with the square of Units included in the equation. n We first create a new variable Sqr_Units in the data set. This can be done manually or using StatPro’s Transform Variables menu item.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n Then we use multiple regression to estimate the equation for Cost with both explanatory variables, Units and Sqr_Units, included. n The resulting equation from the output on the next slide is Predicated Cost = Units Sqr_Units n Note that R 2 has increase to 82.2% and s e has decreased to $2281.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Regression Output with Squared Term Included

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n One way to see how this regression equation fits the scatterplot of Costs versus Units is to use Excel’s trendline option. n To do so activate the scatterplot, use the Chart/Add Trendline menu item, click the Type tab and select the Polynormal type or order 2, that is a quadratic. n A graph of the equation is superimposed on the scatterplot on the following slide. It shows reasonably good fit, plus an obvious curvature.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Quadratic Fit Scatterplot

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n The main downside to a quadratic regression equation is that there is no easy interpretation of the coefficients of Units and Sqr_Units. n All we can say is that the terms in the equation combine to explain the nonlinear relationship between units produced and total cost. n A final note about the equation concerns the coefficient of Sqr_Units. –First, the fact that it is a negative make the parabola bend downward. This produces the decreasing marginal cost behavior, where every extra unit of electricity incurs a smaller cost.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued –Second, we shouldn’t be fooled by the small magnitude of this coefficient. Remember that it is the coefficient of Units squared, which is a large quantity. Therefore, the effect of the product Sqr_Units is sizable. n One other possibility we might examine is a logarithmic fit. n In this case we create a new variable Log_Units, the natural logarithm of Units, and then regress Cost against the single variable Log_Units.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n To create the new variable we can again use StatPro’s Transform Variable menu item and then we can superimpose a logarithmic curve on the scatterplot of Cost versus Units by using the trendline feature. n This curve appears in the scatterplot on the next slide. n To the naked eye, it appears to be similar, and about as good a fit as the quadratic curve.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Logarithmic Fit Scatterplot

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n The resulting regression equation is Predicted Cost = -63, ,654Log_Units n The values of R 2 and s e are 79.8% and n These latter values indicate that the logarithmic fit is not quite as good as the quadratic fit. n However, the advantage of the logarithmic equation is that it is easier to interpret.

| 11.2 | 11.1a | 11.2a | 11.2b | 11.3 | 11.3a | 11.3b | 11.5 | a11.2a11.2b a11.3b Solution -- continued n In this case, where the log of the explanatory variable is used, we can interpret its coefficient as follows. –Suppose Units increases by 1%, for example from 600 to 606. Then the equation implies that the expected Cost will increase approximately $ –In words, every 1% increase in Units is accompanied by an expected $ increase in Cost. –Note that for larger values of Units, a 1% increase represents a larger absolute increase. But each such 1% increase entails the same increase in Cost. This is another way of describing the decreasing marginal cost property.