Some Practice Questions for Test 2

Similar documents
Notes for Math 324, Part 19

Statistics for Managers Using Microsoft Excel (3 rd Edition)

Bivariate distributions

ENGI 4421 Introduction to Probability; Sets & Venn Diagrams Page α 2 θ 1 u 3. wear coat. θ 2 = warm u 2 = sweaty! θ 1 = cold u 3 = brrr!

Joint probability distributions: Discrete Variables. Two Discrete Random Variables. Example 1. Example 1

Course 1 Solutions November 2001 Exams

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

Probability and Probability Distributions. Dr. Mohammed Alahmed

Chapter 2. Probability

Math 151. Rumbos Fall Solutions to Review Problems for Final Exam

Probability Midterm Exam 2:15-3:30 pm Thursday, 21 October 1999

Sample Problems for the Final Exam

Ch. 5 Joint Probability Distributions and Random Samples

ISyE 2030 Practice Test 1

Joint Probability Distributions, Correlations

Course: ESO-209 Home Work: 1 Instructor: Debasis Kundu

Math Review Sheet, Fall 2008

Fault-Tolerant Computer System Design ECE 60872/CS 590. Topic 2: Discrete Distributions

ENGI 3423 Introduction to Probability; Sets & Venn Diagrams Page 3-01

Midterm Exam 1 Solution

Math 218 Supplemental Instruction Spring 2008 Final Review Part A

What is Probability? Probability. Sample Spaces and Events. Simple Event

ASM Study Manual for Exam P, First Edition By Dr. Krzysztof M. Ostaszewski, FSA, CFA, MAAA Errata

Chapter 1: Revie of Calculus and Probability

IE 230 Probability & Statistics in Engineering I. Closed book and notes. 60 minutes.

Bivariate Distributions

Single Maths B: Introduction to Probability

Table of z values and probabilities for the standard normal distribution. z is the first column plus the top row. Each cell shows P(X z).

Intro to Probability. Andrei Barbu

Probability Year 10. Terminology

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

The Binomial distribution. Probability theory 2. Example. The Binomial distribution

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

EDEXCEL S2 PAPERS MARK SCHEMES AVAILABLE AT:

Lecture 16 : Independence, Covariance and Correlation of Discrete Random Variables

Mathematics (Project Maths Phase 3)

Class 8 Review Problems solutions, 18.05, Spring 2014

Solutionbank S1 Edexcel AS and A Level Modular Mathematics

Math Camp. September 16, 2017 Unit 2. MSSM Program Columbia University Dr. Satyajit Bose

= 9 = x + 8 = = -5x 19. For today: 2.5 (Review) and. 4.4a (also review) Objectives:

1 Presessional Probability

Notes for Math 324, Part 17

G.C.E.(O.L.) Support Seminar

MIA Textbook INTERMEDIATE 1 CHECKLIST

MATHEMATICS: PAPER I

Introduction to Statistical Data Analysis Lecture 3: Probability Distributions

Summary of basic probability theory Math 218, Mathematical Statistics D Joyce, Spring 2016

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Solutions 5 Spring 2006

Formulas for probability theory and linear models SF2941

LUNG CHEUNG GOVERNMENT SECONDARY SCHOOL Mock Examination 2006 / 2007 Mathematics and Statistics

Contents 1. Contents

Introduction to Probability and Statistics Slides 3 Chapter 3

Week 04 Discussion. a) What is the probability that of those selected for the in-depth interview 4 liked the new flavor and 1 did not?

ECSE B Solutions to Assignment 8 Fall 2008

Possible C2 questions from past papers P1 P3

Lecture 2: Review of Probability

Date: Pd: Unit 4. GSE H Analytic Geometry EOC Review Name: Units Rewrite ( 12 3) 2 in simplest form. 2. Simplify

CONTINUOUS RANDOM VARIABLES

Statistics for Economists Lectures 6 & 7. Asrat Temesgen Stockholm University

Counting principles, including permutations and combinations.

Continuous random variables

Probability Year 9. Terminology

Learning Objectives for Stat 225

Joint Probability Distributions and Random Samples (Devore Chapter Five)

S2 QUESTIONS TAKEN FROM JANUARY 2006, JANUARY 2007, JANUARY 2008, JANUARY 2009

Introduction to Machine Learning

