Linear Regression Using the TI-83 Calculator

Similar documents
DATA HANDLING AND ANALYSIS ON THE TI-82 AND TI-83/83 PLUS GRAPHING CALCULATORS:

Scatter Plot, Correlation, and Regression on the TI-83/84

How Does My TI-84 Do That

Academic Support Center. Using the TI-83/84+ Graphing Calculator PART II

You buy a TV for $1000 and pay it off with $100 every week. The table below shows the amount of money you sll owe every week. Week

Absorbance Spectrophotometry: Analysis of FD&C Red Food Dye #40 Calibration Curve Procedure

Getting to know your TI-83

Copyright 2007 by Laura Schultz. All rights reserved. Page 1 of 5

Tutorial for the TI-89 Titanium Calculator

Calibration and Linear Regression Analysis: A Self-Guided Tutorial

LAYOUT OF THE KEYBOARD

Summary of important mathematical operations and formulas (from first tutorial):

Review of Fundamental Mathematics

Copyright 2013 by Laura Schultz. All rights reserved. Page 1 of 7

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

The KaleidaGraph Guide to Curve Fitting

Dealing with Data in Excel 2010

price quantity q The Supply Function price quantity q

Years after US Student to Teacher Ratio

Scientific Graphing in Excel 2010

hp calculators HP 50g Trend Lines The STAT menu Trend Lines Practice predicting the future using trend lines

Calculator Notes for the TI-Nspire and TI-Nspire CAS

Statistics with List Editor Application for the TI-89 / TI-92 Plus

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

Using R for Linear Regression

ANALYSIS OF TREND CHAPTER 5

Guide for Texas Instruments TI-83, TI-83 Plus, or TI-84 Plus Graphing Calculator

USING A TI-83 OR TI-84 SERIES GRAPHING CALCULATOR IN AN INTRODUCTORY STATISTICS CLASS

Using Microsoft Excel to Plot and Analyze Kinetic Data

Graphing Calculator Workshops

Quadratic Functions Applications

7.7 Solving Rational Equations

1.2 Break-Even Analysis and Market Equilibrium

WEB APPENDIX. Calculating Beta Coefficients. b Beta Rise Run Y X

Quick Tour of Mathcad and Examples

Calculator Notes for the TI-89, TI-92 Plus, and Voyage 200

For another way to generate recursive sequences, see Calculator Note 1D.

Data Mining Part 5. Prediction

Tutorial on Using Excel Solver to Analyze Spin-Lattice Relaxation Time Data

Seasonal Adjustment for Short Time Series in Excel Catherine C.H. Hood Catherine Hood Consulting

0 Introduction to Data Analysis Using an Excel Spreadsheet

Introduction to the TI-Nspire CX

the Median-Medi Graphing bivariate data in a scatter plot

Probability Distributions

Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors. Content of the Precalculus Subpackage

Numerical integration of a function known only through data points

EL-9650/9600c/9450/9400 Handbook Vol. 1

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

SEQUENCES ARITHMETIC SEQUENCES. Examples

3.3. Solving Polynomial Equations. Introduction. Prerequisites. Learning Outcomes

Chapter Table & Graph

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities

Using SPSS, Chapter 2: Descriptive Statistics

Indiana State Core Curriculum Standards updated 2009 Algebra I

Pre-Calculus Graphing Calculator Handbook

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

Microsoft Excel Tutorial

Linear Regression. use waist

POLYNOMIAL AND MULTIPLE REGRESSION. Polynomial regression used to fit nonlinear (e.g. curvilinear) data into a least squares linear regression model.

PERFORMING REGRESSION ANALYSIS USING MICROSOFT EXCEL

Functions Modeling Change: A Precalculus Course. Marcel B. Finan Arkansas Tech University c All Rights Reserved

GeoGebra Statistics and Probability

A Guide to Using Excel in Physics Lab

Homework 11. Part 1. Name: Score: / null

UNIT PLAN: EXPONENTIAL AND LOGARITHMIC FUNCTIONS

