Copyright 2013 by Laura Schultz. All rights reserved. Page 1 of 6

Similar documents
Probability Distributions

You flip a fair coin four times, what is the probability that you obtain three heads.

Probability Distributions

MATH 140 Lab 4: Probability and the Standard Normal Distribution

Binomial Probability Distribution

TEACHER NOTES MATH NSPIRED

Normal Probability Distribution

Stats on the TI 83 and TI 84 Calculator

The normal approximation to the binomial

Ch5: Discrete Probability Distributions Section 5-1: Probability Distribution

Normal distribution. ) 2 /2σ. 2π σ

Using SPSS, Chapter 2: Descriptive Statistics

Merging Labels, Letters, and Envelopes Word 2013

Probability Distributions

4. Continuous Random Variables, the Pareto and Normal Distributions

5/31/ Normal Distributions. Normal Distributions. Chapter 6. Distribution. The Normal Distribution. Outline. Objectives.

6 3 The Standard Normal Distribution

CHAPTER 7 INTRODUCTION TO SAMPLING DISTRIBUTIONS

Chapter 5: Discrete Probability Distributions

Coins, Presidents, and Justices: Normal Distributions and z-scores

Chapter 4. Probability Distributions

6.4 Normal Distribution

Chapter 2: Descriptive Statistics

Descriptive Statistics

Years after US Student to Teacher Ratio

3.4. The Binomial Probability Distribution. Copyright Cengage Learning. All rights reserved.

The right edge of the box is the third quartile, Q 3, which is the median of the data values above the median. Maximum Median

Directions for Frequency Tables, Histograms, and Frequency Bar Charts

The normal approximation to the binomial

One-Way ANOVA using SPSS SPSS ANOVA procedures found in the Compare Means analyses. Specifically, we demonstrate

Drawing a histogram using Excel

Projects Involving Statistics (& SPSS)

Normal distributions in SPSS

SOLUTIONS: 4.1 Probability Distributions and 4.2 Binomial Distributions

Summary of important mathematical operations and formulas (from first tutorial):

Appendix 2.1 Tabular and Graphical Methods Using Excel

5: Magnitude 6: Convert to Polar 7: Convert to Rectangular

Data Analysis Tools. Tools for Summarizing Data

Updates to Graphing with Excel

Data analysis and regression in Stata

MAT 155. Key Concept. September 22, S5.3_3 Binomial Probability Distributions. Chapter 5 Probability Distributions

ITS Training Class Charts and PivotTables Using Excel 2007

Binary Adders: Half Adders and Full Adders

Intermediate PowerPoint

Formulas, Functions and Charts

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Calculator Notes for the TI-Nspire and TI-Nspire CAS

MBA 611 STATISTICS AND QUANTITATIVE METHODS

The Normal Distribution

StatCrunch and Nonparametric Statistics

Excel Basics By Tom Peters & Laura Spielman

Descriptive statistics Statistical inference statistical inference, statistical induction and inferential statistics

Create Charts in Excel

Chapter 3. The Normal Distribution

Lecture 5 : The Poisson Distribution

How to Make the Most of Excel Spreadsheets

Chapter 3 RANDOM VARIATE GENERATION

Describing, Exploring, and Comparing Data

Part I Learning about SPSS

Chapter 2: Frequency Distributions and Graphs

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

Data exploration with Microsoft Excel: univariate analysis

Using Formulas, Functions, and Data Analysis Tools Excel 2010 Tutorial

Graphing Parabolas With Microsoft Excel

Step 3: Go to Column C. Use the function AVERAGE to calculate the mean values of n = 5. Column C is the column of the means.

There are a number of superb online resources as well that provide excellent blackjack information as well. We recommend the following web sites:

Density Curve. A density curve is the graph of a continuous probability distribution. It must satisfy the following properties:

An Introduction to Basic Statistics and Probability

CREATING FORMAL REPORT. using MICROSOFT WORD. and EXCEL

HISTOGRAMS, CUMULATIVE FREQUENCY AND BOX PLOTS

Lecture 2 Mathcad Basics

Microsoft Access Basics

Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur

Lab 11. Simulations. The Concept

Dealing with Data in Excel 2010

Introduction to the TI-Nspire CX

Toad for Data Analysts, Tips n Tricks

USING EXCEL ON THE COMPUTER TO FIND THE MEAN AND STANDARD DEVIATION AND TO DO LINEAR REGRESSION ANALYSIS AND GRAPHING TABLE OF CONTENTS

TImath.com. Statistics. Areas in Intervals

THE BINOMIAL DISTRIBUTION & PROBABILITY

Gestation Period as a function of Lifespan

In This Issue: Excel Sorting with Text and Numbers

STT315 Chapter 4 Random Variables & Probability Distributions KM. Chapter 4.5, 6, 8 Probability Distributions for Continuous Random Variables

seven Statistical Analysis with Excel chapter OVERVIEW CHAPTER

An Introduction to SPSS. Workshop Session conducted by: Dr. Cyndi Garvan Grace-Anne Jackman

