Frequencies and the normal distribution

Slides:



Advertisements
Similar presentations
Graphing With Excel.
Advertisements

Prepared by : Mahmoud A. Abu Hashish  Used to organize and analyze information  Made up of columns and rows  Columns and rows intersect.
Review Ch. 15 – Spreadsheet and Worksheet Basics © 2010, 2006 South-Western, Cengage Learning.
Microsoft Office XP Microsoft Excel
Start up Excel. Notice that each row has a number, and each column has a letter. Click in A1 (column A, row 1), and type in a title for your data.
Introduction to Excel 2007 Part 2: Bar Graphs and Histograms February 5, 2008.
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.
Creating a Histogram using the Histogram Function.
Statistical Analysis with Excel
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 2.2.
Histograms Capital Credit Union Issue: Analyze credit card balances for Capital Credit Union customers using a frequency distribution and histogram. Objective:
Histograms & Summary Data.  Summarizing large of amounts of data in two ways: Histograms: graphs give a pictorial representation of the data Numerical.
Introduction to Excel 2007 Bar Graphs & Histograms Psych 209 February 1st, 2011.
CS1100: Computer Science and Its Applications Creating Graphs and Charts in Excel.
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms Psych 209.
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 2.
Graphing in Excel Dr. Denise Harlem January 29, 2015.
Homework Discussion Homework 1 (Glade Manual Chapter 1) Introduction to Excel.
Excel at Excel Computer Literacy What is Excel? We use Excel for: Organizing data Making calculations Making sense of data Charting data Sharing.
Excel Worksheet # 5 Class Agenda Formulas & Functions
06. Excel Charts. File -> Open -> 06b-datastart.xlsx.
1 XY Scatter Plots in Excel In this example, the position of a hanger on a spring was measured (with respect to a Motion Sensor) as a function.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 2.2.
Creating Column Graphs in Excel ® Activity 6: Mapping Seed Sources.
Plot Using Excel. Select Data Insert →Charts →Scatter.
Welcome to MM207 - Statistics! Unit 2 Seminar Monday 8:00 – 9:00 pm ET Professor: Dan Watson Good Evening Everyone! To resize your pods: Place your mouse.
Frequencies and the normal distribution CSC 152 (Blum)1.
Creating Histograms on the TI-84 and in Excel Mr. Ricks Madison High School.
Using Google Sheets To help with data. Sheets is a spreadsheet program that can interface with Docs, or Slides A spreadsheet program has cells (little.
Week 1 Day 3 (2.1, 2.2, 2.3) Summarizing Data I. Step one You will need to determine the type of the variable to summarize, whether it is Qualitative.
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
How To Use Google Spreadsheet. 1. Create a GMail account if you do not already have one To create a GMail account: 1. Go to mail.google.commail.google.com.
Resource Review Excel formula basics Demonstrate how to enter manual formulas Examine some of the available functions and their usage Discuss the.
Statistical Analysis with Excel © 2012 Project Lead The Way, Inc.Introduction to Engineering Design.
EXCEL CHAPTER 6 ANALYZING DATA STATISTICALLY. Analyzing Data Statistically Data Characteristics Histograms Cumulative Distributions Classwork: 6.1, 6.6,
Frequency Distributions
Histogram The data must be in Frequency Distribution (see presentation if needed) form for Excel to draw a histogram Make your Frequency Distribution active.
Graphing With Excel.
Graphing.
We know about inserting numbers in Excel and how to sum and average numbers. Insert these numbers and in Cell A9, find the average of the numbers. In.
CSE111 Introduction to Computer Applications
Guide to Using Excel 2007 For Basic Statistical Applications
Excel Part 4 Working with Charts and Graphics
Graphics GrowingKnowing.com © 2013.
Excel 2010.
XY Scatter Plots in Excel 2007
Excel Part 4 Working with Charts and Graphics
Frequencies and the normal distribution
Statistical Analysis with Excel
INTRO TO EXCEL Computer Technology.
Statistical Analysis with Excel
Guide to Using Excel 2003 For Basic Statistical Applications
Statistics Time Series – Moving Average
More Weather Stats.
Good afternoon Happy Thursday
Microsoft Excel 101.
Excel 2010.
Random functions.
Know Your Charts Unit 3 Excel.
Unit 2 – Graphical Representation
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms
Topic 7: Visualization Lesson 2 – Frequency Charts in Excel
Budget expenses, Loans, and Stats
Excel Part 4 Working with Charts and Graphics
Experiment #2 Resistor Statistics
Mathematical Formulas and Excel
Excel for Educators Class Notes
How to Use Microsoft Excel for Data Entry
Presentation transcript:

Frequencies and the normal distribution CSC 152 (Blum)

Make a histogram with a bin width of 0 Make a histogram with a bin width of 0.1 using the House Fly data provided. CSC 152 (Blum)

Is that normal? We want to compare the distribution to a normal distribution. We will make a histogram is a more tedious procedure that will allow us to also plot the normal distribution function for a nice visual comparison. CSC 152 (Blum)

Calculate the mean (average) and standard deviation of the House –fly wing data The normal distribution uses the average and standard deviation as parameters controlling the center of the distribution and how spread out it is. CSC 152 (Blum)

Calculate the sample size (count) of the data The normal distribution is about probabilities. We will use the count to turn a frequency (the number of times something occurred) into a percentage/probability that something occurred. CSC 152 (Blum)

Calculate the minimum and maximum of the data CSC 152 (Blum)

Make a range of data starting at the Min plus 0 Make a range of data starting at the Min plus 0.00001 and going to the Max by 0.1’s We are making the bins that Excel generated so nicely for us in the fast histogram. There is no exact rule for what the bin width should be – that’s why Excel lets you adjust that parameter. Except in the tail of the distribution, you probably don’t want frequencies of 1 or 0. We are using a bin width of 0.1 CSC 152 (Blum)

Warning: Array formula Array formulas have results that span several cells instead of just one. They require: Highlighting enough cells for the complete answer Clicking Ctrl-Shift-Enter instead of just Enter. If you attempt to edit part of an array formula result, problems occur. Use the Esc key to get out of it. CSC 152 (Blum)

Highlight cells D2:D21 (for the answer) and insert the formula =FREQUENCY(A2:A101,C2:C21) and then hit Ctrl-Shift-Enter The range A2:A101 is the data and the range C2:C21 are the bins. CSC 152 (Blum)

A frequency is the number of times something occurs – in this case the values up to and including 3.6, then the values between 3.6 (exclusive) and 3.7 (inclusive), etc. CSC 152 (Blum)

Make a quick (unformatted, un-designed) XY Scatter graph CSC 152 (Blum)

Normal distribution   CSC 152 (Blum)

Use Excel’s formula for the normal distribution Notice that we have used absolute addressing for the mean B$2 and standard deviation B$4. That way when the formula is copied elsewhere, the 2 and 4 are held fixed. The 4th argument is whether or not we want to sum the distribution everything from negative infinity up to and including a value – we said no. CSC 152 (Blum)

Before comparing we need two more steps Before comparing we need two more steps. The first is to divide the frequencies by the sample size turning them effectively into probabilities Instead of saying the value 4.2 occurred 7 times in a sample size of 100, we say 4.2 occurred 0.07 or 7% of the time. Note the count requires absolute addressing. CSC 152 (Blum)

The normal distribution has to be multiplied by the bin width – the separation between our values We had gone up by 0.2’s instead of by 0.1’s there would be roughly half as many Frequencies with roughly twice the value they have now. In math class we’d probably call the bin width Δx. This way we can get a single point to “stand in for” all the values from x to x+ Δx CSC 152 (Blum)

Highlight columns C, F & G (only where there’s data) and Insert an XY-Scatter chart. To highlight non-consecutive columns: highlight the first column then hold down the Ctrl key while highlighting the second (and third) column. Then let go of Ctrl. CSC 152 (Blum)

Apply a Chart Layout (e.g. 1) under Design. CSC 152 (Blum)

Change the title and axis labels CSC 152 (Blum)

Format the axis to have a Minimum of 3 CSC 152 (Blum)

Right click on a data point and choose Select Data CSC 152 (Blum)

Select a data set, click Edit and give the series a name. CSC 152 (Blum)

Result – see legend CSC 152 (Blum)

Right click on the second (normal dist Right click on the second (normal dist.) series and choose Change Format Data Series. Choose the Paint bucket (Fill & Line). Choose Line, Solid Line and pick a color CSC 152 (Blum)

And on Marker choose None CSC 152 (Blum)

Result CSC 152 (Blum)

Skew and Kurt Recall that the skew (skewness) and kurt (kurtosis) calculations also provide measures of how close a distribution is to normal or in what way and by how much it deviates from a normal distribution. Calculate skew and kurt for the fly data CSC 152 (Blum)

Skewness rule of thumb (https://brownmath.com/stat/shape.htm) CSC 152 (Blum)

CSC 152 (Blum)

Histogram alternative The rest is how to make a histogram using the frequency data we just generated. CSC 152 (Blum)

Histogram: highlight columns C & D and choose Insert Column Chart CSC 152 (Blum)

Right click and choose Select Data CSC 152 (Blum)

Highlight Series 1 and click Remove CSC 152 (Blum)

Highlight Series 2 and click Edit under Horizontal Axis Labels CSC 152 (Blum)

Then highlight the C column and click OK CSC 152 (Blum)

Right click on the x axis, Choose Format, choose Number, change the category to Number and set the Decimal place to 1 CSC 152 (Blum)

Result so far CSC 152 (Blum)

Choose a Layout (e.g. 7) and label axes CSC 152 (Blum)

Add a title (if you haven’t got one already) Add a title (if you haven’t got one already). Design tab, Add Chart Element, … CSC 152 (Blum)

Right click on the columns and choose Format Data Series Right click on the columns and choose Format Data Series. Choose the gap width to be 0%. CSC 152 (Blum)

Choose a Solid Line and a Border Color. CSC 152 (Blum)

Result CSC 152 (Blum)