STAT 35A HW2 Solutions

Similar documents
Section 6.2 Definition of Probability

Chapter 4 Lecture Notes

Probability. Sample space: all the possible outcomes of a probability experiment, i.e., the population of outcomes

Contemporary Mathematics- MAT 130. Probability. a) What is the probability of obtaining a number less than 4?

EXAM. Exam #3. Math 1430, Spring April 21, 2001 ANSWERS

AP Statistics 7!3! 6!

Lesson 1. Basics of Probability. Principles of Mathematics 12: Explained! 314

MATH 140 Lab 4: Probability and the Standard Normal Distribution

Solutions: Problems for Chapter 3. Solutions: Problems for Chapter 3

Foundation of Quantitative Data Analysis

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

AP Stats - Probability Review

The overall size of these chance errors is measured by their RMS HALF THE NUMBER OF TOSSES NUMBER OF HEADS MINUS NUMBER OF TOSSES

Basic Probability. Probability: The part of Mathematics devoted to quantify uncertainty

Math 58. Rumbos Fall Solutions to Review Problems for Exam 2

Probability: The Study of Randomness Randomness and Probability Models. IPS Chapters 4 Sections

How To Understand And Solve A Linear Programming Problem

The Binomial Probability Distribution

The study of probability has increased in popularity over the years because of its wide range of practical applications.

Homework 3 Solution, due July 16

AMS 5 CHANCE VARIABILITY

Statistics 100A Homework 2 Solutions

Section 7C: The Law of Large Numbers

Name: Date: Use the following to answer questions 2-4:

SOLUTIONS: 4.1 Probability Distributions and 4.2 Binomial Distributions

Chapter What is the probability that a card chosen from an ordinary deck of 52 cards is an ace? Ans: 4/52.

Chapter 5. Discrete Probability Distributions

Characteristics of Binomial Distributions

Ch. 13.3: More about Probability

$ ( $1) = 40

Introductory Probability. MATH 107: Finite Mathematics University of Louisville. March 5, 2014

ACMS Section 02 Elements of Statistics October 28, 2010 Midterm Examination II Answers

Exam 3 Review/WIR 9 These problems will be started in class on April 7 and continued on April 8 at the WIR.

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

Unit 19: Probability Models

Session 8 Probability

MA 1125 Lecture 14 - Expected Values. Friday, February 28, Objectives: Introduce expected values.

Statistics I for QBIC. Contents and Objectives. Chapters 1 7. Revised: August 2013

Chapter 4 & 5 practice set. The actual exam is not multiple choice nor does it contain like questions.

Determine the empirical probability that a person selected at random from the 1000 surveyed uses Mastercard.

Probability --QUESTIONS-- Principles of Math 12 - Probability Practice Exam 1

Random variables, probability distributions, binomial random variable

6 Scalar, Stochastic, Discrete Dynamic Systems

A probability experiment is a chance process that leads to well-defined outcomes. 3) What is the difference between an outcome and an event?

Chapter 4: Probability and Counting Rules

Common Tools for Displaying and Communicating Data for Process Improvement

How To Check For Differences In The One Way Anova

Basic Probability Theory II

Section 6-5 Sample Spaces and Probability

In the situations that we will encounter, we may generally calculate the probability of an event

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

Math/Stats 342: Solutions to Homework

COMMON CORE STATE STANDARDS FOR

The Math. P (x) = 5! = = 120.

ECE302 Spring 2006 HW1 Solutions January 16,

WHERE DOES THE 10% CONDITION COME FROM?

Math 55: Discrete Mathematics

Lecture 1 Introduction Properties of Probability Methods of Enumeration Asrat Temesgen Stockholm University

Gaming the Law of Large Numbers

Lab 11. Simulations. The Concept

Section 6.1 Discrete Random variables Probability Distribution

Question of the Day. Key Concepts. Vocabulary. Mathematical Ideas. QuestionofDay

Remarks on the Concept of Probability

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

The game of roulette is played by throwing a small ball onto a rotating wheel with thirty seven numbered sectors.

Simple Random Sampling

Stat 20: Intro to Probability and Statistics

p-values and significance levels (false positive or false alarm rates)

ACMS Section 02 Elements of Statistics October 28, Midterm Examination II

Probability definitions

Math 370, Actuarial Problemsolving Spring 2008 A.J. Hildebrand. Problem Set 1 (with solutions)

Unit 4 The Bernoulli and Binomial Distributions

Algebra 2 C Chapter 12 Probability and Statistics