4. Descriptive Statistics: Measures of Variability and Central Tendency

How to Filter and Sort Excel Spreadsheets (Patient-Level Detail Report)

Using Your TI-89 in Elementary Statistics

Using Excel 2000 to Create a Weighted-Grade Grade Book

Client Marketing: Sets

Introduction to Microsoft Excel 2007/2010

AP STATISTICS REVIEW (YMS Chapters 1-8)

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

CALCULATIONS & STATISTICS

Q&As: Microsoft Excel 2013: Chapter 2

Creating Charts in Microsoft Excel A supplement to Chapter 5 of Quantitative Approaches in Business Studies

An Introduction to Excel Pivot Tables

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

SAS Analyst for Windows Tutorial

Data Analysis. Using Excel. Jeffrey L. Rummel. BBA Seminar. Data in Excel. Excel Calculations of Descriptive Statistics. Single Variable Graphs

Transcription:

Using Your TI-NSpire Calculator: Binomial Probability Distributions Dr. Laura Schultz Statistics I This handout describes how to use the binompdf and binomcdf commands to work with binomial probability distributions. It also describes how to find the mean and standard deviation for any discrete probability distribution and how to plot a probability histogram. Consider the following: People with type O-negative blood are said to be universal donors. About 7% of the U.S. population has this blood type. Suppose that 45 people show up at a blood drive. Let x = the number of universal donors among a random group of 45 people Let s begin by finding the probability that none of the 45 donors have type O-negative blood. 1. From the home screen, indicate that you want to start a New Document and select 1: Add Calculator. 2. Press the b key and then select 5: Probability followed by 5: Distributions. We ll be using D: Binomial Pdf... for this calculation. 3. The syntax for the binomial probability density function command is binompdf(n,p,x). If you prefer, you can type in this command directly instead of navigating through menus. n: This is the number of trials. For this example, n = 45 (the number of blood donors). p: This is the success probability. For this example, p = 0.07 (the probability that a randomly selected American has type O-negative blood). Note that p must be in decimal form. x: This is the number of successes. For this example, we want to know the probability that none of the 45 donors have type-0 negative blood, so x = 0. Note that x must be a whole number. Copyright 2013 by Laura Schultz. All rights reserved. Page 1 of 6

4. Your calculator will return the probability that exactly 0 out of the 45 donors have type O-negative blood. You will find that P(x = 0) = 0.0382. In other words, there is a 3.82% chance that none of the 45 people are universal donors. Remember to round all probability values to 3 significant figures. 5. Note that you can type the command directly into your calculator instead of navigating through menus. Give it a try. Type binompdf(45,0.07,0) and press. (You ll end up with the same result more quickly if you learn the syntax for the various calculator commands we ll be using this semester.) 6. If you haven t already done so, press g» and save your file. (I named my file blood. ) Next, let s generate the binomial probability distribution for n = 45 and p = 0.07. To generate a binomial probability distribution, we simply use the binomial probability density function command without specifying an x value. In other words, the syntax is binompdf(n,p). Your calculator will output the binomial probability associated with each possible x value between 0 and n, inclusive. The trick is to save all these values. The most efficient way to do so is to work from within a spreadsheet. 1. Press ~ and select 4: Insert followed by 6: Lists & Spreadsheet to add a spreadsheet to your document. 2. Name column A successes. We want to fill this list with all of the possible values of x between 0 and 45. Move down to the next box in the column and type seq(x,x,0,45). Press the key and the list will fill with the integers between 0 and 45 inclusive. Note that the general syntax for this command is seq(x,x,0,n). 3. Move over and name column B prob. We want to fill this list with the probability of obtaining each of the values of x contained in column A. Move down to the second box in column B and type binompdf(45,0.07). Press, and Column B will fill with the probabilities for 0 x n successes. Scroll down the spreadsheet to view the complete binomial probability distribution for n = 45 and p = 0.07. Copyright 2013 by Laura Schultz. All rights reserved. Page 2 of 6

How to construct a probability histogram 1. Let s plot a histogram for this probability distribution. Press the b key and then select 3: Data followed by 8: Summary Plot. 2. Specify that the x list is successes and the summary list is prob. I prefer to produce the plot on a new page, but you could plot it within the spreadsheet by splitting the display. 3. Note that the histogram that is produced isn t quite what we want. Press the b key and then select 2: Plot Properties followed by 2: Histogram Properties. Click on 2: Bin Settings followed by 1: Equal Bin Width. Specify a width of 1 and an alignment of 0, and click on OK. 4. Adjust the window settings to make the plot easier to read. Press the b key and then select 5: Window/Zoom followed by 1: Window Settings. Experiment with the settings until you end up with a plot that captures the shape of the probability distribution, yet is still readable. 5. Use the touch pad to move across the bars, and you ll find the probability associated with a given number of successes. For instance, we find that P(x = 1) = 0.1293. Given that x is a discrete random variable, the notation [1.000, 2.000) is equivalent to saying that x = 1. You could force the x-axis to be categorical (and separate the bars), but the resulting graph isn t as pretty. Copyright 2013 by Laura Schultz. All rights reserved. Page 3 of 6

