Analyzing Bivariate Data

Slides:



Advertisements
Similar presentations
X y Exploratory data analysis Cross tabulations and scatter diagrams.
Advertisements

Microsoft Office XP Microsoft Excel
STROUD Worked examples and exercises are in the text PROGRAMME F4 GRAPHS.
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 3 Graphical.
Guide to Using Excel For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 6th Ed. Chapter 2: Graphs, Charts.
Excel Charts – Basic Skills Creating Charts in Excel.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 5 Analyzing.
Chapter 6: Pivot Tables Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
LSP 120: Quantitative Reasoning and Technological Literacy Section 118 Özlem Elgün.
Microsoft Excel 2010 Chapter 7
GRAPHICAL DESCRIPTIVE STATISTICS FOR QUALITATIVE, TIME SERIES AND RELATIONAL DATA.
Graphing With Excel Presented by Frank H. Osborne, Ph. D. © 2008 ID 2950 Technology and the Young Child.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Introduction to Spreadsheets Presented by Frank H. Osborne, Ph. D. © 2005 Bio 2900 Computer Applications in Biology.
X y Exploratory data analysis Cross tabulations and scatter diagrams.
Data Tutorial Tutorial on Types of Graphs Used for Data Analysis, Along with How to Enter Them in MS Excel Carryn Bellomo University of Nevada, Las Vegas.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 16 Improving.
Scatter Diagrams Summer Cadre What is a Scatter Diagram? A Scatter Diagram is used to confirm a relationship between two variables. A Scatter Diagram.
XP New Perspectives on Microsoft Office Excel 2003 Tutorial 4 1 Microsoft Office Excel 2003 Tutorial 4 – Working With Charts and Graphics.
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms Psych 209.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
FEBRUARY, 2013 BY: ABDUL-RAUF A TRAINING WORKSHOP ON STATISTICAL AND PRESENTATIONAL SYSTEM SOFTWARE (SPSS) 18.0 WINDOWS.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 15 The.
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 11 Regression.
Problem Solving Using Excel
Guide to Using Excel 2003 For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 7th Ed. Chapter 2: Graphs, Charts.
Excel Terms Worksheet: a grid of rows and columns Columns – labeled A, B, C, then AA, BB, etc. – 256 columns Rows – numbered 1, 2, 3 through 65,536 Cell.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
In many reports, there is usually a section that describes the demographics of the sample or population of subjects or clients who are included in the.
Demographic Profiles of Agency Clients - Part 2 Next, we will create a table and a column chart for the conservator field in my database. Because we are.
Graphs in Physics PowerPoint #4. A graph is… A convenient way to show data.
Graphing with Excel The Basics. Working With Excel The spreadsheet program Excel is useful for constructing data tables and graphs The results can easily.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 14 Experimental.
Mr. Magdi Morsi Statistician Department of Research and Studies, MOH
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 12 Multiple.
Using Microsoft® Excel This presentation is designed for Chapter 1, Section 1.2.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T3: Problem Solving Using Excel 2007.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 2 The.
EXCEL GRAPHING *Basic Graphing Steps* by A.B. -NNHS.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
Extracting Information from an Excel List The purpose of creating a database, or list in Excel, is to be able to manipulate the data elements in ways that.
Progress and Outcome Measures - Part 3 Progress and Outcome Measures Part 3, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin.
Problem Solving Using Excel
Plotting in Excel Ken youssefi Engineering 10.
Plotting in Excel KY San Jose State University Engineering 10.
Integrating Office 2003 Applications and the World Wide Web
Introduction to Excel 2007 January 29, 2008.
Guide to Using Excel 2007 For Basic Statistical Applications
BASIC SKILLS USING EXCEL
Microsoft Office Excel 2003
QM222 A1 More on Excel QM222 Fall 2017 Section A1.
Average Rebound Height
Microsoft Excel 2003 Illustrated Complete
Average Rebound Height
Guide to Using Excel 2003 For Basic Statistical Applications
Using Charts in a Presentation
Navya Thum February 06, 2013 Day 5: MICROSOFT EXCEL Navya Thum February 06, 2013.
Tutorial 7 – Integrating Access With the Web and With Other Programs
Unit 2 – Graphical Representation
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms
Navigating Excel.
Introduction to Excel 2007 Part 1: Basics and Descriptive Statistics Psych 209.
Assignment resource Working with Excel Tables, PivotTables, and Pivot Charts Fairhurst pp The commands on these slides work with the Week 2 Excel.
How to Use Microsoft Excel for Data Entry
Presentation transcript:

Analyzing Bivariate Data Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 5 Analyzing Bivariate Data

Doing Statistics for Business Chapter 5 Objectives Bivariate Qualitative Data: Contingency Tables Clustered & Stacked Bar Charts Identifying Quantitative Relationships: Scatter Plots The Least-squares Line

