Excel Part II More on Plotting Section 8 Fall 2013 EGR 105 Foundations of Engineering I
Excel Part II Topics Data (engineers collect and use) –Viewing –What is in the data? –Plotting Data…some ways to look at data Background on Plot Types Transforming data to Log 10 Using Log 10 Scales Homework Assignment
Engineering and Data For Engineers, Data… –is useful –often routinely collected –requires interpretation –is used in a variety of ways –can be complex and difficult to work with
Data Can Be Complicated
Viewing Data Recorded data can show a variety of important trends and patterns Plotting can provide insight –There are different ways to view the data –It is important how data are presented –Often want to see data details on one plot Useful for developing equations Will cover this topic next time in Excel Part III
What is in the Data? When you have a set of data, ask… –What do these data tell me? –Is there a trend…a relationship….? –How do the data describe reality? Not always obvious –Sometimes requires different looks –Plotting of data can be very useful
Presentation of x-y Data Independent versus dependent variables y y = f(x) x independent dependent
Simple Plotting Generate X and Y data to Plot
Common Types of Plots Example: f(x) = y = 3x 2 (plots for equations and/or data) Semi-log : Log (Y) Cartesian Semi-log : Log (X) Log-Log : Log (X)-Log (Y)
Excel Part II Topics Data (engineers collect and use) –Viewing –What is in the data? –Plotting Data…some ways to look at data Background on Some Useful Plot Types Transforming data to Log 10 Using Log 10 Scales Homework Assignment
Lets Review These Plots How were they created? What is – a linear plot – a semi-log plot – a log-log plot – a logarithmic scale Note that here we use Log 10
Linear Scale xy=f(x) Note: Cannot see details of these points
Take Log 10 of x-data xLog (x)y=f(x) Note: Cannot see details of these points Observe: Log (0) undefined Semi-Log Plot
Take Log 10 of y-data xf(x)Log (f(x)) Observe: Log (0) undefined Semi-Log Plot
Take Log 10 of x-data and y-data xLog (x)y=f(x)log (f(x)) Note: Now can see details of these points Observe: Log (0) undefined Log-Log Plot
Excel Part II Topics Data (engineers collect and use) –Viewing –What is in the data? –Plotting Data…some ways to look at data Background on Plot Types Transforming data to Log 10 Using Log 10 Scales Homework Assignment
Easier Way Create plots using Log 10 scales – No need to convert any of the data – By hand on paper (available in stores) Semi- Log 10 paper Log 10 -Log 10 paper – Software packages Excel MatLab (in EGR 106 next semester) other
Plot Using Log 10 Scale for x xy=f(x) Semi-Log Plot Observe: No zero on Log scale - Log (0) undefined Note: Scale variation is logarithmic
Plot Using Log 10 Scale for y xy=f(x) Semi-Log Plot Observe: No zero on Log scale - Log (0) undefined Note: Scale variation is logarithmic
Plot Using Log 10 Scale for x and y xy=f(x) Log-Log Plot Observe: No zero on Log scale - Log (0) undefined Note: Scale variation is logarithmic
Excel Part II Topics Data (engineers collect and use) –Viewing –What is in the data? –Plotting Data…some ways to look at data Background on Plot Types Transforming data to Log 10 Using Log 10 Scales Homework Assignment
Homework Assignment #4 See HW4 on course web site –Import historical data for computer memory prices into spreadsheet –Determine cost in $s/megabyte for each year –Plot data two different ways Linear scale Semi-log scale Discussion of details found in results
Homework Assignment #4 Submission Procedures Submit your Excel Spreadsheet with: -all imported and calculated data -each of the two plots -discussion embedded in a text box Send as an attachment to Prof. Sadd with the subject line egr105_4 (no spaces). Due Date: October 24.