Now here is the important step



Similar documents
Desktop Management. Desktop Management Tools

Confidence Intervals for One Mean

I. Chi-squared Distributions

Lesson 15 ANOVA (analysis of variance)

Lesson 17 Pearson s Correlation Coefficient

Confidence Intervals for Linear Regression Slope

GCSE STATISTICS. 4) How to calculate the range: The difference between the biggest number and the smallest number.

1 Correlation and Regression Analysis

Output Analysis (2, Chapters 10 &11 Law)

Definition. A variable X that takes on values X 1, X 2, X 3,...X k with respective frequencies f 1, f 2, f 3,...f k has mean

Case Study. Normal and t Distributions. Density Plot. Normal Distributions

Time Value of Money, NPV and IRR equation solving with the TI-86

Measures of Spread and Boxplots Discrete Math, Section 9.4

THE REGRESSION MODEL IN MATRIX FORM. For simple linear regression, meaning one predictor, the model is. for i = 1, 2, 3,, n

One-sample test of proportions

PSYCHOLOGICAL STATISTICS

Exam 3. Instructor: Cynthia Rudin TA: Dimitrios Bisias. November 22, 2011

Mathematical goals. Starting points. Materials required. Time needed

Center, Spread, and Shape in Inference: Claims, Caveats, and Insights

Non-life insurance mathematics. Nils F. Haavardsson, University of Oslo and DNB Skadeforsikring

hp calculators HP 12C Statistics - average and standard deviation Average and standard deviation concepts HP12C average and standard deviation

ODBC. Getting Started With Sage Timberline Office ODBC

Chapter 7: Confidence Interval and Sample Size

I. Why is there a time value to money (TVM)?

5: Introduction to Estimation

Time Value of Money. First some technical stuff. HP10B II users

Repeating Decimals are decimal numbers that have number(s) after the decimal point that repeat in a pattern.

CHAPTER 3 THE TIME VALUE OF MONEY

This document contains a collection of formulas and constants useful for SPC chart construction. It assumes you are already familiar with SPC.

Z-TEST / Z-STATISTIC: used to test hypotheses about. µ when the population standard deviation is unknown

How to set up your GMC Online account

Mann-Whitney U 2 Sample Test (a.k.a. Wilcoxon Rank Sum Test)

Incremental calculation of weighted mean and variance

Hypothesis testing. Null and alternative hypotheses

