Revision: Pivot Table 1. Histogram 2. Trends 3. Linear 4. Exponential

Slides:



Advertisements
Similar presentations
Kin 304 Regression Linear Regression Least Sum of Squares
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
13- 1 Chapter Thirteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Inference for Regression
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
Regression Regression: Mathematical method for determining the best equation that reproduces a data set Linear Regression: Regression method applied with.
Introduction to Regression Analysis
Regression and Correlation
Chapter 12 Simple Regression
SIMPLE LINEAR REGRESSION
Gordon Stringer, UCCS1 Regression Analysis Gordon Stringer.
Chapter 3 Summarizing Descriptive Relationships ©.
Simple Linear Regression Analysis
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 CURVE.
SIMPLE LINEAR REGRESSION
C82MCP Diploma Statistics School of Psychology University of Nottingham 1 Linear Regression and Linear Prediction Predicting the score on one variable.
Simple Linear Regression Analysis
Chapter 2 – Simple Linear Regression - How. Here is a perfect scenario of what we want reality to look like for simple linear regression. Our two variables.
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
Linear Regression Analysis
Lecture 5 Correlation and Regression
Linear Regression.
Introduction to Linear Regression and Correlation Analysis
Linear Trend Lines Y t = b 0 + b 1 X t Where Y t is the dependent variable being forecasted X t is the independent variable being used to explain Y. In.
1 4. Curve fitting On many occasions one has sets of ordered pairs of data (x 1,...,x n, y 1,...,y n ) which are related by a concrete function Y(X) e.g.
12b. Regression Analysis, Part 2 CSCI N207 Data Analysis Using Spreadsheet Lingma Acheson Department of Computer and Information Science,
1.Max is a computer salesman. For each day that he works, he receives $50 plus a fixed commission amount per computer. Max is currently earning $122 for.
1 FORECASTING Regression Analysis Aslı Sencer Graduate Program in Business Information Systems.
Chapter 6 & 7 Linear Regression & Correlation
Linear Trend Lines = b 0 + b 1 X t Where is the dependent variable being forecasted X t is the independent variable being used to explain Y. In Linear.
SESSION Last Update 17 th June 2011 Regression.
INTRODUCTORY LINEAR REGRESSION SIMPLE LINEAR REGRESSION - Curve fitting - Inferences about estimated parameter - Adequacy of the models - Linear.
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
Statistical Methods Statistical Methods Descriptive Inferential
Chapter 8 Curve Fitting.
Regression Regression relationship = trend + scatter
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
Linear Trend Lines = b 0 + b 1 X t Where is the dependent variable being forecasted X t is the independent variable being used to explain Y. In Linear.
Regression Lesson 11. The General Linear Model n Relationship b/n predictor & outcome variables form straight line l Correlation, regression, t-tests,
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Chapter 11 Correlation and Simple Linear Regression Statistics for Business (Econ) 1.
7-3 Line of Best Fit Objectives
9.2 Linear Regression Key Concepts: –Residuals –Least Squares Criterion –Regression Line –Using a Regression Equation to Make Predictions.
Basic Statistics Linear Regression. X Y Simple Linear Regression.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Simple Linear Regression Analysis Chapter 13.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Tutorial Revision: Vlookup, Pivot Table 1. Text Functions 2. Data Input Forms 3. Descriptive statistics 4. Histogram 5. What-If-Analysis.
EXCEL DECISION MAKING TOOLS AND CHARTS BASIC FORMULAE - REGRESSION - GOAL SEEK - SOLVER.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
1 Objective Given two linearly correlated variables (x and y), find the linear function (equation) that best describes the trend. Section 10.3 Regression.
Chapter 4: Basic Estimation Techniques
Regression and Correlation of Data Summary
Linear Regression.
Correlation & Regression
Part 5 - Chapter
Part 5 - Chapter 17.
Linear Regression Special Topics.
Regression Analysis Module 3.
Kin 304 Regression Linear Regression Least Sum of Squares
BPK 304W Correlation.
S519: Evaluation of Information Systems
Part 5 - Chapter 17.
Correlation and Regression
Multivariate Analysis Regression
Regression & Prediction
Chapter 14 Multiple Regression
Presentation transcript:

Revision: Pivot Table 1. Histogram 2. Trends 3. Linear 4. Exponential Tutorial Revision: Pivot Table 1. Histogram 2. Trends 3. Linear 4. Exponential 5. What-If-Analysis

www.misuz.yolasite.com Computing > Download sales.xls Create a pivot table showing the total sales for each month (date) of the year, broken down by customer and sales rep Create a filter, using the sales rep

Outcomes: Applying functions to make forecasts in simple scenarios Apply the Linest function Apply the Logest function For preparation I used the following website: www.chandoo.org www.excelfunctions.net Excel help

Background: y = mx + b You can describe any straight line with the slope and the y-intercept: Slope (m): To find the slope of a line, often written as m, take two points on the line, (x1,y1) and (x2,y2); the slope is equal to (y2 - y1)/(x2 - x1). Y-intercept (b): The y-intercept of a line, often written as b, is the value of y at the point where the line crosses the y-axis.

Straight Line eqn: y = mx + b where, x is the independent variable; y is the dependent variable; m is the slope (gradient) of the line; b is a constant, equal to the value of y when x = 0.

Basic Description: Excel has functions to calculate the linear trend line through a given set of y-values and (optionally), a given set of x-values. The function then extends the linear trend line to calculate additional y-values for a further supplied set of new x-values.

Forecasting: The Excel built in Functions finds the linear trend by using the least squares method to calculate the line of best fit for a supplied set of y- and x- values. If there is a single range of x-values, the calculated line satisfies the simple straight line equation: y = mx + b

Scatter x-values: If there are multiple ranges of x-values, the line of best fit satisfies the following equation: y = m1x1 + m2x2 + ... + b where, the x's are the independent variable ranges; y is the dependent variable; the m's are constant multipliers for each x range; b is a constant.

LINEST Function: The accuracy of the line calculated by the LINEST function depends on the degree of scatter in your data. The more linear the data, the more accurate the LINEST model. LINEST uses the method of least squares for determining the best fit for the data. When you have only one independent x-variable, the calculations for m and b are based on the following formulas:

General: Excel allows us to look for trends and use the data natively for forecasting purposes: Linear: approximate a straight line Polynomial: approximate a polynomial function to a power Power: approximate a power function Logarithmic: approximate a Log function Exponential: approximate an Exponential function

Example: Linear eqn To calculate the slope , intercept and other statistical measures:

Regression Statistics:

To determine r2: The coefficient of determination: Compares estimated and actual y-values, and ranges in value from 0 to 1. If it is 1, there is a perfect correlation in the sample — there is no difference between the estimated y-value and the actual y-value. At the other extreme, if the coefficient of determination is 0, the regression equation is not helpful in predicting a y-value

Extrapolation: What is the value for Measure when the Day= 77? (0, ?) You can also use Trend Forecast

Exponential Fitting: In regression analysis, calculates an exponential curve that fits your data and returns an array of values that describes the curve. Because this function returns an array of values, it must be entered as an array formula. The equation for the curve is: y = b*m^x

Logest Function The Excel LOGEST function returns statistical information on the exponential curve of best fit, through a supplied set of x- and y- values. y = b * m^x x is the independent variable; y is the dependent variable; m is a constant base for the x value; b is a constant which is the value of y when x = 0.

Questions: What is the value for r2? (20,?)

Additional Stats: The standard error value for the base m is 0.014718308 The standard error value for the constant b is 0.070073164 The coefficient of determination is 0.990327432 The standard error for the y estimate is 0.114007527 The F statistic is 716.6960934 The number of degrees of freedom is 7 The regression sum of squares is 9.315412472 The residual sum of squares is 0.090984014

What-If-Analysis: PMT function Calculate the payment of a loan of R 1 000 000, redeemed at 10%pa, monthly over 15 years What-If: change The loan to 2 000 000: what is the new installment? Interest rate to 12%: new loan and installment? Goal Seek: what is the new loan amount if the monthly installment changes to R 15 000 Interactive toolbar: create a toolbar, linked to the term, changing over the range 10 to 20, in steps of 1 year 22