I. Turn it on: Press É

Quickstart for Desktop Version

Algebra II End of Course Exam Answer Key Segment I. Scientific Calculator Only

Objectives. Materials

Georgia Standards of Excellence Curriculum Map. Mathematics. GSE 8 th Grade

Doing Multiple Regression with SPSS. In this case, we are interested in the Analyze options so we choose that menu. If gives us a number of choices:

LAB 11: MATRICES, SYSTEMS OF EQUATIONS and POLYNOMIAL MODELING

Using Your TI-89 in Elementary Statistics

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

Correlation key concepts:

The Center for Teaching, Learning, & Technology

Math 1. Month Essential Questions Concepts/Skills/Standards Content Assessment Areas of Interaction

How Many Drivers? Investigating the Slope-Intercept Form of a Line

Nominal and Real U.S. GDP

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

Algebra 2 Year-at-a-Glance Leander ISD st Six Weeks 2nd Six Weeks 3rd Six Weeks 4th Six Weeks 5th Six Weeks 6th Six Weeks

USING EXCEL ON THE COMPUTER TO FIND THE MEAN AND STANDARD DEVIATION AND TO DO LINEAR REGRESSION ANALYSIS AND GRAPHING TABLE OF CONTENTS

Creating a table of contents quickly in Word

Answer Key Building Polynomial Functions

Module 6: Introduction to Time Series Forecasting

RUTHERFORD HIGH SCHOOL Rutherford, New Jersey COURSE OUTLINE STATISTICS AND PROBABILITY

Nonlinear Regression Functions. SW Ch 8 1/54/

CHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression

Time Series and Forecasting

College Readiness LINKING STUDY

Clovis Community College Core Competencies Assessment Area II: Mathematics Algebra

10.1. Solving Quadratic Equations. Investigation: Rocket Science CONDENSED

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

Notes on the SHARP EL-738 calculator

2 Describing, Exploring, and

South Carolina College- and Career-Ready (SCCCR) Algebra 1

Introduction to Quadratic Functions

Transcription:

RIT Calculator Site Linear Regression Using the TI-83 Calculator Overview The following ordered pairs (t, N) of data values are obtained. t N 5 119.94 10 166.65 15 213.32 20 256.01 25 406.44 30 424.72 35 591.15 40 757.96 45 963.36 50 1226.58 Using these data we wish to estimate an empirical functional relationship N(t) between t and N. Regression is a statistical method that is used to estimate a functional relationship between variables when the underlying data are noisy. It assumes that for each fixed t, the observed value of N is a single realization from a distribution of N-values where the distribution is centered on the true functional relationship N(t). The purpose of regression is to construct an empirical functional relationship that best explains the observed data. Because it is always possible to reproduce the data exactly by choosing a sufficiently complicated function, e.g., an n th degree polynomial can be constructed that exactly passes through any set of n + 1 distinct points, we typically search for the simplest functional relationship that approximately reproduces the data. The TI-83 can be used to fit various empirical models: linear (using least squares or median-median regression), polynomial (quadratic, cubic, and quartic), exponential, logarithmic, power, logistic, and sinusoidal. In what follows we fit linear and polynomial models to data and plot the results. Enter the Data Press the STAT key and choose EDIT 1:Edit (Fig. 1). This brings up the edit window (Fig. 2). On the TI-83, data are entered into list variables. There are six default list variables available, denoted L1, L2, L3, L4, L5, and L6. Their names appear as the 2 nd functions of the numeric keys 1, 2, 3, 4, 5, and 6. In using these list variables their names must be pasted in from the keyboard; they cannot be typed using ordinary alphanumeric characters. You may also choose your own names for the lists by inserting a column and then typing the name at the Name= prompt. Fig. 1 Choose Edit to Enter Data Fig. 2 The Edit Window

