Here is the data collected.

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

Microsoft Word for Report-Writing (2016 Version)

Chemistry 1A Graphing Tutorial CSUS Department of Chemistry

Plotting Graphs. Error Bars

Using Excel for Graphical Analysis of Data

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

0 Graphical Analysis Use of Excel

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS

Introduction to the workbook and spreadsheet

ENV Laboratory 2: Graphing

How to use Excel Spreadsheets for Graphing

Graphical Analysis of Data using Microsoft Excel [2016 Version]

Introduction to Excel Workshop

Dealing with Data in Excel 2013/2016

Graphing with Microsoft Excel

Pre-Lab Excel Problem

Excel Spreadsheets and Graphs

Introduction to Excel Workshop

Learning Packet THIS BOX FOR INSTRUCTOR GRADING USE ONLY. Mini-Lesson is complete and information presented is as found on media links (0 5 pts)

Activity Graphical Analysis with Excel and Logger Pro

Excel Primer CH141 Fall, 2017

Using Excel for Graphical Analysis of Data

Excel for Gen Chem General Chemistry Laboratory September 15, 2014

Reference and Style Guide for Microsoft Excel

LAB 2: DATA FILTERING AND NOISE REDUCTION

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Experimental Design and Graphical Analysis of Data

Microsoft Excel 2007 Creating a XY Scatter Chart

W7 DATA ANALYSIS 2. Your graph should look something like that in Figure W7-2. It shows the expected bell shape of the Gaussian distribution.

Lab1: Use of Word and Excel

Lab Activity #2- Statistics and Graphing

Microsoft Excel 2007

252 APPENDIX D EXPERIMENT 1 Introduction to Computer Tools and Uncertainties

Microsoft Excel. Charts

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

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

addition + =5+C2 adds 5 to the value in cell C2 multiplication * =F6*0.12 multiplies the value in cell F6 by 0.12

Introduction to creating and working with graphs

ME 142 Engineering Computation I. Graphing with Excel

Error Analysis, Statistics and Graphing

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Total Number of Students in US (millions)

Tricking it Out: Tricks to personalize and customize your graphs.

Practical 1P1 Computing Exercise

Data Management Project Using Software to Carry Out Data Analysis Tasks

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

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

An introduction to plotting data

How to Make Graphs with Excel 2007

You are to turn in the following three graphs at the beginning of class on Wednesday, January 21.

Introduction to Spreadsheets

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

Scientific Graphing in Excel 2013

Section Graphs and Lines

Experiment 3 Microsoft Excel in Scientific Applications I

Excel Tips and FAQs - MS 2010

1.1 Opening/Closing the file The first step to using Excel is launching the program and knowing how to close it when you re finished.

EXCEL SPREADSHEET TUTORIAL

Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001

EDIT202 Spreadsheet Lab Prep Sheet

Activity: page 1/10 Introduction to Excel. Getting Started

Exercise: Graphing and Least Squares Fitting in Quattro Pro

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

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Chemistry Excel. Microsoft 2007

Homework 1 Excel Basics

LAB 2: DATA FILTERING AND NOISE REDUCTION

Tips and Guidance for Analyzing Data. Executive Summary

BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7)

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

Physics 251 Laboratory Introduction to Spreadsheets

Geology Geomath Estimating the coefficients of various Mathematical relationships in Geology

Scientific Graphing in Excel 2007

Microsoft Excel Lab: Data Analysis

Lab 4 Projectile Motion

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1

Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example

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.

Computer Data Analysis and Plotting

HOUR 12. Adding a Chart

Excel 2010 Worksheet 3. Table of Contents

To move cells, the pointer should be a north-south-eastwest facing arrow

Math 2524: Activity 1 (Using Excel) Fall 2002

J. La Favre Calibrating Sharp Distance Sensors July 18, 2018

Report for Experiment 5

1 Introduction to Using Excel Spreadsheets

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.

E D T 3 2 E D T 3. Slide 1

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

Introduction to Motion

Appendix B: Using Graphical Analysis

PR3 & PR4 CBR Activities Using EasyData for CBL/CBR Apps

Appendix C. Vernier Tutorial

Vocabulary Unit 2-3: Linear Functions & Healthy Lifestyles. Scale model a three dimensional model that is similar to a three dimensional object.

IDS 101 Introduction to Spreadsheets

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

Computer Data Analysis and Use of Excel

Creating a Basic Chart in Excel 2007

Year 10 General Mathematics Unit 2

Y8 IT in Science Using Forces

Transcription:

Introduction to Scientific Analysis of Data Using Spreadsheets. Computer spreadsheets are very powerful tools that are widely used in Business, Science, and Engineering to perform calculations and record, present, and analyze data, as well as perform a variety of more sophisticated calculations that can use a number of special functions. One of the virtues of spreadsheets is their relative ease of use compared to programs like Matlab and Mathematica or programming languages like C, or Fortran. In fact, spreadsheets have many of the functions of programming languages as built in functions and can do many of the same things. You can also make your own custom functions that can be called in spreadsheets if you need to, and Microsoft Visual Basic for Excel is a full-fledged programming language (albeit with a bit of a learning curve). We will be using Microsoft Excel for this lab. However other spreadsheet programs are very similar and have much of the same functionality. For example, OpenOffice is a free suite of software programs with Word Processor, Spreadsheet, Presentation (Power Point), Drawing, Math typesetting, and Data Base software. http:/www.openoffice.us.com/openoffice/free-open-office-downloadyahoo.php?pk=845397 The Open Office spreadsheet is called Calc. Don t worry if you have never used Excel before, we will learn how to use the basic features of it in this lab. You should become fairly proficient in using Excel by the end of the semester since we will use it to analyze and plot the data for almost all of the experiments. Learn how to use Excel yourself. Don t let your partner be the one who always makes the spreadsheet, you should take turns working on it. Linear Graphs The basic linear equation y = mx + b is the simplest and most widely used relation to fit data. Remember that m is the slope and b is the y intercept of the function. x is called the independent variable and y the dependent variable, since y depends on x. The independent variable is the quantity that you directly vary at will in your experiment, like moving a ball from one height to another. The dependent variable is the quantity that is responding to your change, such as the potential energy of a ball that you are moving. When graphing the independent variable is usually put on the horizontal axis, and the dependent variable on the vertical axis. Step 1: Let s take some data from a lab experiment on the photoelectric effect that we will perform later in the semester. This experiment involves shining a light source on a simple circuit which causes a current to flow in the circuit. The student adjusted the wavelength of the light source, and measured how much voltage it took applied against the current to stop the current from flowing (this is called the Stop voltage, or V s ) 1

Question 1: Next week everything will go into your lab book, but for today open up a word document and answer the questions in there. Be sure you and your partner s names are at the top as well as the lab number and title. In this experiment what is the independent variable and what is the dependent variable? Here is the data collected. First open an Excel spreadsheet and manually type in the above table. Be sure you know how to add the wavelength symbol, and make sure you include the units. It is good practice to leave a few blank rows at the top of the spreadsheet for information about the spreadsheet, column labels, and column units. Note the information at the top of the given table about who took the data and when, also the information about the equipment. You should get in the habit of doing the same thing for your experiments. After you have typed the data in the columns, make a simple scatter plot of the data. To do this select both columns of data then click the insert tab, and select the scatter plot with no lines showing, as shown on the top of the next page. 2

The graph should look similar to the one shown above. There are several problems with this graph. 3

Step 2: Excel s biggest user base is business, so default graph formats are mostly setup for that purpose. As a result you have to do a lot of formatting work to get a graph into a proper scientific or engineering format. For all charts you make you should go through the following list. Make sure you know how to do every part of the list (and do them) before moving on to the next part. Most can be adjusted through the green highlighted chart tools section at the top, or by right clicking whatever you want to change and opening its properties. Graph Format: Minimize white space The data should occupy most of the graph window area, rescale your axes to fix this. Chart title In scientific papers this is usually done with a figure caption, but for this lab each graph MUST have a chart title. Axis titles All Axes MUST have a title, and MUST include units if applicable. Delete unnecessary legends For this set there is only one series of data, so having the legend that says series 1 in unnecessary. If there were multiple data sets to distinguish from this would be nice to leave on. Remove gridlines Major and Minor tick marks inside These are the small marks at each number of the graph, make sure they are shown and in your plot area. Basically you are deleting unnecessary marks, white space, and information. Then you are making sure all necessary information is included so that you can tell what the data is by looking at the graph alone. Question 2: Did you do all of the above? If yes then copy and paste your graph into a word document for printing NEAR THE END OF LAB. When you are finished your graph should look similar to the one on the following page. Note that the data does not appear to be entirely linear when plotted here. There seems to be an increasing slope at the two shortest wavelengths. Without knowing any theory, one typically plots the dependent variable vs. the independent variable. If the data is not a linear relationship then one looks for other functional forms (transformations of the variables that give a more meaningful relationship). 4

Luckily in known cases the theory has often already been developed. The photoelectric effect (what our above data set is for) is described by the following equation, (which earned Einstein the Nobel Prize in physics in 1921) hf = ev s + W (1) or dividing by e and solving for V s, V s = (h/e)f W/e. (2) Here h is Planck s constant, e is the electron charge, W is the work funciton of the surface, V s the stopping voltage, and f is the frequency of the light.don t worry too much about the variable or the theory here yet, we ll revisit this in a later lab. Now look at equation 2, you should notice that this is in a very familiar form, specifically the linear form y = mx + b Equation 2 shows that if we plot the frequency of the light, not the wavelength as the independent variable and Vs as the dependent variable, we should get a straight line whose slope is the value h/e, and intercept W/e. Since the data taken gives us V s and λ we need some way to get frequency out of lambda. Luckily there s a relation between the wavelength of a light wave, and its frequency through the speed of light which is, f = c/λ (3) where c is the speed of light given by c = 2.9979e + 8 m/s. 5