Doing Statistics for Business A Contingency Table is a table whose rows represent the possible values of one variable and whose columns represent the possible values for a second variable. The entries in the table are the number of times that each pair of values occurs.

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Contingency Table A company that manufactures cardboard boxes is trying to understand some of their quality problems. They have analyzed some data and determined that their major defects are Printing, Color and Skewness (how square the box is). Further attempts to pinpoint the problems have resulted in many opinions and finger pointing about responsibility. They decide to collect some additional data on defect type and the shift during which production occurred.

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Contingency Table (con’t) The data (sorted by defect type) are as follows:

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Contingency Table (con’t) Create a relative frequency contingency table for the data. What percentage of the defects were color? Does there appear to be any credence tot he claim that the majority of the defects occur on the third shift? Ans.

Doing Statistics for Business Figure 5.1 Two bar charts representing a contingency table

Doing Statistics for Business In a Clustered Bar Chart, the bars for one variable are grouped according to the values of the other qualitative variables.

Doing Statistics for Business Figure 5.2 Example of a Clustered Bar Chart

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Clustered Bar Chart The management of the company that manufactures cardboard boxes decide to have a meeting with the crews about the quality problems. The managers decide that a graphical display of the data is the best way to convey the information they have obtained and that they want to display the crew data for each of the quality defects.

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Clustered Bar Chart (con’t) Create a clustered bar chart that display the percent defects for each shift using the quality problems as the categories for the x axis.

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Clustered Bar Chart (con’t) Which shift contributes the largest percentage of color defects? The least percentage? What do you notice about the skewness defects? Ans. Crew 1, Crew 3, Only made by Crew 2

Doing Statistics for Business In a Stacked Bar Chart the data for the selected variable are represented as a percentage of the total for each category of the second variable. Each value of the selected variable is represented in a different way and the bars are “stacked” to total 100%.

Doing Statistics for Business Figure 5.3 Stacked Bar Chart

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Stacked Bar Chart The company that manufactures cardboard boxes decides to create a graphical display of the data to show to the employees. What the company wants to do is to display type of defect as a percentage of total defects for each shift. It is hoped that these data will help each shift concentrate on its own priorities. The contingency table for the defect is shown on the following slide.

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Stacked Bar Chart (con’t) Modify the contingency table to display defect types as a percentage of total defects for each shift.

Doing Statistics for Business TRY IT NOW! Quality Problems Creating a Stacked Bar Chart (con’t) Create a stacked bar chart for the data. Which defect type should each crew concentrate on? Why? Ans. Crew 1 color; Crew 2 printing; Crew 3 color

Doing Statistics for Business In a Scatter Plot an axis is used to represent each of the variables and the data are plotted as points on the graph. Typically, the independent variable is plotted on the x axis and the dependent variable is plotted on the y axis.

Doing Statistics for Business Figure 5.4 Scatter Plot

Doing Statistics for Business TRY IT NOW! Airline Fares Creating a Scatter Plot A travel agency was interested in knowing how airline fares were related to the length of the flight in miles. The agency hypothesized that the longer the flight, the more the airfare. The following data were collected:

Doing Statistics for Business TRY IT NOW! Airline Fares Creating a Scatter Plot (con’t) Which variable is the dependent variable and which is the independent variable? Make a scatter plot of the data. From your plot, do you think that the travel agency’s hypothesis was correct? Why or why not? Ans: Length = Independent Fare = Dependent Yes

Doing Statistics for Business Figure 5.6 Scatter Plot Indicating no Relationship Between Two Variables

Doing Statistics for Business TRY IT NOW! Starting Salaries & Math Courses Finding the Least-Squares Line The Career Planning office of a large university is interested in knowing whether there is a relationship between the starting salary of graduates and the number of mathematics courses the graduates had taken as students. The Career Planning office goes through the records for the last year and finds the following data.

Doing Statistics for Business TRY IT NOW! Starting Salaries & Math Courses Finding the Least-Squares Line (con’t) Which variable is the independent variable? The dependent variable?

Doing Statistics for Business TRY IT NOW! Starting Salaries & Math Courses Finding the Least-Squares Line (con’t) Use a grid to create a scatter plot of the data. Do you think that there is a linear relationship between the number of math courses taken and the starting salary? If so, describe the relationship. Ans. Dependent - salary, Independent number of Math Courses

Doing Statistics for Business Discovery Exercise 5.1 Discovering Relationships 1. The data below represent data taken on the number of weeks that a student was enrolled in a speed reading program and the speed gain in words per minute that the student has experienced:

Doing Statistics for Business Discovery Exercise 5.1 Discovering Relationships (con’t) 2. Plot the data on graph paper. Be sure to label your axes and to construct the graph so that it uses most of the paper. 3. Draw a straight line through the points that you think best represent the relationship between x and y. What criteria did you use for drawing the line you selected?

Doing Statistics for Business The Least Squares technique finds the equation of the line that minimizes the sum of the squared errors between the actual data points and the line.

Doing Statistics for Business Figure 5.7 Deviations Between the Data Points and the Line

Doing Statistics for Business The distance between the predicted value of Y, called the deviation or error. The deviation, e, is equal to - y.

Doing Statistics for Business TRY IT NOW! Starting Salaries and Math Courses Finding the Least-Squares Line The Career Planning office at the university wants to use least squares to find the equation that relates the number of math courses taken and starting salary. The data are: Number of math courses Starting Salary ($) 1 26,284 1 25,470 2 26,777 3 27,269 4 28,553 6 30,054

