Contingency Tables Counting Rules

Slides:



Advertisements
Similar presentations
Counting Principles Probability.
Advertisements

Consider the possible arrangements of the letters a, b, and c. List the outcomes in the sample space. If the order is important, then each arrangement.
Week 4 September Five Mini-Lectures QMM 510 Fall 2014.
Introduction to Probability
Statistics Review. Box-and-Whisker Plots The Parts of a Box and Whisker Plot Name the parts of a Box-and-Whisker Plot MedianUpper Quartile Lower.
How many possible outcomes can you make with the accessories?
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Business and Economics 7th Edition
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
Chapter 4 Probability.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
ENM 207 Lecture 5. FACTORIAL NOTATION The product of positive integers from 1 to n is denoted by the special symbol n! and read “n factorial”. n!=1.2.3….(n-2).(n-1).n.
Chapter 2 Section 2.4 Permutations and Combinations.
BCOR 1020 Business Statistics Lecture 8 – February 12, 2007.
Chapter 5 Section 5 Permutations and Combinations.
Copyright © Ed2Net Learning Inc.1. 2 Warm Up 1.List all combinations of Roshanda, Shelli, Toshi, and Hector, taken three at a time 2. In how many ways.
Class notes for ISE 201 San Jose State University
Chapter 4 Basic Probability
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
PROBABILITY (6MTCOAE205) Chapter 2 Probability.
Prepared by Lloyd R. Jaisingh
COMPLETE BUSINESS STATISTICS
Expected value a weighted average of all possible values where the weights are the probabilities of each outcome :
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Lecture II.  Using the example from Birenens Chapter 1: Assume we are interested in the game Texas lotto (similar to Florida lotto).  In this game,
Elementary Counting Techniques & Combinatorics Martina Litschmannová K210.
3.4 Counting Principles Statistics Mrs. Spitz Fall 2008.
Warm-Up 4/29. Rigor: You will learn how to find the number of possible outcomes using the Fundamental Counting Principle, permutations and combinations.
9.6 Counting Principles Permutations Combinations.
Chapter 5 Possibilities and Probability Counting Permutations Combinations Probability.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
Probability (Part 2) Chapter55 Contingency Tables Tree Diagrams Bayes’ Theorem Counting Rules McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies,
Methods of Counting Outcomes BUSA 2100, Section 4.1.
IT College Introduction to Computer Statistical Packages Lecture 9 Eng. Heba Hamad 2010.
Chapter 10 – Data Analysis and Probability
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
Part 2 – Factorial and other Counting Rules
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
The two way frequency table The  2 statistic Techniques for examining dependence amongst two categorical variables.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved. Essentials of Business Statistics: Communicating with Numbers By Sanjiv Jaggia and.
Permutations and Combinations
Discrete Mathematics Lecture # 25 Permutation & Combination.
PERMUTATIONS and COMBINATIONS
What is a permutation? A permutation is when you take a group of objects or symbols and rearrange them into different orders Examples: Four friends get.
Lesson 0.4 (Counting Techniques)
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 11 Counting Methods and Probability Theory.
Permutations and Combinations
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
Probability Chapter55 Random Experiments Probability Rules of Probability Independent Events Contingency Tables Counting Rules Copyright © 2010 by The.
BUSINESS MATHEMATICS & STATISTICS. Module 7 Factorials Permutations and Combinations ( Lecture 34) Elementary Probability ( Lectures 35-36) Chi-Square.
Quiz: Draw the unit circle: Include: (1)All “nice” angles in degrees (2) All “nice” angles in radians (3) The (x, y) pairs for each point on the unit circle.
Algebra. Factorials are noted by the expression n! and reads “n factorial”
Permutations and Combinations. Fundamental Counting Principle Fundamental Counting Principle states that if an event has m possible outcomes and another.
Contingency Tables Tree Diagrams Bayes’ Theorem Counting Rules
Elementary Counting Techniques & Combinatorics
Counting Methods and Probability Theory
combinaTorial Analysis
Chapter 0.4 Counting Techniques.
Statistics for 8th Edition Chapter 3 Probability
COUNTING AND PROBABILITY
Binomial Expansion 2 L.O. All pupils can follow where the binomial expansion comes from All pupils understand binomial notation All pupils can use the.
Permutations and Combinations
Lesson 11-1 Permutations and Combinations
Counting Methods and Probability Theory
QUANTITATIVE METHODS 1 SAMIR K. SRIVASTAVA.
Presentation transcript:

Contingency Tables Counting Rules Chapter Probability (Part 2) Contingency Tables Counting Rules McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, Inc. All rights reserved.

Contingency Tables What is a Contingency Table? Variable 1 A contingency table is a cross-tabulation of frequencies into rows and columns. Variable 1 Col 1 Col 2 Col 3 Row 1 Row 2 Row 3 Row 4 Variable 2 Cell A contingency table is like a frequency distribution for two variables.

Contingency Tables Example: Salary Gains and MBA Tuition Consider the following cross-tabulation table for n = 67 top-tier MBA programs:

Contingency Tables Example: Salary Gains and MBA Tuition Are large salary gains more likely to accrue to graduates of high-tuition MBA programs? The frequencies indicate that MBA graduates of high-tuition schools do tend to have large salary gains. Also, most of the top-tier schools charge high tuition. More precise interpretations of this data can be made using the concepts of probability.

Contingency Tables Marginal Probabilities The marginal probability of a single event is found by dividing a row or column total by the total sample size. For example, find the marginal probability of a medium salary gain (P(S2)). P(S2) = 33/67 = .4925 Conclude that about 49% of salary gains at the top-tier schools were between $50,000 and $100,000 (medium gain).

Contingency Tables Marginal Probabilities Find the marginal probability of a low tuition P(T1). P(T1) = 16/67 = .2388 There is a 24% chance that a top-tier school’s MBA tuition is under $40.000.

Contingency Tables Joint Probabilities A joint probability represents the intersection of two events in a cross-tabulation table. Consider the joint event that the school has low tuition and large salary gains (denoted as P(T1  S3)).

Contingency Tables Joint Probabilities So, using the cross-tabulation table, P(T1  S3) = 1/67 = .0149 There is less than a 2% chance that a top-tier school has both low tuition and large salary gains.

Contingency Tables Conditional Probabilities Found by restricting ourselves to a single row or column (the condition). For example, knowing that a school’s MBA tuition is high (T3), we would restrict ourselves to the third row of the table.

Contingency Tables Conditional Probabilities Find the probability that the salary gains are small (S1) given that the MBA tuition is large (T3). P(S1 | T3) = 5/32 = .1563 What does this mean?

Contingency Tables Independence To check for independent events in a contingency table, compare the conditional to the marginal probabilities. For example, if large salary gains (S3) were independent of low tuition (T1), then P(S3 | T1) = P(S3). Conditional Marginal P(S3 | T1)= 1/16 = .0625 P(S3) = 17/67 = .2537 What do you conclude about events S3 and T1?

Contingency Tables Relative Frequencies Calculate the relative frequencies below for each cell of the cross-tabulation table to facilitate probability calculations. Symbolic notation for relative frequencies:

Contingency Tables Relative Frequencies Here are the resulting probabilities (relative frequencies). For example, P(T1 and S1) = 5/67 P(T2 and S2) = 11/67 P(T3 and S3) = 15/67 P(S1) = 17/67 P(T2) = 19/67

Contingency Tables Relative Frequencies The nine joint probabilities sum to 1.0000 since these are all the possible intersections. Summing the across a row or down a column gives marginal probabilities for the respective row or column.

Contingency Tables Example: Payment Method and Purchase Quantity A small grocery store would like to know if the number of items purchased by a customer is independent of the type of payment method the customer chooses to use. Why would this information be useful to the store manager? The manager collected a random sample of 368 customer transactions.

Contingency Tables Example: Payment Method and Purchase Quantity Here is the contingency table of frequencies:

Contingency Tables Example: Payment Method and Purchase Quantity Calculate the marginal probability that a customer will use cash to make the payment. Let C be the event cash. P(C) = 126/368 = .3424 Now, is this probability the same if we condition on number of items purchased?

Contingency Tables Example: Payment Method and Purchase Quantity P(C | 1-5) = 30/88 = .3409 P(C | 6-10) = 46/135 = .3407 P(C | 10-20) = 31/89 = .3483 P(C | 20+) = 19/56 = .3393 P(C) = .3424, so what do you conclude about independence? Based on this, the manager might decide to offer a cash-only lane that is not restricted to the number of items purchased.