G.C.E.(O.L.) Support Seminar

Willmar Public Schools Curriculum Map

Probability. Lecture Notes. Adolfo J. Rumbos

Multivariate Distributions CIVL 7012/8012

CME 106: Review Probability theory

Topic 5: Discrete Random Variables & Expectations Reference Chapter 4

Outline PMF, CDF and PDF Mean, Variance and Percentiles Some Common Distributions. Week 5 Random Variables and Their Distributions

1. Exercise on Page 8: 2. Exercise on Page 8: (b)c 1 (C 2 C 3 ) and (C 1 C 2 ) (C 1 C 3 ) (C 1 C 2 ) (C 2 C 3 ) Problem Set 1 Fall 2017

Continuous Random Variables

Edexcel GCE Statistics 2

(y 1, y 2 ) = 12 y3 1e y 1 y 2 /2, y 1 > 0, y 2 > 0 0, otherwise.

ECEn 370 Introduction to Probability

***** Sorry - Solutions will not be posted *****

STA 256: Statistics and Probability I

Discussion 03 Solutions

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY (formerly the Examinations of the Institute of Statisticians) HIGHER CERTIFICATE IN STATISTICS, 1996

Jointly Distributed Random Variables

Final Exam # 3. Sta 230: Probability. December 16, 2012

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Problem Set 4: Solutions Fall 2007

Topic 2: Probability & Distributions. Road Map Probability & Distributions. ECO220Y5Y: Quantitative Methods in Economics. Dr.

FURTHER MATHEMATICS Units 3 & 4 - Written Examination 2

Math 447. Introduction to Probability and Statistics I. Fall 1998.

18.05 Final Exam. Good luck! Name. No calculators. Number of problems 16 concept questions, 16 problems, 21 pages

Mathematics and Further Mathematics Pre-U June 2010

Errata for the ASM Study Manual for Exam P, Fourth Edition By Dr. Krzysztof M. Ostaszewski, FSA, CFA, MAAA

Part IA Probability. Definitions. Based on lectures by R. Weber Notes taken by Dexter Chua. Lent 2015

R1: Sets A set is a collection of objects sets are written using set brackets each object in onset is called an element or member

Algebra I EOC Review (Part 2)

Maths GCSE Langdon Park Foundation Calculator pack A

Joint Probability Distributions, Correlations

Closed book and notes. 60 minutes. Cover page and four pages of exam. No calculators.

Functions of two random variables. Conditional pairs

Probability Theory and Statistics. Peter Jochumzen

Name of the Student: Problems on Discrete & Continuous R.Vs

Transcription:

ENGI 441 Probability and Statistics Faculty of Engineering and Applied Science Some Practice Questions for Test 1. The probability mass function for X = the number of major defects in a randomly selected appliance of a certain type is Compute (a) E[ X ] x 0 1 3 4 p(x).08.15.45.7.05 [ X] x p( x) E = = 0.08 + 1.15 +.45 + 3.7 + 4.05 = 0 + 0.15 + 0.90 + 0.81 +.0 E[ X ] =.06 (b) V[ X ] directly from the definition V[ X] ( x ) p( x) ( ) σ = = µ = ( 0.06.08) + (( 1.06 ).15) + ((.06 ).45) + (( 3.06 ).7) + (( 4.06 ).05) =.339 488 +.168540 +.00160 +.3857 +.188180 V[ X ] = 0.9364 (c) the standard deviation of X. σ = V[ X ] = 0.936 4 σ = 0.9677 ( 4 d.p. )

ENGI 441 Test Practice - Solutions Page of 5 1 (d) V[ X ] using the shortcut formula = ( ) = + + + + = 0 + 0.15 + 1.80 +.43 + 0.80 = 5.18 E X x p x 0.08 1.15.45 3.7 4.05 [ X] X ( [ X] ) ( ) σ = V = E E = 5.18.06 = 5.180 0 4.436 V[ X ] = 0.9364 These answers can be found by entering the values of the probability mass function into the Excel file demos/discrete.xls, (which has been done in the associated Excel file).. The discrete random quantity X has the following probability mass function: x 1 3 4 p(x).1..3.4 (a) Verify that p(x) is a valid p.m.f. All four non-zero probability masses are positive. p( x ) =.1 +. +.3 +.4 = 1 (coherence) Therefore p(x) is a valid p.m.f. (b) Sketch the cumulative distribution function F (x). The graph has the classic staircase appearance of the c.d.f. of any discrete random variable. The height of the gap between any consecutive pair of steps is equal to the probability mass at that step up. The graph then follows immediately.

