Plotting in Excel KY San Jose State University Engineering 10.

Slides:



Advertisements
Similar presentations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Advertisements

San Jose State University Engineering 101 JKA & KY.
EGR 105 Foundations of Engineering I
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 5 Analyzing.
GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA.
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
1 Business 260: Managerial Decision Analysis Professor David Mease Lecture 1 Agenda: 1) Course web page 2) Greensheet 3) Numerical Descriptive Measures.
CS1100: Computer Science and Its Applications Creating Graphs and Charts in Excel.
Charts & Graphs.
Graphing in Excel X-Y Scatter Plot SCI 110 CCC Skills Training.
Descriptive Statistics, Part Two Farrokh Alemi, Ph.D. Kashif Haqqi, M.D.
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 13 Linear Regression and Correlation.
Exploratory Data Analysis. Computing Science, University of Aberdeen2 Introduction Applying data mining (InfoVis as well) techniques requires gaining.
1 Statistical Analysis - Graphical Techniques Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND.
Graphical Analysis. Why Graph Data? Graphical methods Require very little training Easy to use Massive amounts of data can be presented more readily Can.
Microsoft Excel Part 2 Kin 260 Adapted from Daniel Frankl, Ph.D. Revised by Jackie Kiwata 10/07.
6.1 What is Statistics? Definition: Statistics – science of collecting, analyzing, and interpreting data in such a way that the conclusions can be objectively.
Chapter 8: Regression Analysis PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with Spreadsheets,
Variable  An item of data  Examples: –gender –test scores –weight  Value varies from one observation to another.
Quantitative Skills 1: Graphing
Chapter 03: Lecture Notes (CSIT 104) 11 Chapter 3 Charts: Delivering a Message Exploring Microsoft Office Excel 2007.
CS1100: Computer Science and Its Applications Creating Graphs and Charts in Excel Martin Schedlbauer, Ph.D.
Line Graphs A line graph is a way to summarize how two pieces of information are related and how they vary depending on one another. The numbers along.
Graphical Analysis in Excel EGN 1006 – Introduction to Engineering.
Graphing Tutorial William Hornick CS 101. Overview You will be given a brief description, example, and “how to create” for each of the following: You.
Topic 11.2: Measurement and Data Processing Graphing.
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
Statistical Fundamentals: Using Microsoft Excel for Univariate and Bivariate Analysis Alfred P. Rovai Charts Overview PowerPoint Prepared by Alfred P.
1 Statistical Analysis - Graphical Techniques Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND.
(Unit 6) Formulas and Definitions:. Association. A connection between data values.
Lesson 1 Notes.  A chart is a representation of worksheet data. A chart can enhance and simplify the of numerical data in a worksheet because the between.
Graphing in Science. Goals Choosing an appropriate display for data (which type of graph to construct) Identifying data to be displayed on the x- and.
EXCEL CHAPTER 6 ANALYZING DATA STATISTICALLY. Analyzing Data Statistically Data Characteristics Histograms Cumulative Distributions Classwork: 6.1, 6.6,
Chapter 5 EXCEL Graphing Data. Intro In EXCEL graphs are referred to as CHARTS. We will do 2-D graphs known as Scatter Charts or X-Y Charts. Vocabulary:
Plotting in Excel Ken youssefi Engineering 10.
Descriptive Statistics
Thursday, May 12, 2016 Report at 11:30 to Prairieview
Fitting Equations to Data
Charts & Graphs CTEC V
AGB 260: Agribusiness Data Literacy
Excel - Data Analysis Dr. Theodore Cleveland University of Houston
Analysis and Empirical Results
Correlation, Bivariate Regression, and Multiple Regression
Charts and Graphs V
Quantitative Skills : Graphing
SPREADSHEETS Parts of a graph Data Range X and Y axes
Graphs Class A Class B.
Mathematical Modeling
CHAPTER 1: Picturing Distributions with Graphs
Statistical Tables and Graphs
Class Data (Major) Ungrouped data:
Mathematical Modeling Making Predictions with Data
Graphs.
Technical Writing (AEEE299)
Navya Thum February 06, 2013 Day 5: MICROSOFT EXCEL Navya Thum February 06, 2013.
Mathematical Modeling Making Predictions with Data
STEM Fair Graphs.
Analyzing Bivariate Data
Correlation and Regression
Basic Practice of Statistics - 3rd Edition
Basic Practice of Statistics - 3rd Edition
Topic 7: Visualization Lesson 1 – Creating Charts in Excel
Key Questions When do you use different chart types?
Coefficient of Determination
Multivariate Analysis Regression
Constructing and Interpreting Visual Displays of Data
Experimental Design Experiments Observational Studies
Graphs.
Help with Excel Graphs CHM 2046L.
Creating a Graph With Microsoft Excel
Presentation transcript:

Plotting in Excel KY San Jose State University Engineering 10

Plotting in Excel Select Insert from the main menu Select All Chart Types San Jose State University Engineering 10

Column Chart Definition: A chart that consists of multiple columns (vertical bars), and the height of each column represents the quantity associated with the corresponding category. Use this type of chart for visual comparison of the quantities associated with different categories San Jose State University Engineering 10

Column Chart - Example Select Insert → Column Chart → 2D Column Select data range Category No. of Student Frosh 4000 Sophomore 3500 Junior 6800 Senior 7000 Graduate 8000 San Jose State University Engineering 10

Column Chart - Example Chart Layout options Select the option with Chart Title and Axes Title San Jose State University Engineering 10

Column Chart - Example Edit the chart and axes titles, place the curser on the text and right click A plot must have a title and a description of the axes, including units if applicable San Jose State University Engineering 10