Contemporary Mathematics Online Math 1030 Sample Exam I Chapters No Time Limit No Scratch Paper Calculator Allowed: Scientific

Chapter 7 Probability. Example of a random circumstance. Random Circumstance. What does probability mean?? Goals in this chapter

Probability and Statistics Vocabulary List (Definitions for Middle School Teachers)

Chapter 16: law of averages

Statistics 100A Homework 3 Solutions

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 13. Random Variables: Distribution and Expectation

IAM 530 ELEMENTS OF PROBABILITY AND STATISTICS INTRODUCTION

4. Continuous Random Variables, the Pareto and Normal Distributions

STAT 319 Probability and Statistics For Engineers PROBABILITY. Engineering College, Hail University, Saudi Arabia

Sample Term Test 2A. 1. A variable X has a distribution which is described by the density curve shown below:

Math Compute C(1000,2) (a) (b) (c) 2. (d) (e) None of the above.

This document contains Chapter 2: Statistics, Data Analysis, and Probability strand from the 2008 California High School Exit Examination (CAHSEE):

Without data, all you are is just another person with an opinion.

Statistics 100A Homework 8 Solutions

STAT 315: HOW TO CHOOSE A DISTRIBUTION FOR A RANDOM VARIABLE

Practical Probability:

Probability Distribution for Discrete Random Variables

People have thought about, and defined, probability in different ways. important to note the consequences of the definition:

Probability Distributions

Math 3C Homework 3 Solutions

The normal approximation to the binomial

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