RIT Calculator Site Linear Regression Using the TI-83 Calculator 2 Enter the data values one column at a time pressing ENTER after each data value. Place the t-values in L1 and N -values in L2. Fig. 3 shows the first seven observations. Note: Since the t-values follow a distinct pattern they start at 5, end at 50, and increment by 5 each time we could use the List function seq to generate them rather than enter them by hand. seq is found in the OPS submenu of the LIST menu. Issuing the command seq(x,x,5,50,5) L1 at the home screen will store the correct values in the list variable L1. The first argument, X, is the generation formula, the second argument, X, is the variable, the third argument, 5, is the starting value, the fourth argument, 50, is the ending value, and the fifth argument, 5, is the increment. To decide which empirical model to fit, create a scatter plot of the data. Begin by turning Stat Plots on. Press STAT PLOT (= 2nd Y= ) to bring up the display shown in Fig. 4. With the first plot selected, press ENTER to bring up the settings for this plot (Fig. 5). Change the first option to On. The default settings for the remaining options will produce a scatter plot using L1 as the x-variable and L2 as the y-variable. Mark defines the symbol type. Fig. 3 Entering Data Fig. 4 Stat Plots Menu Fig. 5 Stat Plot Settings turn Plot1 on Define the data range for the plot. Press WINDOW and enter the settings shown in Fig. 6. Next press Y=. If there are any functions displayed be sure they are deselected. A function is selected if the = sign is displayed in reverse video =. (In Fig. 7, Y1 is selected while Y2 is not.) To deselect a function, use the arrow keys to move the blinking cursor directly on top of the = sign of the selected function. Press ENTER to deselect the function. (Pressing ENTER again will reselect it.) Finally, press GRAPH to produce the scatter plot (Fig. 8). Fig. 6 Window Settings Fig. 7 Deselecting Functions Fig. 8 Scatter Plot of Data Y1 is selected. Y2 is not.

RIT Calculator Site Linear Regression Using the TI-83 Calculator 3 Fig. 9 Fitting a Linear Function The scatter plot in Fig. 8 suggests that a straight line relationship is reasonable. Press the STAT key and choose CALC 4:LinReg(ax+b) as shown in Fig. 9. (Note: choosing option 8: LinReg(a+bx) will produce the same results as choosing option 4 except that the labels for the intercept and slope will be reversed. It doesn t matter which of these two options you choose.) This pastes LinReg(ax+b) to the home screen. Linear Regression Option Fig. 10 Linear Regression Arguments Fig. 11 Locating the Yn variables storage location for regression function y-variable x-variable By default it is assumed that the x-variable is in L1 and the y-variable is in L2, so pressing ENTER at this point will produce the correct results. A better choice is to list these as explicit arguments to the function because this permits the specification of an additional argument for storing the regression function. The order of arguments is x- variable, y-variable, storage location (Fig. 10). Thus issuing the command LinReg(ax+b) L1,L2,Y1 will use L1 as the x-list, L2 as the y-list, and overwrite the contents of Y1 with the regression function and automatically select Y1 for plotting. Notice that the arguments are separated by commas. L1, L2, and Y1 are special characters and cannot be entered by typing ordinary letters and numbers. L1 is the 2 nd function of numeric key 1, L2 is the 2 nd function of numeric key 2, and Y1 is obtained by pressing VARS, choosing Y-VARS 1:Function, and then FUNCTION 1:Y1. (See Fig. 11 and 12.) Once the command and its arguments are pasted to the screen, press ENTER to produce the regression results shown in Fig. 13. Fig. 12 Function variables Fig. 13 Regression Results Fig. 14 Regression Line and Scatter Plot The values of a and b are displayed on the screen along with model that was fit. Based on the output the fitted model is N(t) = 130.17 + 23.374t. Since the regression function is now stored in Y1 and is selected, pressing GRAPH will produce a scatter plot with the regression line superimposed (Fig. 14).