ENGI 441 Test Practice - Solutions Page 3 of 5 (c) Find the population mean of X. [ X] x p( x) ( ) ( ) ( ) ( ) µ = E = = 1.1 +. + 3.3 + 4.4 = 0.1 + 0.4 + 0.9 + 1.6 µ = 3.0 Another way to perceive this population mean is that an ideal ruler with point masses of.1,.,.3 and.4 grammes at x = 1,, 3, 4 respectively, will balance at x = 3. (d) Find the population variance of X. Either or σ V[ X] ( x µ ) p( x) (( ) ) ( ) = = = ( ) (( ) ) (( ) ) 1 3.1 + 3. + 3 3.3 + 4 3.4 = 0.4 + 0. + 0 + 0.4 σ = 1.0 ( ) ( ) ( ) ( ) ( ) = = + + + = 0.1 + 0.8 +.7 + 6.4 = 10.0 E X x p x 1.1. 3.3 4.4 [ X] X ( [ X] ) ( ) σ = V = E E = 10.0 3.0 = 10 9 = 1 Now suppose that a random sample of size 100 is drawn from this population. (e) Find the probability that the sample mean is less than.9. The sample size is sufficiently large for the distribution of the sample mean X to be normal to an excellent approximation, with mean µ and variance σ / n. Thus X 1 ( ) ( ) ~ N 3, ~ N 3, 0.01 100.9 3.0 0.1 P X <.9 = P Z < = Φ = Φ( 1.00) 0.1 0.1 P X <.9.159

ENGI 441 Test Practice - Solutions Page 4 of 5 (f) Find the probability that the sample mean is less than.0..0 3.0 1.0 P X <.0 = P Z < = Φ = Φ( 10 ).0001 0.1 0.1 extremely unlikely; almost impossible. Thus P X <.0 0 3. [Modification of Devore, 3 rd edition, ex. 3., q., p. 93] A small town situated on a main highway has two gas stations, A and B. Station A sells regular, extra, and premium gas for 139.9, 141.1, and 144.4 cents per litre, respectively, while B sells no extra, but sells regular and premium for 138.9 and 144.4 cents per litre, repectively. Of the cars that stop at station A, 50% buy regular, 0% buy extra, and 30% buy premium. Of the cars stopping at B, 60% buy regular and 40% buy premium. Suppose that A gets 60% of the cars that stop for gas in this town, while 40% go to B. Let R = the price per litre paid by the next car that stops for gas in this town. (a) Compute the p.m.f. of R. Then draw a probability bar chart of the p.m.f. A tree diagram may be the easiest way to establish the p.m.f.

ENGI 441 Test Practice - Solutions Page 5 of 5 3 (a) (continued) the p.m.f. of R is P[R = 138.9] = P[(Station B) (regular)] = P[(Station B)] P[ (regular) (Station B)] =.4.6 =.4 P[R = 139.9] = P[(Station A) (regular)] = P[(Station A)] P[ (regular) (Station A)] =.6.5 =.30 P[R = 141.1] = P[(Station A) (extra)] = P[(Station A)] P[ (extra) (Station A)] =.6. =.1 P[R = 144.4] = P[{(Station A) (premium)} {(Station B) (premium)}] = P[(Station A)] P[(premium) (Station A)] + P[(Station B)] P[(premium) (Station B)] = (.6.3) + (.4.4) =.34 The bar chart should have four equal-width bars, centred on r = 138.9, 139.9, 141.1 and 144.4, with heights.4,.30,.1 and.34 respectively.

ENGI 441 Test Practice - Solutions Page 6 of 5 3 (b) Compute and graph the c.d.f. of R. The c.d.f. is a classic staircase function. The height of each step is the value of the p.m.f. at that step. The c.d.f. is (c) If a randomly chosen customer has purchased regular gas, then what is the probability that the gas was purchased at station A? P[(station A) (regular)] = P[(station A) (regular)] / P[(regular)] From the tree diagram, P[(regular)] =.30 +.4 =.54. Therefore P[(station A) (regular)] =.30 /.54 = 5 / 9 =.5555... ( ) ( ) P station A regular = 5 9