6. Let X be a binomial random variable with distribution B(10, 0.6). What is the probability that X equals 8? A) (0.6) (0.4) B) 8! C) 45(0.6) (0.

Binomial random variables (Review)

(b) You draw two balls from an urn and track the colors. When you start, it contains three blue balls and one red ball.

Chapter 5 A Survey of Probability Concepts

Transcription:

STAT 35A HW2 Solutions http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 1. A computer consulting firm presently has bids out on three projects. Let A i = { awarded project i }, for i = 1, 2, 3, and suppose that P(A 1 ) = 0.22, P(A 2 ) = 0.25, P(A 3 ) = 0.28, P(A 1 A 2 ) = 0.11, P(A 1 A 3 ) = 0.05, P(A 2 A 3 ) = 0.07, P(A 1 A 2 A 3 ) = 0.01. Express in words each of the following events and compute the probability of each event. 1.A (4 POINTS): A 1 A 2 The probability that either A 1 or A 2 occurs: P(A 1 ) + P(A 2 ) P(A 1 A 2 ) =.22 +.25.11 =.36 1.B (4 POINTS): A' 1 A' 2 The probability that neither A 1 or A 2 occurs: P(A' 1 A' 2 ) = P(A 1 A 2 ) ' = 1 P(A 1 A 2 ) = 1.36 =.64 1.C (4 POINTS): A 1 A 2 A 3 The probability that either A 1 or A 2 or A 3 occurs: P(A 1 )+ P(A 2 )+ P(A 3 ) P(A 1 A 2 ) P(A 2 A 3 ) P(A 1 A 3 )+ P(A 1 A 2 A 3 ) = 0.22+0.25+0.28 0.11 0.07 0.05+0.01 =.53 1.D (4 POINTS): A' 1 A' 2 A' 3 The probability that neither A 1 or A 2 or A 3 occurs: =P (A 1 A 2 A 3 ) ' = 1 P(A 1 A 2 A 3 ) = 1.53 =.47 http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 1

1.E (5 POINTS): A' 1 A' 2 A 3 The probability that neither A 1 or A 2 occurs, and A 3 occurs: Observing that P(X Y)=P(X) P(X Y ), and using X=A 1 A 2 and Y=A 3 we get P(A 1 A 2 A 3 ) P(A 1 A 2 ) =.53.36 =.17 You can also reason about this graphically by drawing a Venn diagram to get the same answer. 1.F (4 POINTS): (A' 1 A' 2 ) A 3 The probability that neither A 1 or A 2 occurs, or A 3 occurs: Using the additive rule, and the results from 1.E, we get P(A' 1 A' 2 ) + P(A 3 ) P(A' 1 A' 2 A 3 ) =.64 +.28.17 =.75 http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 2

2. An insurance company offers four different deductible levels none, low, medium, and high for its homeowner s policyholders and three different levels low (L), medium (M), and high (H) for its automobile policyholders. The accompanying table gives proportions for the various categories of policyholders who have both types of insurance. For example, the proportion of individuals with both low homeowner s deductible and low auto deductible is 0.06 (6% of all such individuals). Suppose an individual having both types of policies is randomly selected. Home policies None Low Medium High Low 0.04 0.06 0.05 0.03 Auto Policies Medium 0.07 0.10 0.20 0.10 High 0.02 0.03 0.15 0.15 2.A (4 POINTS): WHAT IS THE PROBABILITY THAT THE INDIVIDUAL HAS A MEDIUM AUTO DEDUCTIBLE AND A HIGH HOMEOWNER S DEDUCTIBLE? And corresponds to the intersection of the high home column and the medium auto row, which is 0.10. 2.B (4 POINTS): WHAT IS THE PROBABILITY THAT THE INDIVIDUAL HAS A LOW AUTO DEDUCTIBLE? A LOW HOMEOWNER S DEDUCTIBLE? Summing the entire row for low auto: 0.04+0.06+0.05+0.03 =.18 Summing the entire column for low home: 0.06 + 0.10 + 0.03 =.19 2.C (4 POINTS): WHAT IS THE PROBABILITY THAT THE INDIVIDUAL IS IN THE SAME CATEGORY FOR BOTH AUTO AND HOMEOWNER S DEDUCTIBLES? Sum the diagonal where both home and auto policies are low, medium, and high: 0.06 + 0.20 + 0.15 =.41 2.D (4 POINTS): BASED ON YOUR ANSWER IN PART (C), WHAT IS THE PROBABILITY THAT THE TWO CATEGORIES ARE DIFFERENT? This is the compliment of the event defined in (c): 1.41 =.59 2.E (5 POINTS): WHAT IS THE PROBABILITY THAT THE INDIVIDUAL HAS AT LEAST ONE LOW DEDUCTIBLE LEVEL? Sum both the low auto row and low home column but don t double count the intersection: (0.04+0.06+0.05+0.03) + (0.06+.10+.03) 0.06 =.31 2.F (4 POINTS): USING THE ANSWER IN PART (E), WHAT IS THE PROBABILITY THAT NEITHER DEDUCTIBLE LEVEL IS LOW? Again, taking the compliment of (e): 1.31 =.69 http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 3

3. A card is drawn from a standard well shuffled deck of 52 playing cards. What is the theoretical probability of the event A = {the drawn card is a king or a club}? In this applet an outcome of a King is recorded in the first variable Y and corresponds to Y=13; the second variable Z corresponds to the suit of the card with a Club,, represented by Z=0. Using this Card Experiment, from SOCR Experiments, perform 20 experiments and determine the proportion of the outcomes the event A was observed. This would correspond to the empirical probability (the chance) of the event A. How close are the observed and the theoretical probabilities for the event A? Would the discrepancy between these increase or decrease if the number of hands drawn increases? Experiment and report! 3.A WHAT IS THE PROBABILITY OF DRAWING A KING OR A CLUB? P(king) = 1/13 P(club) = 1/4 P(king club) = 1/52 Therefore P(king club) = P(king)+P(club) P(king club) = 1/13 + 1/4 1/52 =.3077 3.B WHAT IS THE EMPIRICAL PROBABILITY OF EVENT A USING YOUR 20 TRIALS? Trial 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Denom 6 4 11 13 10 6 12 1 11 7 10 8 1 11 9 10 3 5 12 8 Suit 2 1 0 1 1 1 1 2 1 3 2 3 3 2 2 3 0 3 0 1 In my 20 trials, I got 4 outcomes that were either a king or a club. This corresponds to an empirical probability of 4/20=0.2. 3.C HOW CLOSE ARE THE OBSERVED AND THEORETICAL PROBABILITIES FOR EVENT A? WOULD THE DISCREPANCY BETWEEN THESE INCREASE OR DECREASE IF THE NUMBER OF HANDS DRAWN INCREASES? My discrepancy was.1077. We would expect this to decrease as we draw more hands. http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 4

4. Suppose we need to validate that a coin given to us is fair. We toss the coin 6 times independently and observe only one Head. If the coin was fair P(Head)=P(Tail)=0.5 and we would expect about 3 Heads and 3 Tails. 4.A (10 POINTS): UNDER THESE FAIR COIN ASSUMPTIONS WHAT IS THE (THEORETICAL) PROBABILITY THAT ONLY 1 HEAD IS OBSERVED IN 6 TOSSES? Using the binomial distribution with p=0.5 (fair coin), n=6 (total flips), and k=1 (number of heads) we have: 4.B (7 POINTS): EMPIRICALLY COMPUTE THE ODDS (CHANCES) OF OBSERVING ONE HEAD IN 6 FAIR COIN TOSSES (RUN 100 EXPERIMENTS AND RECORD THE NUMBER OF THEM THAT CONTAIN EXACTLY 1 HEAD) Running 100 coin flip experiments, 1 coin was heads in 12 of the trials for a frequency of.12. http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 5

4.C (8 POINTS): EMPIRICALLY ESTIMATE THE BIAS OF THE COIN WE HAVE TESTED. EXPERIMENT WITH TOSSING 30 COINS AT A TIME. YOU SHOULD CHANGE THE P VALUE=P(HEAD), RUN EXPERIMENTS AND PICK A VALUE ON THE X AXIS THAT THE EMPIRICAL DISTRIBUTION (RED HISTOGRAM) PEAKS AT. PERHAPS YOU WANT THIS PEAK X VALUE TO BE CLOSE TO THE OBSERVED 1 OUT OF 6 HEAD COUNT FOR THE ORIGINAL TEST OF THE COIN. INCLUDE SOME GRAPH SNAPSHOTS AND SOME BRIEF DISCUSSION REGARDING YOUR EXPERIMENTS AND FINDINGS. Below are my results of getting 5 heads out of 30 after running 100 trials for a range of p values: p value Relative frequency of getting 1 head.05.030.10.090.15.180.20.150.25.080.30.001.35.000.40.000 Empirically, the p value that gives the highest frequency of getting 5 head out of 30 is.15. If I plot the results of my trials as a histogram, it is clear that this that the peak is indeed around.15. You can use the binomial coin experiment to visualize the true distribution where you ll see that the probability of getting 1 head out of 6 is indeed maximized around a p value of.15. Plot of binomial distribution with p=.15 and n=6 http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 6

5. 5.A (6 POINTS): IN THE BALL AND URN EXPERIMENT HOW DOES THE DISTRIBUTION OF THE NUMBER OF RED BALLS (Y) DEPEND ON THE SAMPLING STRATEGY (WITH OR WITHOUT REPLACEMENT)? At one extreme, if you only sample one ball then replacing it has no impact on your sample. In this respect, the distributions are identical. At the other extreme, where n=n (sample size is the same as the total number of balls), if you are not replacing balls the only possible outcome is the exact ratio of red balls because you removed every ball from the urn. If n is somewhere in the middle between 0 and N, the variance of your outcomes will be smaller when not using replacement. The replacement strategy never affects the mean. 5.B (6 POINTS): DO N, R AND N ALSO PLAY ROLES? Yes, for any given N and R, the influence of not using replacement (decrease in variance) is stronger as n increases. 5.C (6 POINTS): SUPPOSE N=100, n=5, R=30 AND YOU RUN 1,000 EXPERIMENTS. WHAT PROPORTION OF THE 1,000 SAMPLES HAD ZERO OR ONE RED BALLS IN THEM? RECORD THIS VALUE. Using replacement, these are the results of my experiment. The number of balls with 0 or 1 are 1000*(.18+.358)=538 according to the data column of the output. http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 7

5.D (7 POINTS): NOW RUN THE BINOMIAL COIN EXPERIMENT WITH N=5 AND P= 0.3. RUN THE BINOMIAL EXPERIMENT 1,000 TIMES? WHAT IS THE PROPORTION OF OBSERVATIONS THAT HAVE ZERO OR ONE HEAD IN THEM? RECORD THIS VALUE ALSO. HOW CLOSE IS THE PROPORTION VALUE YOU OBTAINED BEFORE TO THIS SAMPLE PROPORTION VALUE? IS THERE A REASON TO EXPECT THAT THESE TWO QUANTITIES (COMING FROM TWO DISTINCT EXPERIMENTS AND TWO DIFFERENT UNDERLYING PROBABILITY MODELS) SHOULD BE SIMILAR? EXPLAIN. The number of observation with 0 or 1 head are 1000*(.174+.368)=542. This is quite close to my ball and urn experiment of 538. When using replacement, these two experiments indeed follow the same binomial distribution. If I do not use replacement, then the ball and urn experiment follows the hypergeometric distribution. From our qualitative observations earlier, we saw that the variance decreases if we do not use replacement, but the mean remains the same. Therefore, we would still expect our results to be similar. http://www.stat.ucla.edu/~dinov/courses_students.dir/09/spring/stat35.dir 8