RIT Calculator Site Linear Regression Using the TI-83 Calculator 4 Fig. 15 Locating Statistics Variables Fig. 16 Fig. 17 for the linear r 2 and R 2 model r 2 Coefficient of determination for straight line models Coefficient of determination for other models Qualitatively it would appear from the graph in Fig. 12 that a linear function is a reasonable model. The standard quantitative measure of the usefulness of the regression model is R 2, the coefficient of determination. R 2 measures the fraction of the variability in y that is explained by its linear relationship to x and can take values between 0 and 1. The TI-83 calculates this quantity automatically. Confusingly, for simple straight line models such as this one, the TI-83 stores the coefficient of determination in a variable it calls r 2. For more complicated models, it stores the coefficient of determination in the variable R 2. To access either one press VARS and then select from the VARS submenu option 5:Statistics (Fig. 15). In the Statistics window that appears move the cursor to the third column to display the EQ menu. The eighth option, 8:r 2, is where the coefficient of determination is stored for this model (Fig. 16). Press ENTER to paste the value to the screen and then ENTER again to see its contents (Fig. 17). From the output we conclude that approximately 91.8% of the variability in N is explained by its linear relationship to t. (If the fit were perfect r 2 would equal 1.) Fig. 18 Fitting a Parabolic Curve Fig. 19 Quadratic Regression Arguments Fig. 20 Quadratic Regression Results Fitting a Quadratic Function The scatter plot in Fig. 8 reveals a slight curvilinear trend to the data suggesting a polynomial model might be appropriate. Press the STAT key and choose CALC 5:QuadReg (Fig. 18). This pastes QuadReg to the home screen. (QuadReg fits a second degree polynomial. Third and fourth degree polynomials can be fit by choosing CubicReg and QuartReg respectively.) It is assumed by default that the x-variable is stored in list variable L1 and the y- variable is stored in list variable L2. Since this is the case in this example, pressing ENTER at this point will produce the correct results. If we wish to store the regression function in order, e.g., to plot it, a better choice is to list the arguments explicitly. The order of arguments is x-variable, y-variable, storage location (Fig. 19). Thus issuing the command QuadReg L1,L2,Y2 will use L1 as the x-list, L2 as the y-list, and overwrite the

RIT Calculator Site Linear Regression Using the TI-83 Calculator 5 contents of Y2 with the regression function and automatically select Y2 for plotting. As was described for the linear model, L1, L2, and Y2 must be pasted in by making the appropriate keyboard and menu choices. Press ENTER to produce the regression results shown in Fig. 20. The values of a, b, and c are displayed on the screen along with model that was 2 fit. Based on the output the fitted model is Nt () = 0.. 531t - 5 807t + 161 637. Since the quadratic regression function is now stored in Y2 and is selected, and the straight-line regression function is still stored in Y1, pressing GRAPH will produce a scatter plot with the quadratic regression function and linear regression function superimposed on a scatter plot of the data (Fig. 21). To obtain the coefficient of determination, R 2, for the quadratic model press VARS and then select VARS 5:Statistics. In the Statistics screen that appears move to the EQ menu. The ninth option, 9:R 2, is the coefficient of determination for this model (Fig. 22). Press ENTER to paste the value to the screen and then ENTER again to see its contents (Fig. 23). From R 2 we conclude that approximately 99.4% of the variability in N is explained by its quadratic relationship to t. Fig. 21 Graph of Linear and Fig. 22 Choosing Quadratic Quadratic Regressions Model R 2 Fig. 23 R 2 for the Quadratic Model Coefficient of determination for quadratic model Saving the Regression Function As part of fitting the regression model, the regression functions were saved as the function variables Y1 and Y2. These regression functions can be integrated, differentiated, etc. just like ordinary functions. It is also the case that the current regression function is stored in the variable RegEQ. It can be accessed by pressing VARS and then selecting VARS 5:Statistics. In the Statistics screen that appears move to the EQ menu. The first option, 1:RegEQ, contains the current regression function (Fig. 24) and can be pasted to the screen (Fig. 25) or stored in a function variable. Fig. 24 Choosing the Stored Regression Function Fig. 25 The Current Contents of RegEQ