ENGI 441 Test Practice - Solutions Page 7 of 5 4. A box of silicon wafers will be withdrawn from a production line for more intensive testing, if and only if more than one defective wafer is found in a random sample of 0 wafers, drawn with replacement from the box. Let p be the true proportion of defective wafers in the box. Let X be the number of defective wafers in the random sample. (a) Show that the probability distribution for X is exactly binomial. Each trial [wafer] consists of a pair of complementary outcomes, (defective or good). P[defective] = constant (= p). Trials are independent (the sample is drawn with replacement). The sample size is constant (n = 0). All four conditions are satisfied exactly. Therefore the exact probability distribution is binomial, P[X = x] = b(x; 0, p). (b) Find, in terms of p, the probability that the box will be withdrawn from the production line for more intensive testing. P[box withdrawn] = P[X > 1] = 1 P[X < 1] = 1 B(1; 0, p) = 1 (b(0; 0, p) + b(1; 0, p)) = 1 ((1 p) 0 + 0 p(1 p) 19 ) = 1 (1 + 19p)(1 p) 19 (c) Evaluate the probability in part (b) in the case when p =.05. 19 19 When p =.05, 1 ( 1+ 19 p)( 1 p) = 1 ( 1+ 19.05)(.95) = 1 ( 1.95 )(.377 ) Correct to four decimal places, P[box withdrawn] =.64

ENGI 441 Test Practice - Solutions Page 8 of 5 5. The joint probability mass function p(x, y) for a pair of discrete random quantities X, Y is defined by the following table. p y 1 0 1 1.10.05.10 x 0.15.0.15 1.10.05.10 (a) Find the correlation coefficient ρ for X and Y. Extend the table to find the marginal p.m.f.s: p y 1 0 1 p ( x ) 1.10.05.10.5 X x 0.15.0.15.50 [ X] x p( x) E = = 1.5 + 0.50 + 1.5 =.5 + 0 +.5 = 0 OR X is symmetric about x = 0 E[X] = 0 [ Y] y p( y) E = = 1.35 + 0.30 + 1.35 =.35 + 0 +.35 = 0 OR Y is symmetric about y = 0 E[Y] = 0 [ X Y ] xy p ( x y) 1.10.05.10.5 ( ) p y.35.30.35 1 Y E =, = 1 1.10 + 0 + 1 1.10 + 0+ 0+ 0 + 1 1.10 + 0 + 1 1.10 =.10.10.10 +.10 = 0 Cov[X, Y] = E[XY] E[X]E[Y] = 0

ENGI 441 Test Practice - Solutions Page 9 of 5 5 (a) (continued) σ X and σ Y are obviously positive (X and Y are not absolute constants) Cov [ X, Y] and ρ = σ σ X Y ρ = 0 (b) Are X and Y stochastically independent? Independence requires pxy (, ) = px ( x) py ( y) for all (x, y) But px ( 1) py ( 1 ) =.35.5 =.0875, while ( ) p( 1, 1) p ( 1) p ( 1) X Y Therefore NO, X, Y are not independent. p 1, 1 =.1000 [This demonstrates that zero correlation does not guarantee independence, (although the converse is true: independence does guarantee zero correlation).] Also see the associated Excel file.

ENGI 441 Test Practice - Solutions Page 10 of 5 6. The probability density of a random quantity X is given by: kx( 4 x ) ( 0< x< ) f ( x) = 0 ( elsewhere) (a) Find the value of k. There are two conditions for f (x) to be a p.d.f. f ( x) 0 for all x: This condition is true (trivially) outside the interval 0 < x <. 4 x > 0 and x > 0. In the interval 0 < x < we have ( ) Therefore k > 0. The coherence condition: It saves time to find the c.d.f. first, in terms of k, (done in part (b) below), then to set that function equal to 1 at the highest possible value of x. kx ( 8 x ) From part (b) below, F( x) = for 0 x 4 But F() = 1 k (8 4) = 1 k = 1/4 The two conditions together require k = 1 4 (b) Find the corresponding cumulative distribution function F (x) The c.d.f. is obviously F (x) = 0 for all x < 0 and is F (x) = 1 for all x >. Inside the interval 0 < x < the c.d.f. is x 0 x x 0 0 4 x 4 t x kx ( ) = ( ) = 0 + ( 4 ) = 0 + ( 4 3 ) F x f t dt dt kt t dt k t t dt = k t k x 0 0 8 x 4 = = 0 4 4 But, from part (a) above, k = 1/4 Therefore ( ) ( ) ( x < ) 0 0 x F( x) = x x 16 1 ( 8 ) ( 0 ) ( x > )