Contingency Tables How Do We Get a Contingency Table? Contingency tables require careful organization and are created from raw data. Consider the data of salary gain and tuition for n = 67 top-tier MBA schools.

Contingency Tables How Do We Get a Contingency Table? The data should be coded so that the values can be placed into the contingency table. Once coded, tabulate the frequency in each cell of the contingency table using MINITAB’s Stat | Tables | Cross Tabulation

Counting Rules Fundamental Rule of Counting If event A can occur in n1 ways and event B can occur in n2 ways, then events A and B can occur in n1 x n2 ways. In general, m events can occur n1 x n2 x … x nm ways.

Counting Rules Example: Stock-Keeping Labels How many unique stock-keeping unit (SKU) labels can a hardware store create by using 2 letters (ranging from AA to ZZ) followed by four numbers (0 through 9)? For example, AF1078: hex-head 6 cm bolts – box of 12 RT4855: Lime-A-Way cleaner – 16 ounce LL3319: Rust-Oleum primer – gray 15 ounce

Counting Rules Example: Stock-Keeping Labels View the problem as filling six empty boxes: There are 26 ways to fill either the 1st or 2nd box and 10 ways to fill the 3rd through 6th. Therefore, there are 26 x 26 x 10 x 10 x 10 x 10 = 6,760,000 unique inventory labels.

Counting Rules Example: Shirt Inventory L.L. Bean men’s cotton chambray shirt comes in 6 colors (blue, stone, rust, green, plum, indigo), 5 sizes (S, M, L, XL, XXL) and two styles (short and long sleeves). Their stock might include 6 x 5 x 2 = 60 possible shirts. However, the number of each type of shirt to be stocked depends on prior demand.

Counting Rules Factorials n! = n(n–1)(n–2)...1 The number of ways that n items can be arranged in a particular order is n factorial. n factorial is the product of all integers from 1 to n. n! = n(n–1)(n–2)...1 Factorials are useful for counting the possible arrangements of any n items. There are n ways to choose the first, n-1 ways to choose the second, and so on.

Counting Rules Factorials As illustrated below, there are n ways to choose the first item, n-1 ways to choose the second, n-2 ways to choose the third and so on.

Counting Rules Factorials A home appliance service truck must make 3 stops (A, B, C). In how many ways could the three stops be arranged? 3! = 3 x 2 x 1 = 6 List all the possible arrangements: {ABC, ACB, BAC, BCA, CAB, CBA} How many ways can you arrange 9 baseball players in batting order rotation? 9! = 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1 = 362,880

Counting Rules Permutations A permutation is an arrangement in a particular order of r randomly sampled items from a group of n items and is denoted by nPr In other words, how many ways can the r items be arranged, treating each arrangement as different (i.e., XYZ is different from ZYX)?

Counting Rules Example: Appliance Service Cans n = 5 home appliance customers (A, B, C, D, E) need service calls, but the field technician can service only r = 3 of them before noon. The order is important so each possible arrangement of the three service calls is different. The number of possible permutations is:

Counting Rules Example: Appliance Service Cans The 60 permutations with r = 3 out of the n = 5 calls can be enumerated. There are 10 distinct groups of 3 customers: Each of these can be arranged in 6 distinct ways: ABC ABD ABE ACD ACE ADE BCD BCE BDE CDE ABC, ACB, BAC, BCA, CAB, CBA Since there are 10 groups of 3 customers and 6 arrange-ments per group, there are 10 x 6 = 60 permutations.

Counting Rules Combinations A combination is an arrangement of r items chosen at random from n items where the order of the selected items is not important (i.e., XYZ is the same as ZYX). A combination is denoted nCr

Counting Rules Example: Appliance Service Calls Revisited n = 5 home appliance customers (A, B, C, D, E) need service calls, but the field technician can service only r = 3 of them before noon. This time order is not important. Thus, ABC, ACB, BAC, BCA, CAB, CBA would all be considered the same event because they contain the same 3 customers. The number of possible combinations is:

Counting Rules Example: Appliance Service Calls Revisited 10 combinations is much smaller than the 60 permutations in the previous example. The combinations are easily enumerated: ABC, ABD, ABE, ACD, ACE, ADE, BCD, BCE, BDE, CDE