Confidence Intervals. CI for a population mean (σ is known and n > 30 or the variable is normally distributed in the.

Determining the sample size

Chapter 14 Nonparametric Statistics

Confidence Intervals

Soving Recurrence Relations

Exploratory Data Analysis

CS103X: Discrete Structures Homework 4 Solutions

THE ARITHMETIC OF INTEGERS. - multiplication, exponentiation, division, addition, and subtraction

HCL Dynamic Spiking Protocol

.04. This means $1000 is multiplied by 1.02 five times, once for each of the remaining sixmonth

Normal Distribution.

Biology 171L Environment and Ecology Lab Lab 2: Descriptive Statistics, Presenting Data and Graphing Relationships

5.4 Amortization. Question 1: How do you find the present value of an annuity? Question 2: How is a loan amortized?

In order to print in ESC/P mode, the serial connection should be activated.

Maximum Likelihood Estimators.

1. C. The formula for the confidence interval for a population mean is: x t, which was

AP Calculus AB 2006 Scoring Guidelines Form B

Trigonometric Form of a Complex Number. The Complex Plane. axis. ( 2, 1) or 2 i FIGURE The absolute value of the complex number z a bi is

, a Wishart distribution with n -1 degrees of freedom and scale matrix.

Engineering Data Management

Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Annuities Under Random Rates of Interest II By Abraham Zaks. Technion I.I.T. Haifa ISRAEL and Haifa University Haifa ISRAEL.

Overview of some probability distributions.

Bio-Plex Manager Software

University of California, Los Angeles Department of Statistics. Distributions related to the normal distribution

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES


Properties of MLE: consistency, asymptotic normality. Fisher information.

iprox sensors iprox inductive sensors iprox programming tools ProxView programming software iprox the world s most versatile proximity sensor

Neolane Reporting. Neolane v6.1

Unit 8: Inference for Proportions. Chapters 8 & 9 in IPS

BaanERP. BaanERP Windows Client Installation Guide

LECTURE 13: Cross-validation

Baan Service Master Data Management

Chapter 5 Unit 1. IET 350 Engineering Economics. Learning Objectives Chapter 5. Learning Objectives Unit 1. Annual Amount and Gradient Functions

Domain 1: Configuring Domain Name System (DNS) for Active Directory

Chapter 6: Variance, the law of large numbers and the Monte-Carlo method

Approximating Area under a curve with rectangles. To find the area under a curve we approximate the area using rectangles and then use limits to find

MEI Structured Mathematics. Module Summary Sheets. Statistics 2 (Version B: reference to new book)

1 Computing the Standard Deviation of Sample Means

Department of Computer Science, University of Otago

*The most important feature of MRP as compared with ordinary inventory control analysis is its time phasing feature.

Practice Problems for Test 3

In nite Sequences. Dr. Philippe B. Laval Kennesaw State University. October 9, 2008

Domain 1: Designing a SQL Server Instance and a Database Solution

Inference on Proportion. Chapter 8 Tests of Statistical Hypotheses. Sampling Distribution of Sample Proportion. Confidence Interval

3. Greatest Common Divisor - Least Common Multiple

Domain 1: Identifying Cause of and Resolving Desktop Application Issues Identifying and Resolving New Software Installation Issues

where: T = number of years of cash flow in investment's life n = the year in which the cash flow X n i = IRR = the internal rate of return

Quadrat Sampling in Population Ecology

CHAPTER 7: Central Limit Theorem: CLT for Averages (Means)

NATIONAL SENIOR CERTIFICATE GRADE 12

The following example will help us understand The Sampling Distribution of the Mean. C1 C2 C3 C4 C5 50 miles 84 miles 38 miles 120 miles 48 miles

CS100: Introduction to Computer Science

Hypergeometric Distributions

Math C067 Sampling Distributions

Example 2 Find the square root of 0. The only square root of 0 is 0 (since 0 is not positive or negative, so those choices don t exist here).

Simple Annuities Present Value.

Convexity, Inequalities, and Norms

A GUIDE TO LEVEL 3 VALUE ADDED IN 2013 SCHOOL AND COLLEGE PERFORMANCE TABLES

BENEFIT-COST ANALYSIS Financial and Economic Appraisal using Spreadsheets

NATIONAL SENIOR CERTIFICATE GRADE 11

DAME - Microsoft Excel add-in for solving multicriteria decision problems with scenarios Radomir Perzina 1, Jaroslav Ramik 2

Sequences and Series Using the TI-89 Calculator

Serial ATA PCI Host Adapter AEC-6290/6295

Transcription:

LINEST i Excel The Excel spreadsheet fuctio "liest" is a complete liear least squares curve fittig routie that produces ucertaity estimates for the fit values. There are two ways to access the "liest" fuctioality; through the fuctio directly ad through the "aalysis tools" set of macros. These istructios cover usig "liest" as a spreadsheet fuctio. Usig liest i your spreadsheets is very easy, after you master the cocept of a array fuctio. Array fuctios are fuctios that while etered ito a sigle spreadsheet cell produce results that fill several cells. The steps outlied below take you set-by-step through the process of liear curve fittig. Step 1. Type i your data i two colums, oe for the x variables ad oe for the y. You ca use ay labels you would like. "x" ad "y" are used i the example at right for coveiece. Step 2. Select the area that will hold the output of the array formula. For "liest" you should drag to form a 5 row by 2 colum data array. Step 3. Click i the formula bar at the top of the scree. Now press the fuctio wizard butto. This butto is i the formula bar ad is labeled "fx". A two-part scroll box will appear; i the left scroll box click o "Statistical" ad i the right click o "LINEST". Next click o "Next>." The widow show below will appear. O your spreadsheet select the cells cotaiig the y values by

draggig i the origial spreadsheet usig the mouse. Click i the "kow_x's" dialog box, ad select the cells cotaig the x values. Type i "TRUE" i the last two dialog boxes. The first TRUE idicates that you wish the lie to be i the form y=mx+b with a o-zero itercept. The secod TRUE specifies that you wish the error estimates to be listed. The Fuctio Wizard dialog box should the appear as below. Step 4. Click o "Fiish." The formula bar should the appear as below, although your y ad x cell rages may be differet, of course. If the values are icorrect, you ca edit them as you would ormally. Step 5. Now here is the importat step. LINEST is a array fuctio, which meas that whe you eter the formula i oe cell, multiple cells will be used for the output of the fuctio. To specify that LINEST is a array fuctio do the followig. Highlight the etire formula, icludig the "=" sig, as show above. O the Macitosh, ext, hold dow the apple key ad press "retur." O the PC hold dow the Ctrl ad Shift keys ad press Eter. Excel adds "{ }" brackets aroud the formula, to show that it is a array. Note that you caot type i the "{ }" characters yourself; if you do Excel will treat the cell cotets as characters ad ot a formula. Highlightig the full formula ad typig the apple key or Ctrl + Shift ad "retur" is the oly way to eter a array formula. The least squares results should be prited as show below. The labels i the first ad last colum are't provided by the LINEST fuctio. We've added them to show the meaig of each cell. For example, the slope is 2.629±0.085 ad the itercept is -3.33 ± 0.41.

x y 2 2.3 3 4.5 4 6.7 5 9.8 6 12.3 7 15.4 slope 2.62857143-3.3285714 itercept ± 0.084997 0.40910554 ± r 2 0.995835 0.35556796 s(y) F 956.384181 4 degrees of freedom regressio ss 120.914286 0.50571429 residual ss Step 6: You should ow evaluate the model that you have built. The r 2 value is ofte used for this purpose, but it is oly a rough idicator of the goodess of fit. The r 2 value is calculated from the total sum of squares, which is the sum of the squared deviatios of the origial data from the mea: total ss = (yi -yav) 2 ) ad the regressio sum of squares, which is the sum of the squared deviatios of the fit values from the mea: regressio ss = (y^i -y av ) 2 Givig: r 2 = regressio ss total ss = (y^ -y av ) 2 ( y i -y av ) 2 Values close to oe are good. The ucertaities i the slope ad itercept are much better for judgig the quality of the fit. I the example the ucertaity i the slope is 0.085/2.629*100 = 3% ad the ucertaity i the itercept is 12%, which is oly about two sigificat figures i each. The ucertaities i the slope ad itercept are ot as good as the r 2 of 0.996 might have idicated! A eve better statistical test of the goodess of fit is to use the Fisher F-statistic. The F-statistic is the ratio of the variace i the data explaied by the liear model divided by the variace uexplaied by the model. The F-statistic is calculated from the regressio sum of squares ad the residual sum of squares. The residual sum of squares is the sum of the squared residuals: residual ss = (y i -y^i) 2 = r 2 i Dividig by the degrees of freedom, gives the variace of the y values