ENGI 441 Test Practice - Solutions Page 11 of 5 6 (c) What are the odds that a random quantity having this distribution will take on a value greater than 1? ( ) 18 1 9 P[ X > 1] = 1 F( 1) = 1 = 16 16 9 16 9 16 p 9 r = 1 p = 1 = 16 16 7 Therefore the odds of (X > 1) are 9:7 on 7. Suppose that the duration (in years) of a construction job can be modelled as a continuous random quantity t whose cumulative distribution function (c.d.f.) is given by 0 ( t < 0) F( t) = t t ( 0 t 1) 1 ( t > 1) (a) Find the probability that the construction job lasts longer than half a year. P[T > 0.5] = 1 P[T < 0.5] = 1 F (0.5) = 1 (1 1/4) Therefore 1 P[ T > 0.5] = 4 (b) Find the median duration µ, correct to two decimal places. 1 The definition of the median is F ( µ ) = Clearly, from the definition of F (t), the median must lie in the interval (0, 1). Solve 1 1 + ± 4 t t = t t+ = 0 t = = 1 ± But µ < 1 t = 1 only. Therefore µ = 1 0.9

ENGI 441 Test Practice - Solutions Page 1 of 5 7 (c) Determine the corresponding probability density function f (t). Where F (t) is constant, F' (t) = f (t) = 0. This is true outside the interval 0 < t < 1. Inside the interval 0 < t < 1, ( ) ( ) ( ) f ( t) = 1 ( t) ( 0 t 1) F t = t t f t = F t = t 8. Space craft are to be landed at some given point "O" on the moon s surface, and we wish to observe the position of an actual landing point relative to the aiming point O. Assume that the landing errors are small enough so that it is reasonable to measure them in the tangent plane to the moon s surface which touches O. Let us further establish a local rectangular coordinate system in that tangent plane which is centered on O and which is oriented so that the x axis points east and the y axis points north. Suppose that the probability that the space craft lands more than 10 km from the aiming point O is zero and, further, that the probability that the spacecraft lands in some particular region (no point of which is more than 10 km from O) is directly proportional to the area of that region. Find the probability that the space craft will land (a) less than 5 km from O The available landing area is the area contained by a circle, radius 10 km, centre at O, area = π ( 10) = 100π. Because the probability of landing in any region within the circle is proportional to the A / 100π. area A of that region, that probability must be ( ) Therefore P[ lands < 5 km from O] = (Area of circle, radius 5) / (100π) = (5π) / (100π) = 1.5 4 =

ENGI 441 Test Practice - Solutions Page 13 of 5 8 (b) more than 1 km yet less than 3 km from O Let X be the landing distance from O. P[1 < X < 3] = ((Area of circle, radius 3) (Area of circle, radius 1)) / (100π) = (9π π) / (100π) =.08 5 = (c) north of the aiming point Assuming that north of the aiming point means anywhere in y > 0, then the event covers exactly half of the sample space. Therefore P[ lands north of the aiming point] = 1/ =.5 [If one assumes that north of the aiming point means anywhere in the direction between north-west and north-east, then the area is exactly one quarter of the sample space and the answer becomes 1/4.] (d) north-east of the aiming point Assuming that north-east of the aiming point means anywhere in the first quadrant, then the event covers exactly one quarter of the sample space. Therefore P[ lands north-east of the aiming point] = 1/4 =.5 (e) south of the aiming point and more than 5 km from O Assuming that south of the aiming point means anywhere in y < 0, then the event covers exactly half of the event more than 5 km from O. Therefore P[ lands south of the aiming point and more than 5 km from O] = (1/) ((Area of circle, radius 10) (Area of circle, radius 5)) / (100π) = (100 5) / ( 100) = 3.375 8 =