Working with a binomial probability distribution Use the touch pad to navigate back to your calculator screen (1.1). Next, we ll practice finding some binomial probabilities. 1. Let s find the probability that at least one of the 45 donors has type O-negative blood. The tedious approach would be to add up P(x = 1) + P(x = 2) + P(x = 3) +...+ P(x = 45). Don t! Instead, take advantage of the fact that the complement of at least one is none. Thus, P(1 x 45) = 1 - P(x = 0) = 0.962. The screen shot to the right shows how you can use the binompdf command to find this probability. Remember to round probability values to 3 significant figures. 2. It is often helpful to view the spreadsheet at the same time as the calculator using a split screen. Press the ~ key and select 5: Page Layout followed by 2: Select Layout. I chose to use Layout 2. Then, I pressed the b key and added a calculator to the right side of the screen. 3. Next, let s find the probability that no more than three of the donors have type O-negative blood. To do so, we need to find P(x = 0) + P(x = 1) + P(x = 2) + P(x = 3). You could write down the corresponding probabilities from the prob list in your spreadsheet and then add them up. 4. Alternatively, we can use the sum command and specify the range of items in the prob list that we wish to add up. The key is to remember that the first item in the list corresponds to P(x = 0); that is, the row number corresponds to x + 1. The syntax for the sum command is sum(list,start,end). For this example, type sum(prob,1,4) and press. This command tells your calculator to sum the contents of rows 1 through 4 in the prob list. We find that P(x 3) = 0.613. In other words, there is a 61.3% chance that no more than three of the 45 donors have type O-negative blood. 5. A third approach is to use the binomcdf command. This command finds the cumulative probability of obtaining x or fewer successes. The syntax is binomcdf(n,p,x). This command is a useful whenever you are asked to find the probability of no more than x successes. To find the probability that no more than three of the donors have type O- negative blood, use binomcdf(45,0.07,3). This command tells your calculator to find P(x = 0) + P(x = 1) + P(x = 2) + P(x = 3), which is exactly what we need to do here. We obtain the same answer as before, P(x 3) = 0.613. 6. Through creative combinations of the binompdf and binomcdf commands, you will find it possible to solve any sort of binomial probability problem that comes your way. Suppose that we want to find the probability that at least two of the donors have type O-negative blood. Recognize that this is the complement of no more than one of the donors having this blood type, Copyright 2013 by Laura Schultz. All rights reserved. Page 4 of 6

and you can easily solve this problem. We find that P(x 2) = 1 - P(x 1) = 0.833. 7. As a final example, let s find the probability that between 4 and 8 of the donors have type O-negative blood. That is, find P(4 x 8). You could solve this problem using the sum( command and your binomial probability distribution. Alternatively, you can strategically use the binomcdf command. Note that P(4 x 8) = P(x 8) - P(x 3). By subtracting out P(x 3), we are making sure that P(x = 4) is included in our calculations. Using the binomcdf command as shown to the right, we find that P(4 x 8) = 0.384. Using this approach saves you from having to generate the binomial probability distribution and figure out the correct rows to add up. 8. The previous example can be solved more easily by navigating through the menus of your Nspire or by using a slightly different command syntax. Press the b key and select 5: Probability followed by 5: Distributions. Select E: Binomial Cdf. The dialog box that opens up allows you to specify the desired lower and upper bounds directly, in this case, 4 and 8. Note that we end up with the same result. Summary: binompdf vs. binomcdf commands Here are some useful applications of the binompdf and binomcdf commands: To find P(x = k), use binompdf(n,p,k) To find P(x k), use binomcdf(n,p,k) To find P(x < k), use binomcdf(n,p,k-1) To find P(x > k), use 1-binomCdf(n,p,k) To find P(x k), use 1-binomCdf(n,p,k-1) Note: k refers to some number of successes between 0 and n. Copyright 2013 by Laura Schultz. All rights reserved. Page 5 of 6

How to find μx and σx for a discrete probability distribution 1. What is the expected number of universal donors out of the 45 people who show up at the blood drive? For all discrete random variables, E(x) = µ x = x P(x). For the special case of a binomial probability distribution, E(x) = μx = np. For this example, E = (45)(0.07) = 3.15 (round to 3.2). We can find both μ and σ for a binomial probability distribution (or any other type of discrete probability distribution) by using the one-variable statistics command on the TI-Nspire. 2. Press the b key and select 6: Statistics followed by 1: Stat Calculations. Then, select 1: One- Variable Statistics. Somewhat un-intuitively, you need to specify that you will be using one list. The X1 list is the list containing the x values (successes for this example), and the frequency list is the one containing the corresponding P(x) values (prob for this example). 3. Your calculator will return the output shown below. Note that what it calls x is really μ. Rounding to one more decimal place that we started with, we find that the expected number of universal donors out of 45 is 3.2 people, with a standard deviation of 1.7 people. Copyright 2013 by Laura Schultz. All rights reserved. Page 6 of 6