Step 3: Now use a function in excel to add a frequency column to your data. To make a function first type = into a cell, this tells excel to look for an equation instead of just text being entered. So select the top of your third column where you ll put your first frequency value, type = and then enter the right hand side of equation 3. You will replace λ with your wavelengths by simply selecting the cell that contains the wavelength, in my spreadsheet the location for the first wavelength is A7. Now for the speed of light practice using an absolute reference. Type the value into a separate cell elsewhere on the page, I used cell D3. Then in your equation, replace c with the cell D3, but surround the D with dollar signs, leaving you with $D$3. Finally in this equation note that our wavelengths are in nanometers, but the speed of light has meters, you will need to transform from nanometers to meters, review how to do this. Now after you have entered your formula select the cell and at the bottom right you ll see a little black box, click this and drag downward for your entire column. When you release this it will drag your equation down and change and cell references for you, except for ones that are absolute referenced (If you drag from cell C7 to C8 it will change A7 to A8 in your formula, but leave $D$3 unchanged). Your formula and data sheet should now look similar to below (ignore the top right values for now, and note I put my frequency values in column B). 6

Step 4: As in the picture above, add a linear trendline to your data and display the equation and R 2 values on the graph. VERY IMPORTANT: Be sure to format the trendline label with at least 4 significant figures. Use scientific notation format, since if you only pick four decimals, and the number has a large power of 10, it is not going to be correctly shown on the trendline equation and R 2 value if not expressed in scientific notation (right click your trendline label and click format trendline label to adjust this). Notice that some information cells have been added to the spreadsheet on the accepted value for h/e, the experimental value (taken from the slope of the trendline equation), and the percent error from the accepted value, 26.8% in this case. There is a problem with this data, as it gives values for h/e that are off by a considerable amount, typically 20-30%, as shown by the comparison with the accepted value on the spreadsheet. When we perform the experiment, we will see the reason for this, having to do with reverse leakage currents, and apply a correction to get better values for h/e and W. Suffice to say the good value for R 2 = 0.99699 indicates the data is of high quality and linear to high degree. It indicates that the experimenter likely took good data. Coefficient of Determination: What does the R 2 value indicate? In statistics, the coefficient of determination, denoted R 2 and pronounced R squared, indicates how well data points fit a line or curve. R 2 is a statistic that will give some information about the goodness of fit of a model. It provides a measure of how well observed outcomes are replicated by the model, as the proportion of total variation of outcomes explained by the model. The coefficient of determination ranges from 0 to 1 in most situations you will encounter. An R 2 close to one represents a trendline that is almost identical to the data points, meaning that you can use the trendline to accurately predict additional values. The closer the R 2 is to one, the better fit to the data, an R 2 of exactly 1 indicates that the regression curve perfectly fits the data. However, you need several decimals accuracy of R 2 (usually 5 is good) for data that is very accurate, since there is a visual difference in the quality of fit between R 2 values of 0.991 and 0.9993 data fits. Also, a fit of 0.9 might sound pretty good, but actually the fit to the data can be rather poor. Often in life sciences and in data sets with several different confounding variables, R 2 values might be very low, like 0.5 0.7, yet they are considered to be indicative of a trend. For more information on this subject consult this article and the references therein ( http://en.wikipedia.org/wiki/coefficient_of_determination ) 7

Step 5: Add the section shown below to your spreadsheet which has random errors added to the stopping voltage values (the one shown is right underneath the other data and graphs we have done so far). In the spreadsheet below, the formula cell to add a variable random fractional error between plus and minus eps is shown. Be sure to include the eps in your formula with an absolute reference for easy adjustment. Adjust the amplitude of the random noise parameter eps for a few different values between 0 0.5 and note how the slope and R 2 value changes. Note the graph here has a considerable difference in the slope from step 4 to a nominal 15% eps (or noise) shown in the graph (2.8419 vs. 3.0284 in units of 10 1 4 Hz), but yet the R 2 value is a relatively high 0.980 vs. 0.99699. Question 3: Basically you are adding an artificial error to your data set, how should increasing the error affect your R 2 coefficient? Does what you see in adjusting eps in your spreadsheet agree with your answer? Once you have answered that, paste 2 of your graphs with DIFFERENT eps values into the Word document you have open. 8

Aside from data that have an intrinsic linear dependence, which you have seen in other labs, there is a large variety of data that is clearly nonlinear in the independent variable x but can be transformed to new variables so that one can still obtain a linear relationship between the transformed variables, and then perform a linear least square fit. We just did a very simple case by changing from wavelength to frequency to make the photoelectric data linear. Next week we will approach more complicated cases. What you need to turn in today: You should have a word document with three answered questions and 3 pasted graphs. Be sure to title the document and put yours and your partner s names at the top, then print this document and hand it in. 9