ENGI 441 Test Practice - Solutions Page 14 of 5 8 (e) (continued) [If one assumes that south of the aiming point means anywhere in the direction between south-west and south-east, then the area is reduced by a factor of two and the answer becomes 3/16.] (f) exactly due south of O. Exactly due south of O means anywhere on the negative y axis. This is a degenerate rectangle of height 10 km and width zero, giving zero area. Therefore P[ lands exactly due south of O] = 0 9. Let X have the Pareto probability density function k kt x t f ( x) = k+ 1 x 0 x< t where k and t are both positive parameters. (a) Find necessary conditions on k to ensure that E X ( ) ( ) n is finite; (n = a positive integer). n n k kt k 1 k n k 1 t k+ 1 x t k+ 1 n x t E n n X = nt 1 n dx = nt ln x t x t = E X = x dx = k t dx = k t x dx If k = n then Otherwise n n k kt n k x ( k > n) E X = kt = k n n k t ( k < n) Therefore the necessary (and sufficient) condition on k for E X k > n n to be finite is

ENGI 441 Test Practice - Solutions Page 15 of 5 9 (b) Hence find the range of values of k for which the variance V[X] is finite. [ X] = X ( [ X] ) V E E E X is finite provided k >. E X is finite provided k > 1. [ ] V[X] is finite iff and [ ] E X Therefore V[X] is finite provided E X are both finite. k >. (c) Find an expression (in a simplified form) for the variance when it is finite. 1 ( 1) ( ) ( ) ( )( ) kt kt kt k kt k V[ X] = E X ( E[ X] ) = = k k 1 k k 1 ( k k+ 1) ( k k) = kt ( k )( k 1) V [ X ] = kt ( k 1) ( k )

ENGI 441 Test Practice - Solutions Page 16 of 5 10. Adam Ant can travel only along the twigs connecting his home H with his aunts homes A, B, C, D, as shown in the diagram. One fine day, Adam decides to visit his aunt at house A. Then it is time to return home. Being a confused young ant, his choice of route is random (equal probability for each twig). Let X = the number of aunts he visits before he next returns to his home. Thus X = 1 represents the event Adam Ant returns to his home immediately after his initial visit to Aunt A and P[X = 1] = 1/3. (a) Find the probability mass function for the random quantity X. At any of his aunts houses, one path leads home and the other two do not. Therefore P[(Adam goes home immediately after visit x) (Adam had not gone home before visit x)] = P[X = x X > x 1 ] = 1/3 For the event (X = x) to happen, Adam must stay away from his home on all previous (x 1) departures from aunts houses, (with a probability of /3 for each one). Therefore x 1 1 P 1,,3, 3 3 [ X = x] =, ( x= ) Challenging questions: (b) Find E[X]. [Note: The sum s of a convergent geometric series with first term a and common ratio r is a s =. A geometric series is of the form 1 r 3 a + ar + ar + ar + ] 1 E[ X] x p( x) µ = = = x 3 3 x= 1 x= 1 x 1 3 1 µ = 1 1 + + 3 + 4 + 3 3 3 3 3 1 µ = + 1 + + 3 + 3 3 3 3 3 (A) (B)

ENGI 441 Test Practice - Solutions Page 17 of 5 10 (b) (continued) OR 3 1 (A) (B) 1 µ = 1 + + + + 3 3 3 3 3 1 1 a 1 1 µ = G.S., a= 1, r = µ = = = = 3 3 3 3 1 r 1 1 3 3 Therefore E[ X ] = 3 Note that the probability distribution is geometric, with parameter p = 1/3. 1 It then follows immediately that E[ X ] = = 3 p (c) Show that the probability that Adam Ant never visits aunt C is 4/7. There continue to be three equally likely paths from each of the aunts houses. However, we now wish to count only those paths that do not pass through house C. For each value of x, each distinct path, (such as ABAH for x x = 3), has a probability of 1 ( 3 ). We need to count the number n(x) of remaining valid paths for each value of x. When x is odd, the final visit must be to aunt A or aunt D. When x is even, the final visit must be to aunt B only. It then follows that, when x is odd, n( x+ 1) = n( x) and when x is even, n( x+ 1) = n( x) Also, n(1) = 1. This recursive relationship allows us to build up the values of n(x): x 1 3 4 5 6 7 8 9 n(x) 1 1 4 4 8 8 16 ceil ( x/) 1 Thus n( x) =, where ceil(k) is k rounded up to the nearest integer. The probability that Adam never visits house C (event E) then follows:

ENGI 441 Test Practice - Solutions Page 18 of 5 10 (c) (continued) P 1 = 3 [ E] n( x) x = 1 x 3 4 5 6 7 1 1 1 1 1 1 1 = 1 + 1 + + + 4 + 4 + 8 + 3 3 3 3 3 3 3 3 5 7 1 1 1 1 = 1 + + 4 + 8 + 3 3 3 3 4 6 8 1 1 1 1 + 1 + + 4 + 8 + 3 3 3 3 4 6 1 1 1 1 = 1 + + 4 + 8 + 3 3 3 3 4 6 1 1 1 1 + 1 + + 4 + 8 + 3 3 3 3 1 1 4 = + S = S, where 3 9 9 S 4 6 1 3 = 1 + + + + 9 9 9 a 1 9 S = G.S. a= 1, r = = = = 9 1 r 1 7 9 1 1 1 = 1 + + 4 + 8 + 3 3 3 4 4 9 P[ E] = S = 9 9 7 P[ E ] = 4 7 OR [The odds are therefore 4 to 3 on that Adam never visits aunt C.]

ENGI 441 Test Practice - Solutions Page 19 of 5 10 (c) (continued) [method based on a suggestion from Dr. Theodore Norvell] Consider just the first one or two moves: Path Probability Visit Aunt C? AH 1/3 NO ABH 1/9 NO ABA[...any...] 1/9? ABD[...any...] 1/9? AC[...any...] 1/3 YES Thus (1/3 + 1/9 =) 4/9 of the time, Adam definitely does not visit aunt C. (1/3 =) 3/9 of the time, Adam definitely does visit aunt C. The remaining /9 of the time, the situation remains unresolved after two moves, with Adam visiting either aunt A again or aunt D. Let p represent the probability that Adam never visits aunt C before he returns home. Whenever Adam is setting out from the house of aunt A, P[Adam never visits C Adam is at A] = p (because the situation is exactly the same as it was the first time that he set out from aunt A) and, by symmetry, P[Adam never visits C Adam is at D] = p Bringing all the [mutually exclusive] cases where Adam does not visit aunt C together, p = P[AH] + P[ABH] + P[Adam never visits C and (ABA or ABD)] = (P[AH] + P[ABH]) + (P[ABA or ABD] P[Adam never visits C (ABA or ABD)]) 4 4 4 p = + p 1 p = 7p = 4 p = 9 9 9 9 7 as before. (d) What are the odds that Adam Ant visits both aunt B and aunt C at least once? Let B = Adam visits aunt B at least once and C = Adam visits aunt C at least once, then, by symmetry, P[B] = P[C] (= 1 4/7 = 3/7). However, events B and C are neither independent nor incompatible. The only way in which Adam can avoid visiting both aunts B and C is by proceeding home directly from the initial visit to aunt A, the probability for which is P[X = 1] = (1/3).

ENGI 441 Test Practice - Solutions Page 0 of 5 10 (d) (continued) [ B C] = B C ( ) P 1 P demorgan ( B C B C ) ( ) = 1 P + P P addition law 4 4 1 1 4 + 7 4 = 1 + = = 7 7 3 1 1 p = 4 p 4 1 4 r = = = 1 1 p 1 1 4 17 Therefore the required odds are 17:4 against

ENGI 441 Test Practice - Solutions Page 1 of 5 11. A certain atmospheric sensing device has an advertised service life of one year, but it is vulnerable to severe icing. If it survives the full year, then the profit to the owner is 50 (in some units of currency). If an ice storm severe enough to be fatal to the device occurs during its service life, then the profit is reduced by 90 units, unless the owner had invested in protection (costing 15 units), in which case the profit is reduced by 0 units. An analysis method is available (at a cost of 5 units) which will suggest whether or not such icing will occur during the service life of the device. The analysis is not perfect: in only 95% of all cases where icing fatal to the device occurs, the analysis correctly suggests that such icing will occur. The analysis also suggests fatal icing (incorrectly) in 0% of all cases when no such icing happens. It is also known from past experience that the probability of icing fatal to the device during the year is 0%. (a) Given that the analysis suggests that fatal icing will occur, find the probability that such icing happens. Let I = fatal icing occurs during the year and A = analysis suggests I will occur. Then, from the question, P[I] =.0, P[A I] =.95 P[~A I] =.05 and P[A ~I] =.0 P[~A ~I] =.80. P[I A] is wanted. Use Bayes theorem. Tree diagram version of Bayes theorem: Total probability law: P[A] = P[AI] + P[A~I] =.19 +.16 =.35 Complementary event: P[~A] = 1.35 =.65 Conditional probability: P[I A] = P[I A] / P[A] =.19 /.35 19 P [ I A ] =.549 35

