Polynomial Models Studio October 27, 2006

Similar documents
Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Selecting the Right Model Studio - Excel 2007 Version

Math 1525: Lab 4 Spring 2002

Excel For Algebra. Conversion Notes: Excel 2007 vs Excel 2003

Introduction to creating and working with graphs

Graphing with Excel. Mr. Heinrich/Mr. Flock R.O.W.V.A. High School, Oneida, IL Physics 4B

Reference and Style Guide for Microsoft Excel

Geology Geomath Estimating the coefficients of various Mathematical relationships in Geology

Creating a Basic Chart in Excel 2007

[1] CURVE FITTING WITH EXCEL

Describe the Squirt Studio

A Brief Word About Your Exam

Graphical Analysis of Data using Microsoft Excel [2016 Version]

Using Excel for Graphical Analysis of Data

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

Graphing with Microsoft Excel

= 3 + (5*4) + (1/2)*(4/2)^2.

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.

Spectroscopic Analysis: Peak Detector

Using Excel for Graphical Analysis of Data

ENV Laboratory 2: Graphing

1 Introduction to Using Excel Spreadsheets

Tips and Guidance for Analyzing Data. Executive Summary

XL2B: Excel2013: Model Trendline Multi 1/24/2018 V0M. Process Advice.

An introduction to plotting data

[ Dear student you may consult with other students for help, but under no circumstances take someone work and claim it to be yours]

Detailed instructions for video analysis using Logger Pro.

Using Excel to model Gas Prices - BONUS

Math 2524: Activity 1 (Using Excel) Fall 2002

CS130 Regression. Winter Winter 2014 CS130 - Regression Analysis 1

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Graphing on Excel. Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version):

Excel Tutorial 4: Analyzing and Charting Financial Data

KINETICS CALCS AND GRAPHS INSTRUCTIONS

Microsoft Excel 2007

INSTRUCTIONS FOR USING MICROSOFT EXCEL PERFORMING DESCRIPTIVE AND INFERENTIAL STATISTICS AND GRAPHING

Why Use Graphs? Test Grade. Time Sleeping (Hrs) Time Sleeping (Hrs) Test Grade

Technology Assignment: Limits at Infinity

Describe the Squirt Studio Open Office Version

Introduction to the workbook and spreadsheet

Fall 2016 CS130 - Regression Analysis 1 7. REGRESSION. Fall 2016

INFORMATION SHEET 24002/1: AN EXCEL PRIMER

Your Name: Section: INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression

13 Working with PID/PID2 blocks In this chapter

FUNCTIONS AND MODELS

Physics 211 E&M and Modern Physics Spring Lab #1 (to be done at home) Plotting with Excel. Good laboratory practices

Microsoft Excel. Charts

MIS 0855 Data Science (Section 006) Fall 2017 In-Class Exercise (Day 18) Finding Bad Data in Excel

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Advanced Curve Fitting. Eric Haller, Secondary Occasional Teacher, Peel District School Board

Matrix Multiplication Studio April 20, 2007

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998

IDS 101 Introduction to Spreadsheets

0 Graphical Analysis Use of Excel

Diode Lab vs Lab 0. You looked at the residuals of the fit, and they probably looked like random noise.

Pre-Lab Excel Problem

Microsoft Excel 2007 Lesson 7: Charts and Comments

Divisibility Rules and Their Explanations

Appendix C. Vernier Tutorial

San Francisco State University

Office Excel. Charts

Excel 2010 Worksheet 3. Table of Contents

For Volunteers An Elvanto Guide

How to Make Graphs with Excel 2007

Sample: Do Not Reproduce QUAD4 STUDENT PAGES. QUADRATIC FUNCTIONS AND EQUATIONS Student Pages for Packet 4: Quadratic Functions and Applications

Reading: Graphing Techniques Revised 1/12/11 GRAPHING TECHNIQUES

Here is the data collected.

Excel Spreadsheets and Graphs

Microsoft Excel 2007 Creating a XY Scatter Chart

Project 11 Graphs (Using MS Excel Version )

Contents 10. Graphs of Trigonometric Functions

Learn to use the vector and translation tools in GX.

Chemistry 1A Graphing Tutorial CSUS Department of Chemistry

Chapter 2 Assignment (due Thursday, April 19)

Spreadsheet Warm Up for SSAC Geology of National Parks Modules, 2: Elementary Spreadsheet Manipulations and Graphing Tasks

ALGEBRA 1 NOTES. Quarter 3. Name: Block

Getting Started With Excel

Area and Perimeter EXPERIMENT. How are the area and perimeter of a rectangle related? You probably know the formulas by heart:

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Tips to Save Typing, etc.

Y8 IT in Science Using Forces

Microsoft Word for Report-Writing (2016 Version)

HOW TO MAKE A SCATTER PLOT IN MICROSOFT EXCEL

1. What specialist uses information obtained from bones to help police solve crimes?

Tips to Save Typing, etc.

Lesson 76. Linear Regression, Scatterplots. Review: Shormann Algebra 2, Lessons 12, 24; Shormann Algebra 1, Lesson 94

Download Free Pictures & Wallpaper from the Internet

Dealing with Data in Excel 2013/2016

Administrivia. Next Monday is Thanksgiving holiday. Tuesday and Wednesday the lab will be open for make-up labs. Lecture as usual on Thursday.

Part 1. Module 3 MODULE OVERVIEW. Microsoft Office Suite. Objectives. What is A Spreadsheet? Microsoft Excel

Asking for information (with three complex questions, so four main paragraphs)

lab MS Excel 2010 active cell

Excel for Gen Chem General Chemistry Laboratory September 15, 2014

Excel tutorial Introduction

Plotting Graphs. Error Bars