Multi-Column Chart - Example Grade 2001 2007 Frosh 3500 4000 Sophomore 3000 Junior 6250 6800 Senior 6750 7000 Grad. 7250 8000 Multiple Column Charts are used for Comparison, select all three columns. Include title, description for axes and modify the legends. San Jose State University Engineering 10

Pie Chart Definition: A graph in the shape of a circle divided into sectors, whose areas correspond to the proportions of the quantities. Application: Visual representation of relative magnitudes of a given set of quantities San Jose State University Engineering 10

Pie Chart Label the Chart Use Chart Layout Engineering 10 San Jose State University Engineering 10

XY (Scatter) Plots XY plots are two dimensional graphs. Scientifically, it is a plot of independent variable (x) against a dependent variable (y). The plot is used to obtain a functional relationship between two variables There are five options in Chart sub-type menu. The first option, where only points are plotted, is the most common type used in engineering and science fields. A curve is fitted to the plotted points to obtain the function describing the relationship between the two variable. San Jose State University Engineering 10

XY (Scatter) Plots - Example Select Chart Layout (Layout 1) San Jose State University Engineering 10

Fitting a Curve to Data Points (XY) Given the plot of test results, the question is what would be your test score if you studied for 2.5 hours, no data is available for 2.5 hours. In order to answer the question, you have to find the equation relating the test score to the number of hours spent studying. San Jose State University Engineering 10

Fitting a Curve to Data Points (XY) Engineers frequently collect paired data in order to understand the characteristics or behavior of an object or a system. The goal is to capture the overall trend reflected by the entire data set. This can be achieved by obtaining the equation of a curve (or a straight line) that best describes (fits) the data points. The Method of Least Squares is used for this purpose. The Method of Least Squares minimizes the sum of the squares of the errors. San Jose State University Engineering 10

Fitting a Curve to Data Points (XY) The Method of Least Squares can be used to fit many different types of functions through a set of data points. The data obtained in many engineering applications may be represented by a straight line, exponential function, a power function, or a polynomial. Equation Type Mathematical expression y = ax + b Linear (straight line) Exponential y = aebx Power y = axb Logarithmic y = a ln(x) + b Polynomial (up to 6th order) y = c1 + c2x + c3x2 + …… + ck+1xk In Excel k = 6 The Method of Least Squares obtains the appropriate set of values for the coefficients, a, b, c1, …. San Jose State University Engineering 10

Fitting a Curve to Data Points (XY) Select a data point and right click, then choose Add Trendline option. Select the curve to fit the data. Data point Check the Set Intercept box to force the curve to pass through origin (0,0). Check the Display Equation on chart and the Display R-squared value on chart boxes. San Jose State University Engineering 10

Fitting the best Curve to Data Points There are six option to select from, start with your best guess and check the fit. The best fit is indicated by how close the correlation factor, R2, is to unity, the closer to 1 the better the fit. Exponential Linear Polynomial (3rd order) Polynomial (5th order) San Jose State University Engineering 10

Fitting the best Curve to Data Points Given the plot of test results, the question is what would be your test score if you studied for 2.5 hours, no data is available for 2.5 hours. y = .2361(2.5)5 – 4.4722(2.5)4 +31.764(2.5)3 – 107.53(2.5)2 + 185(2.5) – 60 y = 75.11 (exam score for 2.5 hours of studying) Substitute x = 2.5 in the 5th order polynomial equation to find y (hours spent studying). Linear Exponential Polynomial (3rd order) Polynomial (5th order) Equation Type Exam Score R-squared value .73 .675 .913 .931 75.1 77.3 62.9 65.5 Best fit (does not make sense) Best answer San Jose State University Engineering 10

An engineer is responsible for monitoring the quality of 1000-ohm resistors. To do this, the engineer must measure the resistance of a number of resistors within a batch selected at random. The results are shown below. The acceptable variation is ± 2% (980-1020). The question is how many resistors fall within the acceptable range. Sample No. Resistance, ohm Sample No. Resistance, ohm 1 1006 16 960 2 1006 17 976 3 978 18 954 4 965 19 1004 5 988 20 975 6 973 21 1014 7 1011 22 955 8 1007 23 973 9 935 24 993 10 1045 25 1023 11 1001 26 992 12 974 27 981 13 987 28 991 14 966 29 1013 15 1013 30 998 Histogram There are times that it is desirable to plot the data in a manner that shows how the values are distributed within a certain range. This type of plot is called a histogram (a relative frequency plot). Largest value = 1045 Smallest value = 935 Use the Max and MIN functions to find: San Jose State University Engineering 10

Histogram Data menu If Data Analysis (or Solver) does not appear, select File and choose Options, select Add-Ins, click on Go and check the boxes for Analysis ToolPak and Solver San Jose State University Engineering 10

Histogram Create the Bin range To create a histogram, you must first subdivide the range of the data into equally spaced intervals. The first interval must start at or below the smallest data value, and the last interval must extend to or beyond the largest data value. The interval bounds is called the Bin Range in Excel. Largest value = 1045 Smallest value = 935 The acceptable variation is ± 2% (980 to1020). Create the Bin range Find the desired interval: 40 (1020-980=40) The Bin Range 980 1020 900 < 935 Create a column in the Excel for the Bin Range 940 1060 > 1045 San Jose State University Engineering 10

Histogram Data range (has to be in one column) Select Data Analysis and choose Histogram Bin range Select to obtain a histogram plot San Jose State University Engineering 10

Histogram 16 data values fall in the 980+ – 1020 range The rule used in Excel is that if a data value falls on the interval boundary, the data value is assigned to the lower interval So, if you buy a resistor from this manufacturer there is only a (16/30)100 = 53.3% chance that resistor has a value of 1000±2% San Jose State University Engineering 10