ENGI 441 Test Practice - Solutions Page of 5 11 (b) Given that the analysis suggests that fatal icing will not occur, find the probability that such icing does happen. Conditional probability (from part (a)): P[I ~A] = P[I ~A] / P[~A] =.01 /.65 1 P I A =.0154 65 (c) Construct a decision tree for this problem and determine the optimum strategy for the owner. The complete tree diagram is available on an Excel spreadsheet. Some calculations are described below: Folding back: a = (19/35) 10 + (16/35) 30 = 134/7 b = (19/35) ( 45) + (16/35) 45 = 7/7 a > b Therefore choose a (invest) and g = a = 134/7 c = (1/65) 10 + (64/65) 30 = 386/13 d = (1/65) ( 45) + (64/65) 45 = 567/13 d > c Therefore choose d (don t invest) and h = d = 567/13 e = (1/5) 15 + (4/5) 35 = 31 f = (1/5) ( 40) + (4/5) 50 = 3 f > e Therefore choose f (don t invest) and j = f = 3

ENGI 441 Test Practice - Solutions Page 3 of 5 11 (c) (continued) Folding back to the left-most node, k = (35/100) (134/7) + (65/100) (567/13) = 701/0 = 35.05 j = 3.00 k > j Therefore choose k and Expected profit = k = 701/0 = 35.05 The optimum strategy is therefore Pay 5 units for the analysis If the analysis suggests icing, then invest in protection. Otherwise don t invest in protection. The expected profit is 35.05 units The actual profit is one of: 45 (occurs 1% of the time), +10 (19% of the time), +30 (16% of the time) or +45 (64% of the time). 1. A box contains 1 good items and 3 defective items from a factory s production line. A manager selects four items at random from the box, without replacement. Let X = (the number of defective items in the random sample). (a) Show that the probability distribution of X is not binomial. Test the four conditions for a binomial distribution: Each trial has a complementary pair of outcomes (good/defective) True. P[success] is constant (= 3/15). True. Trials are independent. False. P[item defective item 1 defective] = /14 P[item defective] Number of trials constant (= 4) True. The failure of the independence condition occurs because the sampling is without replacement.

ENGI 441 Test Practice - Solutions Page 4 of 5 1 (b) Find the probability mass function p(x). x must be an integer at or between 0 and 3 (the number of successes in the sample cannot exceed the total number of successes in the entire population). Thus p(x) must be zero except at x = 0, 1, and 3. n(s) = (the number of ways of drawing 4 items from 15 without restriction) = 15 C 4. n(e) = (the number of ways of drawing x successes from the 3 successes in the population and (4 x) failures from the 1 failures in the population) = 3 C 1 C4. Therefore the p.m.f. is x x ( ) p x 3 1 Cx C = 4 x, (x = 0, 1,, 3 only). 15 C 4 [The numerical values are p(x) =.366,.4835,.1451 and.0088 (to 4 d.p.) for x = 0, 1, and 3 respectively.] [This is a hypergeometric probability distribution.] (c) Find P[X = 4] (Note: this part can be attempted without part (b)). As noted above, it is impossible to draw more defective items without replacement than are present in the population. Therefore P[X = 4] = 0 (d) Find P[X < 3]. C C 1 1 P[ X < 3] = 1 P[ X 3] = 1 P[ X = 3] = 1 = 1 C 1365 1353 P[ X < 3 ] =.991 1365 3 1 3 4 3 15 4

ENGI 441 Test Practice - Solutions Page 5 of 5 1 (e) If the random sample were drawn with replacement, would the probability mass function be binomial? YES Sampling with replacement will make the third condition in part (a) above true. (f) If the random sample were drawn with replacement, what would the value of P[X = 4] be? P[X = 4] = b(4; 4,.) = 4 C 4 (.) 4 (.8) 0 P[X = 4] =.0016 Return to the index of solutions