UNLOCKING THE SECRETS HIDDEN IN YOUR DATA Part 3 Data Analysis.

Slides:



Advertisements
Similar presentations
(MICROSOFT EXCEL). Is a spreadsheet application designed to take advantage of the windows graphical interface MICROSOFT EXCEL.
Advertisements

Introduction to Spreadsheets. Learning Target I can input data and do simple calculations in a spreadsheet.
 Microsoft Excel is an electronic spreadsheet.  As with a paper spreadsheet, you can use Excel to organize your data into rows and columns and to perform.
Microsoft Office XP Microsoft Excel
ELECTRONIC SPREADSHEATS ELECTRONIC SPREADSHEATS Chapter 14 Dr. Bahaa Al-Sheikh & Eng. Mohammed AlSumady Intoduction to Engineering BME152.
Using Microsoft ® Excel Formulas and Functions Start Microsoft ® Excel. Type data into cells as shown.
Introduction To 2010 Excel Super-size Tool Bar: Ribbon Basic Tasks on Home Tab Math and Formula Statistical Functions (examples) Create A Chart Play with.
Guide to Using Excel 2007 For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 8th Ed. Chapter 16: Analyzing.
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Review. Microsoft Office Excel 2013 provides powerful tools to organize, analyze, manage, and share information Locations where work is done are cells,
Using Microsoft Office Excel 2007
Introduction to Microsoft Office Excel Office Button Quick Access Toolbar Ribbon Formula Bar Alphabetical Columns Numbered Rows Worksheet Tabs.
CPSC 203 Introduction to Computers T97 TA: Jie (Jeff) Gao.
1 Using Excel for Statistics Office 2010 and 2013.
MICROSOFT OFFICE 2013 EXCEL 1. 2 File Tab 1 Title Bar 5. Group 7 Name Box 6 Active Cell 8 Formula Bar 4 Ribbon 9 Column 10. Row 11 Sheet Tabs 12 View.
Math 115a Mathematics for Business Decisions, part I Histograms Math 115a.
HOW TO CREATE A HISTOGRAM IN EXCEL. STEP 1: INSTALL ANALYSIS TOOLPAK 1.Click on the Microsoft Office Button (circle button) 2.Click on Excel Options.
Excel Lesson 4 Entering Worksheet Formulas
Spreadsheets and Non- Spatial Databases Unit 4: Module 15, Lecture 2- Advanced Microsoft Excel.
Chapter 1 Introduction to Spreadsheet. Agenda Download the practice files Spreadsheet application Workbook and worksheet Toolbar Cell Formatting Printing.
Excel For MATH 125 Histograms. If you have Excel 2003…
FIRST COURSE Excel Lecture. XP 2 Introducing Excel Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative.
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
CPSC 203 Introduction to Computers T43, T46 & T68 TA: Jie (Jeff) Gao.
Using Excel To help with data. Excel is a spreadsheet program that can interface with Word, or PowerPoint A spreadsheet program has cells (little blocks)
Technology Basics Creating Worksheet Formulas. 2 Understand Formulas Equations used to calculate values in cells are called formulas. Formulas consist.
University of technology Department of Materials Engineering
Linear Regression Analysis Using MS Excel Making a graph Analyzing Data.
CTS130 Spreadsheet Lesson 3 Using Editing and Formatting Tools.
Microsoft Excel By: Dr. K.V. Vishwanath Professor, Dept. of C.S.E,
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
Microsoft Excel Used to organize information for calculations.
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
Microsoft Excel – Intermediate Topics April 14, 2008 Abby Wiertzema
Technology ICT Core: Spreadsheets. Spreadsheets A spreadsheet is a table consisting of Rows and Columns Where a row and a column meet, the box is called.
Introduction to Spreadsheets Program: Excel. Starting Excel Spreadsheets Spreadsheet –A grid of rows and columns used to make calculations. A spreadsheet’s.
Spreadsheets and Non- Spatial Databases Unit 4: Module 15, Lecture 1- Spreadsheet Software.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved. What Can I Do with a Spreadsheet.
Creating Charts for the Agency Budget Creating Budget Charts, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin.
Ch.1. Spread Basics I. Goals: 1)Basic purpose of a spreadsheet program 2)Various components of the Excel screen 3)Navigating the worksheet 4)Built-in functions.
Key Words: Functional Skills. Key Words: Spreadsheets.
Plotting in Microsoft Excel. 1) Enter your data into the Excel spreadsheet in table format. Your data should have column headers, row headers and data.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 Chapter 1: PowerPoint Presentation GO! with Microsoft Excel ® 2007 Comprehensive.
June 21, Objectives  Enable the Data Analysis Add-In  Quickly calculate descriptive statistics using the Data Analysis Add-In  Create a histogram.
ICT Training Session #4 10 th February 2011 Using Microsoft Excel 2007  Exploring the home screen  Entering data  Formatting & sorting  Equations.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
1 Excel Lesson 2 Organizing the Worksheet & Formulas Microsoft Office 2010 Introductory Pasewark & Pasewark.
Using Microsoft® Excel This presentation is designed for Chapter 1, Section 1.2.
1 Using Excel for Statistics in Gateway Cases Office 2007 & 2010.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
An electronic document that stores various types of data.
Introduction to Excel EC 151 Principles of Microeconomics Block 3,
April 9 th, Saturday PDP N° Malik Koné. I. Cells A. The Concept B. Properties, Types and Formats II. Spreadsheets A. Spreadsheet’s Elements B. Selection.
Setting up Solver Add-in for Excel
Installing Analysis Tool Pak
TDA Direct Certification
Microsoft Excel Chapter 3.
Microsoft Excel.
Microsoft Excel A Spreadsheet Program.
Microsoft Excel 101.
Using Excel to Graph Data
Microsoft Excel Chapters 6&7
Installing Analysis Tool Pak
Microsoft Excel 101.
Technology ICT Core: Spreadsheets.
An AS Lesson Using the LDS to teach content on Data Collection and Processing.
Microsoft Excel Chapters 6&7
Microsoft Excel 101.
Using Excel to Graph Data
Presentation transcript:

UNLOCKING THE SECRETS HIDDEN IN YOUR DATA Part 3 Data Analysis

How to Calculate an Integral Taking the data in columns A and B from an earlier example with derivatives. Solve for distance traveled Mathematically:  y = position  t = time Enter zero in C2 Enter in C3 “=C2+B3*(A3-A2) Duplicate formula through row 12 This integral operation can be thought of as a running sum or the summation of the area under the curve

Integration of Velocity

Log, Semi-log Plots Plotting some functions log-log can make them a straight line function. This makes it easier to do a regression fit to the data. The distance traveled for the constant acceleration problem becomes a straight line as shown below

Log Plot Exercise of Constant Acceleration Open Excel and label column A Time, B Acceleration, C Velocity and D Distance. Then enter time from 0 to 10 in increments of 1. Enter in B2 through B12 a constant acceleration of two. Integrate the acceleration to get velocity. Enter a zero in C2. Then enter the formula =C2+B3*(A3-A2) in C3. Duplicate the formula down to C12. Integrate the velocity to get distance. Enter a zero in D2. Then enter the formula =D2+C3*(A3-A2) in D3. Duplicate the formula down to D12.

Log Plot Exercise (continued) You should now have the following in Excel: Highlight Columns A and D and do a scatter plot. There are two ways to do a log- log plot. First, highlight the x axis and the y axis and put a check in the box for log plot. Second is to take the log function of columns A (=LOG10(A3) ) and D and plot the result.

Frequency Analysis Frequency analysis can identify repetitive patterns in data.  Frequencies, cycles or periods For this example, we will use the hare-lynx predator prey data

Frequency Analysis, the FFT There is clearly a cyclical pattern to the data  Roughly, the cycle can be calculated by counting the peaks, 9 or 10, and dividing by the years, 90. This gives a 9 to 10 year cyclical pattern A more accurate way to calculate the period is to use the Fast Fourier Transform or FFT  Transforms the data into “frequency” space  Identifies patterns with respect to frequency or periods of time