r 2 i s 2 y = 2 The regressio sum of squares, the residual sum of squares, ad the stadard deviatio of the y values, s(y) are all listed i the liest output. The F-statistic is the the ratio of the variaces: F= variace explaied variace uexplaied = regressio ss/v ( (y^i -y av ) 2 ) 1 /v1 residual ss/v = 2 ( (y i -y^i) 2 ) /v2 You use the F-statistic uder the ull hypothesis that the data is a radom scatter of poits with zero slope. Critical values of the F statistic are listed i stadard statistics texts, the CRC Hadbook, ad Quatitative Aalysis texts. If the F-statistic is greater tha the F-critical value, the ull hypothesis fails ad the liear model is sigificat. For the degrees of freedom, which are abbreviated i most tables as v 1 ad v 2,usev 1 =1adv 2 =-k,wherekis the umber of variables i the regressio aalysis icludig the itercept ad is the umber of data poits. The value for v 2 is listed as the degrees of freedom i the liest output. A small part of the F-table is show at right for a α value of 0.05, that is, 95% cofidece. For the example above, v 1 =1adv 2 =6 2=4.The F-critical value is 7.71. The F-statistic for our example is 956.38, which is much greater tha the F-critical value. You are 95% sure that your data is ot a radom scatter of poits ad that the regressio is justified. F-critical values at α=0.05 v 2 F(v 1 =1) 1 161.5 2 18.51 3 10.13 4 7.71 5 6.61 6 5.99 7 5.59 8 5.32 Step 7. You will ow eed to calculate the fit y values, y^ i, which are the values that lie o the lie at the give x values. You ca use the TREND array fuctio for this, but it is just as easy to simply calculate the fit y values directly. Start a ew colum ext to the y values. I this ew colum eter the formula that gives y^ i =mx i + b, with the slope ad itercept from the LINEST output:

Step 8. You ca ow use the "Chart Wizard" to help graph the results: first select the three colums i your spreadsheet. Iclude the colum labels. Click o the Chart Wizard ico: The cursor will chage shape idicatig that you are to drag o your spreadsheet where you wat the plot to appear. Remember for lab reports that charts should be at least half a page. The Wizard will the take you through settig up your graph. Do a scatter graph, ad choose the format that has plot symbols, but ot coectig lies. Step 9. You ow eed to replace the plottig symbols for the fit y values poits with coectig lies. Double click o oe of the fit y value data poits. The "Format Data Series" dialog box will appear. Chage the default settigs to o plot symbol (marker) ad coectig lies as show below: The plot should ow appear as at right. Charts ad spreadsheet cells ca easily be copied ad pasted ito Word documets. 16 14 12 10 8 6 LINEST Tutorial Plot y fit y 4 2 0 0 2 4 6 8 x (uits?)

Addig Error Bars to Plots After you have your graph displayed you ca easily add error bars. Double click o oe of the plottig symbols for your data. The dialog box show below will appear. Click o the "Y Error Bars" tab. Click o the "Both" ico. Next click o the "Custom" butto. Next click i the "+" box ad the select the cell i your spreadsheet that cotais the s(y) value. Repeat this last step i the "-" box. Click o "OK" ad the error bars should appear o your plot. The fial chart, i all its glory looks like this: 16 LINEST Tutorial Plot 14 12 10 8 6 y fit y 4 2 0 0 2 4 6 8 x (uits?)