CSC 310, Fall 2011 Solutions to Theory Assignment #1

Intro To Excel Spreadsheet for use in Introductory Sciences

Transcription:

Polynomial Models Studio October 27, 26 A. Download the data spreadsheet, open it, and select the tab labeled Murder. This has the FBI Uniform Crime Statistics reports of Murder and non-negligent manslaughter in the United States for the years 1985-24. Column A (Year) is the number of years since 1985 and column B is the number of murders reported that year. Select the data (block A2..B21) and graph it with an XY (Scatter) plot. Looking at the data, we can see several turning points, which is the usual sign that a polynomial fit might be in order. Lines, power curves, and exponentials have no turning points. Quadratics have one turning point and must be symmetric about that turning point. Now let s build the polynomial model for the data. We will use a simpler technique for this than we did last week. This technique can also be used for finding exponential and power curve models. Dr. Onofrei initially suggested using this technique last week and I overruled her because last week I wanted to emphasize the connection between exponential and power curves and lines in the log scale plots. But in the future you can use log scale plots to determine which model you want to use, then use the trendline technique in Excel to build the model (which is easier than what we did last week). B. Click on one of the data points marked in the plot, then right-click to get a pop-up menu of options. Select Add Trendline This will give you a dialog box with a variety of different types of models to choose from. Select the Polynomial model and set Order to 3. Then click on the Options tab and check the Display equation on chart box. Also check the Custom option for Trendline name and give the name 3 rd order. Click OK and a polynomial curve will be drawn that is the best fit 3 rd degree polynomial curve for the data provided. The equation will also appear on the chart. Note that you can click on the equation and move it around on the chart so that it isn t obscured by the data points and the trendline. Your graph should now look something like this: 3, 25, 2, 15, 1, 5, 5 1 15 2-1 -

C. This trendline doesn t seem to fit the data very well. We might do better if we used a higher order polynomial, which could have more turning points. Click one of the data points and go through the same procedures as in step 2 again, except that this time set the Order to 6 (and set the name to 6 th order of course). Once you have the trendline on the graph, you can right-click on it to get a pop-up menu of options. Select Format Trendline and you will get the dialog box back. But this time you will have a Patterns tab. If you select the Patterns tab, you will get options to change the color and weight (width) of the trendline, so it is easier to distinguish the two trendlines. Your graph should now look something like this: 3, 25, 2, 15, 1, 5, y = -.228x 6 + 1.135x 5-17.552x 4 + 93.83x 3-65.645x 2 + 319.71x + 19363 6th order 5 1 15 2 D. This trendline seems to do a much better job. But looks can sometimes be deceiving. A trendline is supposed to show the overall trend, and not necessarily follow all the little bumps of the data. Indeed, if your trendline follows the bumps too much, you end up modeling the noise and actually getting a less appropriate model. To get a sense of some of the difficulty, suppose we use both these models to predict how the murder rate will look in 25 and 26. Right-click on a trendline to bring up the pop-up menu and select Format Trendline. Click on the Options tab and then set the Forecast to Forward 2 units. Repeat this for the other trendline. Your graph should now look like 3, 25, 2, 15, 1, 5, y = -.228x 6 + 1.135x 5-17.552x 4 + 93.83x 3-65.645x 2 + 319.71x + 19363 6th order 5 1 15 2 25-2 -

So if the 6 th degree polynomial fit is accurate, in 26 we should have solved the problem of murder in the United States. Unfortunately, we haven t. While final numbers aren t yet available, the FBI s preliminary report says murders went up from 16,137 in 24 to 16,91 in 25, which is not all that far off from the 3 rd degree model s prediction (which was 17,236). It is typical of polynomial models that in making extrapolations you can have trouble when the model starts rapidly heading off to either positive or negative infinity. You can also have trouble, particularly if the data is not evenly spaced, with the model making big curves between data points. All these problems are magnified as you use higher degree approximations (which is one reason why Excel limits you to at most an order 6 approximation). For example, using the data in problem 24 in section 4.2 for births to females under 15 in the United States, we could use a 9 th degree polynomial which allows for enough flexibility to passes exactly through every data point. But this wouldn t produce a useful model, as the graph below illustrates. The model predicts wild gyrations in the birth rate peaking at over 5, in 1968 and falling to -315, in 1999, which are obviously absurd values. By the way, the teenage birth rate did fall sharply in the late 9 s with a strong turning point just at the end of this data set. Using Too High a Degree Polynomial Births to Females under 15 14 12 1 8 6 4 2 1 2 3 4 Years since 196 Polynomial Data Points There are advantages to using unevenly spaced data in terms of giving extra weight to more recent data in building your model. We won t go into weighing these advantages vs. the disadvantages in this class. For now, I just want you to get the following points. Understanding these points is why we study how the graphs of polynomials look. Polynomial models can be useful when the data you are modeling has turning points. It is important to choose as low a degree polynomial as reasonable to capture just the trends and avoid modeling the noise. Polynomials will usually only forecast accurately for a limited range at the end of your data before they take off to plus or minus infinity. - 3 -

Assignment: 1. Click on the GTA tab. This sheet has the Motor vehicle theft data for the last 2 years. Graph the data and pick an appropriate model. Use the model to predict motor vehicle thefts for 25. List the model you used, a brief explanation for why you picked it, and the prediction for 25 car thefts below. 2. Do problem 26 in section 4.2. List your answers below. - 4 -

3. Do problem 31 in section 4.2. List your answers below. 4. In problem 31 part d, you compared the model values to get the ratio of the juvenile crime rate in 1999 to the juvenile crime rate in 199. What is the ratio of the observed data for 1999 and 199? Write a short paragraph about the advantages and disadvantages of comparing model values vs. observed values. - 5 -