FFT of Hare/Lynx Data See the following exercise for calculating the FFT of the Hare/Lynx data in Excel A period of about 10 yrs is shown by the frequency analysis

FFT Exercise Instructions SETUP -- First check to see if Excel has the Data Analysis ToolPak installed. Pull down the Tools menu and see if Data Analysis is an option on the menu. If not, go to the Tools menu and click on Add-Ins. Select the Analysis ToolPak for installation. You may need your original Office CD- Rom to install the ToolPak. In the latest Office, the installation is a bit different. Select the big Office button in the upper left corner of the Excel window and select Excel Options at the bottom of the menu. Select Add-Ins and the find the Analysis ToolPack for installation.

FFT Exercise – Step 1 1. Import the Hare/Lynx data into the Excel Spreadsheet. This is done by:  Selecting the Data menu and then Get External Data.  Select From Text and then change the filter to all files.  Select the hare-lynx.dat file  Select Delimited and click on Next.  Select Tab and click on Next.  Select General column data format and click on Finish. Click on the A2 box for where you want to put the data and click on OK.  Label the columns Date, Hares, Lynx.

FFT Exercise – Step 2 Now setup the data for the FFT. The FFT in Excel can only operation on powers of 2 (2 n ). We have 91 data points. This is between 64 (2 6 ) and 128 (2 7 ). We could just use the first 64 data points, but one of the tricks in data sets that are not exactly powers of 2 is that you can just add zeros to fill in the data to make the series a power of 2.  So add zeros in columns A, B, and C from row 93 to 129.  Then label  D column header: Hare FFT Complex  E column header: Lynx FFT Complex  and make the columns wider.

FFT Exercise – Step 3 Run the FFT on column B.  Select Tools->Data Analysis->Fourier Analysis (Data- >Data Analysis->Fourier Analysis in the latest Excel).  Set the input data range to B2:B129 and the output to D2:D129.  Repeat for column C and put the output data in column E. The output is in complex format with both real and imaginary components.

FFT Exercise – Step 4 Now we want the magnitude of the FFT instead of the complex value.  Label column H, Hare FFT Magnitude and column I, Lynx FFT Magnitude.  First we need to multiple the result by 2/number of samples (n s ). In this case, n s is 128. We use the Excel intrinsic IMABS to get the magnitude of the complex number (note: this is the sqrt(real 2 +imag 2 ) in vector arithmetic). So in H2, enter the formula “=2/128*IMABS(D2)”.  Copy this formula to H128 and over to column I.

FFT Exercise – Step 5 Next we need to calculate the x axis values so we can plot the results.  Label column F, FFT Frequency. The first frequency is always zero, so we put zero in F2. What this means is that the first value in the FFT is the average value for the data. So 62.9 is the average number of hares and 41 is the average number of Lynx.  Then to calculate the frequency, we use the formula F s /n s where F s is the sampling frequency, roughly 1 sample per year in this case and n s is the number of samples or 128 in this example. So cell F3 is 1x1/128, cell F4 would be 2x1/128 and so on.  We can enter the series by selecting Edit->Fill->Series (In the more recent Excel, select Home-> (in Editing)->Series) while in cell F2. Select column and enter 1/128 or for the step value and 1 for the stop value.

FFT Exercise – Steps 6 and 7 Step 6. To fill in the period column, first label column G, FFT Period. In G3 enter “=1/F3”. Copy this formula down through row 129. Step 7. Plotting the data.  Select columns G, H, and I by clicking on the G, H, and I (hold down the control key while selecting the additional columns).  Now insert a chart->scatter plot.  Edit the data source to include only through row 66. If you look at the values in H65 and H67 and I65 and I67, you will note that the data repeats and it repeats for all the values after row 66. This is a characteristic of FFTs and is why you should only plot half of the data.  Format the plot to look like the next slide.

FFT Exercise Results