Doing Statistics for Business TRY IT NOW! Starting Salaries and Math Courses Finding the Least-Squares Line (con’t) (a) Find the equation for the least-squares line for the data. (b) Explain what the least-squares line tells the Career Planning Office about math courses and starting salary. Ans: = 25,020 + 840.6 The Base Salary is $25,020 and every math class increases it by $840.60.

Doing Statistics for Business TRY IT NOW! Starting Salaries and Math Courses Finding the Least-Squares Line Once the least-squares equation is obtained the Career Planning Office wants to see whether the equation does a good job of predicting starting salary for a given number of math courses. Plot the data and the least-squares line on the same graph.

Doing Statistics for Business TRY IT NOW! Starting Salaries and Math Courses Finding the Least-Squares Line Use the equation you just found to predict the starting salary of a person who takes 2 mathematics courses. Do the same thing for the starting salary of a person who takes 5 mathematics courses. Do you think the predictions from the least-squares line are useful? Why or why not? Is what you just did interpolation or extrapolation?

Doing Statistics for Business TRY IT NOW! Starting Salaries and Math Courses Finding the Least-Squares Line (con’t) Now use the equation of the least-squares line to predict the starting salary of a person who takes no math courses. Do the same thing for a person who takes 10 math courses. Do you think these predictions are valid? Why or why not? Ans. $26,701; $29,223 Interpolation $25,020, $33,426 No. You are extrapolating.

Doing Statistics for Business Creating Contingency Tables in Excel 1. From the Data menu, select PivotTable and Pivot Chart Report . 2. Since you have already highlighted the range that contains your data, you can just proceed by clicking Next>. 3. Indicate where you want the Pivot table to appear and click the button labeled Layout.

Doing Statistics for Business Creating Contingency Tables in Excel 4. Drag the field box for Rank to the area marked Row; and the field box for School to the area marked Column. Now drag the field box for either Rank or School into the area marked Data. 5. Click on Next and tell Excel where you want the table to appear; either in the current worksheet or in a new worksheet. 6. Finally, click on Finish.

Doing Statistics for Business Figure 5.10 Contingency Table of Rank and School

Doing Statistics for Business The basics of creating a chart in Excel, using the Chart Wizard. 1. Highlight the data (Frequency table) that you want to graph. 2. Invoke the Chart Wizard by clicking on the icon on the toolbar. 3. Follow the directions and hints from the Chart Wizard. 4. Edit the graph to include any other features or changes you want.

Doing Statistics for Business Creating Clustered Bar Charts in in Excel 1. Highlight just a portion of the pivot table by copying it to another location in the worksheet using the Paste Special command. To do this click on the lower right hand corner of the table and highlight it. Select Copy from the Edit menu. Then, click on the location for the copy and select Paste Special. In the Paste section, click on the radio button for Values and in the Operation section, select None. Click OK.

Doing Statistics for Business Creating Clustered Bar Charts in in Excel (con’t) 2. Highlight the copy of the table, being careful not to highlight the Grand Total row or column. Then start the Chart Wizard and select Column as the type of chart and clustered chart as the sub-type. 3. Click Next twice to get to the Options step; add titles and make any desired formatting changes. 4. Click Next to indicate where you want the chart to be located and then click Finish.

Doing Statistics for Business Figure 5.14 Clustered Bar Chart

Doing Statistics for Business Creating Stacked Bar Charts in in Excel 1. Highlight the rows of the pivot table, being careful not to include the Grand Total row and column and start the Chart Wizard. 2. Select Column as the chart type and 100% Stacked Column as the sub-type. 3. Click Next twice to get to the Options step; put in titles and any other formatting changes that you want. 4. Click Next, enter the location for the chart, and click Finish to display the chart.

Doing Statistics for Business Figure 5.17 Stacked Bar Chart

Doing Statistics for Business Analyzing Quantitative Bivariate Data in Excel 1. Highlight the range of the data and start the Chart Wizard. Select XY (Scatter) as the chart type and Scatter no lines) for the subtype. 2. Select Next> twice to get to the Chart Options dialog box; put in titles and any other formatting changes that you want. 3. Select Next> to tell Excel where to locate the chart and click Finish to display the chart.

Doing Statistics for Business Figure 5.20 Finished Scatter Plot

Doing Statistics for Business Adding the Least-Squares Line to Your Scatter Plot 1. Click on any one of the points in the scatter plot to highlight them all. 2. From the Chart menu, select Add Trendline. The Add Trendline dialog box will open. 3. In the Trend/Regression section, highlight Linear. 4. Click on the Options tab and click the box labeled Display equation on chart. 5. Click OK.

Doing Statistics for Business Figure 5.24 Scatter Plot with Least-Squares Line

Doing Statistics for Business Chapter 5 Summary In this chapter you have learned: Some methods for looking at how two variables are related. There are graphical methods, such as stacked bar charts, clustered bar charts, and scatter plots. There are quantitative methods, such as least-squares analysis.