ECE302 Spring 2006 HW5 Solutions February 21, 2006 1



Similar documents
ECE302 Spring 2006 HW3 Solutions February 2,

Lecture 6: Discrete & Continuous Probability and Random Variables

Notes on Continuous Random Variables

ECE302 Spring 2006 HW4 Solutions February 6,

5. Continuous Random Variables

Math 461 Fall 2006 Test 2 Solutions

Lecture 7: Continuous Random Variables

Joint Exam 1/P Sample Exam 1

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

Chapter 4 Lecture Notes

Section 5.1 Continuous Random Variables: Introduction

Random variables P(X = 3) = P(X = 3) = 1 8, P(X = 1) = P(X = 1) = 3 8.

Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab

Math 431 An Introduction to Probability. Final Exam Solutions

Chapter 4 - Lecture 1 Probability Density Functions and Cumul. Distribution Functions

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

Aggregate Loss Models

Statistics 100A Homework 7 Solutions

6.041/6.431 Spring 2008 Quiz 2 Wednesday, April 16, 7:30-9:30 PM. SOLUTIONS

Lesson 20. Probability and Cumulative Distribution Functions

MATH4427 Notebook 2 Spring MATH4427 Notebook Definitions and Examples Performance Measures for Estimators...

Practice problems for Homework 11 - Point Estimation

MULTIVARIATE PROBABILITY DISTRIBUTIONS

Math 151. Rumbos Spring Solutions to Assignment #22

e.g. arrival of a customer to a service station or breakdown of a component in some system.

UNIT I: RANDOM VARIABLES PART- A -TWO MARKS

Math 370, Actuarial Problemsolving Spring 2008 A.J. Hildebrand. Practice Test, 1/28/2008 (with solutions)

Feb 28 Homework Solutions Math 151, Winter Chapter 6 Problems (pages )

Chapter 3 RANDOM VARIATE GENERATION

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

4. Continuous Random Variables, the Pareto and Normal Distributions

For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )

Solutions for Review Problems

Section 6.1 Joint Distribution Functions

2.6. Probability. In general the probability density of a random variable satisfies two conditions:

Exponential Distribution

MATH 10: Elementary Statistics and Probability Chapter 5: Continuous Random Variables

Introduction to Probability

Probability Generating Functions

Errata and updates for ASM Exam C/Exam 4 Manual (Sixteenth Edition) sorted by page

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

The Exponential Distribution

2WB05 Simulation Lecture 8: Generating random variables

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

Lecture 8. Confidence intervals and the central limit theorem

Department of Mathematics, Indian Institute of Technology, Kharagpur Assignment 2-3, Probability and Statistics, March Due:-March 25, 2015.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

Math 370/408, Spring 2008 Prof. A.J. Hildebrand. Actuarial Exam Practice Problem Set 3 Solutions

4 Sums of Random Variables

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

The Binomial Probability Distribution

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 18. A Brief Introduction to Continuous Probability

VISUALIZATION OF DENSITY FUNCTIONS WITH GEOGEBRA

Math 425 (Fall 08) Solutions Midterm 2 November 6, 2008

Key Concept. Density Curve

Principle of Data Reduction

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

Continuous Random Variables

Covariance and Correlation

5.1 Radical Notation and Rational Exponents

STAT 830 Convergence in Distribution

Math/Stats 342: Solutions to Homework

Lecture 3: Continuous distributions, expected value & mean, variance, the normal distribution

Lecture Notes on Elasticity of Substitution

CHAPTER 6: Continuous Uniform Distribution: 6.1. Definition: The density function of the continuous random variable X on the interval [A, B] is.

The Normal Distribution. Alan T. Arnholt Department of Mathematical Sciences Appalachian State University

Algebra Practice Problems for Precalculus and Calculus

SECOND-ORDER LINEAR DIFFERENTIAL EQUATIONS

Homework # 3 Solutions

Stat 704 Data Analysis I Probability Review

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

Pr(X = x) = f(x) = λe λx

Probability density function : An arbitrary continuous random variable X is similarly described by its probability density function f x = f X

Exploratory Data Analysis

Lecture 5 : The Poisson Distribution

Properties of Future Lifetime Distributions and Estimation

AP Statistics Solutions to Packet 2

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

. (3.3) n Note that supremum (3.2) must occur at one of the observed values x i or to the left of x i.

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

RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS

An Introduction to Partial Differential Equations

Definition: Suppose that two random variables, either continuous or discrete, X and Y have joint density

An Introduction to Basic Statistics and Probability

Review of Fundamental Mathematics

Domain of a Composition

Hypothesis Testing for Beginners

Math 370, Spring 2008 Prof. A.J. Hildebrand. Practice Test 2 Solutions

MATH 425, PRACTICE FINAL EXAM SOLUTIONS.

Important Probability Distributions OPRE 6301

PSTAT 120B Probability and Statistics

Probability Distribution

Zeros of a Polynomial Function

Data Modeling & Analysis Techniques. Probability & Statistics. Manfred Huber

Data Mining: Algorithms and Applications Matrix Math Review

WEEK #22: PDFs and CDFs, Measures of Center and Spread

Stat 515 Midterm Examination II April 6, 2010 (9:30 a.m. - 10:45 a.m.)

Lecture 3 : The Natural Exponential Function: f(x) = exp(x) = e x. y = exp(x) if and only if x = ln(y)

Integrals of Rational Functions

Dongfeng Li. Autumn 2010

Transcription:

ECE3 Spring 6 HW5 Solutions February 1, 6 1 Solutions to HW5 Note: Most of these solutions were generated by R. D. Yates and D. J. Goodman, the authors of our textbook. I have added comments in italics where I thought more detail was appropriate. I have made corrections where needed. The solution to problem 3.9. is my own. Problem 3.1.1 The cumulative distribution function of random variable X is x < 1, F X (x) = (x + 1)/ 1 x < 1, 1 x 1. (a) What is P[X > 1/]? (b) What is P[ 1/ < X 3/4]? (c) What is P[ X 1/]? (d) What is the value of a such that P[X a] =.8? Problem 3.1.1 Solution The CDF of X is F X (x) = x < 1 (x + 1)/ 1 x < 1 1 x 1 Each question can be answered by expressing the requested probability in terms of F X (x). (a) P [X > 1/] = 1 P [X 1/] = 1 F X (1/) = 1 3/4 = 1/4 () (b) This is a little trickier than it should be. Being careful, we can write P [ 1/ X < 3/4] = P [ 1/ < X 3/4] + P [X = 1/] P [X = 3/4] (3) Since the CDF of X is a continuous function, the probability that X takes on any specific value is zero. This implies P[X = 3/4] = and P[X = 1/] =. (If this is not clear at this point, it will become clear in Section 3.6.) Thus, P [ 1/ X < 3/4] = P [ 1/ < X 3/4] = F X (3/4) F X ( 1/) = 5/8 (4) (c) P [ X 1/] = P [ 1/ X 1/] = P [X 1/] P [X < 1/] (5) Note that P[X 1/] = F X (1/) = 3/4. Since the probability that P[X = 1/] =, P[X < 1/] = P[X 1/]. Hence P[X < 1/] = F X ( 1/) = 1/4. This implies P [ X 1/] = P [X 1/] P [X < 1/] = 3/4 1/4 = 1/ (6)

ECE3 Spring 6 HW5 Solutions February 1, 6 (d) Since F X = 1, we must have a 1. For a 1, we need to satisfy Thus a =.6. P [X a] = F X (a) = a + 1 =.8 (7) Problem 3.1. The cumulative distribution function of the continuous random variable V is v < 5, F V (v) = c(v + 5) 5 v < 7, 1 v 7. (a) What is c? (b) What is P[V > 4]? (c) P[ 3 < V ]? (d) What is the value of a such that P[V > a] = /3? Problem 3.1. Solution The CDF of V was given to be v < 5 F V (v) = c(v + 5) 5 v < 7 1 v 7 (a) For V to be a continuous random variable, F V (v) must be a continuous function. This occurs if we choose c such that F V (v) doesn t have a discontinuity at v = 7. We meet this requirement if c(7 + 5) = 1. This implies c = 1/144. (b) (c) P [V > 4] = 1 P [V 4] = 1 F V (4) = 1 81/144 = 63/144 = 7/16 () P [ 3 < V ] = F V () F V ( 3) = 5/144 4/144 = 1/144 = 7/48 (3) (d) Since F V (v) 1 and since F V (v) is a nondecreasing function, it must be that 5 a 7. In this range, P [V > a] = 1 F V (a) = 1 (a + 5) /144 = /3 (4) The unique solution in the range 5 a 7 is a = 4 3 5 = 1.98.

ECE3 Spring 6 HW5 Solutions February 1, 6 3 Problem 3..1 The random variable X has probability density function { cx x, f X (x) = otherwise. Use the PDF to find (a) the constant c, (b) P[ X 1], (c) P[ 1/ X 1/], (d) the CDF F X (x). Problem 3..1 Solution f X (x) = { cx x otherwise (a) From the above PDF we can determine the value of c by integrating the PDF and setting it equal to 1. Therefore c = 1/. (b) P[ X 1] = 1 x dx = 1/4 (c) P[ 1/ X 1/] = 1/ x dx = 1/16 cxdx = c = 1 () (d) The CDF of X is found by integrating the PDF from to x. x ( F X (x) = f X x ) x < dx = x /4 x 1 x > (3) Problem 3.. The cumulative distribution function of random variable X is x < 1, F X (x) = (x + 1)/ 1 x < 1, 1 x 1. Find the PDF f X (x) of X.

ECE3 Spring 6 HW5 Solutions February 1, 6 4 Problem 3.. Solution From the CDF, we can find the PDF by direct differentiation. The CDF and correponding PDF are F X (x) = x < 1 (x + 1)/ 1 x < 1 1 x 1 f X (x) = { 1/ 1 x < 1 otherwise Problem 3.3.3 Random variable X has CDF (a) What is E[X]? (b) What is Var[X]? F X (x) = x <, x/ x, 1 x >. Problem 3.3.3 Solution The CDF of X is x < F X (x) = x/ x < 1 x (a) To find E[X], we first find the PDF by differentiating the above CDF. f X (x) = { 1/ x otherwise () The expected value is then E [X] = x dx = 1 (3) (b) E [ X ] = x dx = 8/6 = 4/3 (4) Var[X] = E [ X ] E [X] = 4/3 1 = 1/3 (5) Problem 3.3.4 The probability density function of random variable Y is { y/ y <, f Y (y) = otherwise.

ECE3 Spring 6 HW5 Solutions February 1, 6 5 What are E[Y ] and Var[Y ]? Problem 3.3.4 Solution We can find the expected value of X by direct integration of the given PDF. f Y (y) = { y/ y otherwise The expectation is E [Y ] = yf Y (y)dy = To find the variance, we first find the second moment E [ Y ] = y f Y (y)dy = The variance is then Var[Y ] = E[Y ] E[Y ] = (4/3) = /9. y dy = 4/3 () y 3 dy =. (3) Problem 3.4. Y is an exponential random variable with variance Var[Y ] = 5. (a) What is the PDF of Y? (b) What is E[Y ]? (c) What is P[Y > 5]? Problem 3.4. Solution (a) From Appendix A, we observe that an exponential PDF Y with parameter λ > has PDF { λe λy y f Y (y) = otherwise In addition, the mean and variance of Y are E [Y ] = 1 λ Var[Y ] = 1 λ () Since Var[Y ] = 5, we must have λ = 1/5. (b) The expected value of Y is E[Y ] = 1/λ = 5, so E [ Y ] = Var[Y ] + (E [Y ]) = 5 (3) (c) P [Y > 5] = 5 f Y (y) dy = e y/5 5 = e 1 (4)

ECE3 Spring 6 HW5 Solutions February 1, 6 6 Problem 3.4.3 X is an Erlang (n, λ) random variable with parameter λ = 1/3 and expected value E[X] = 15. (a) What is the value of the parameter n? (b) What is the PDF of X? (c) What is Var[X]? Problem 3.4.3 Solution From Appendix A, an Erlang random variable X with parameters λ > a postive real number and n a positive integer has PDF f X (x) = { λ n x n 1 e λx /(n 1)! x otherwise In addition, the mean and variance of X are E [X] = n λ Var[X] = n λ () (a) Since λ = 1/3 and E[X] = n/λ = 15, we must have n = 5. (b) Substituting the parameters n = 5 and λ = 1/3 into the given PDF, we obtain f X (x) = { (1/3) 5 x 4 e x/3 /4 x otherwise (3) (c) From above, we know that Var[X] = n/λ = 45. Note: we need not use the definitions in Appendix A to solve these problems. We can obtain the expressions for the expected value and the variance by applying the definitions. This will require using integration by parts and induction, but is not otherwise difficult. Problem 3.5.1 The peak temperature T, as measured in degrees Fahrenheit, on a July day in New Jersey is the Gaussian (85,1) random variable. What is P[T > 1], P[T < 6], and P[7 T 1]? Problem 3.5.1 Solution Given that the peak temperature, T, is a Gaussian random variable with mean 85 and standard deviation 1 we can use the fact that F T (t) = Φ((t µ T )/σ T ) and Table 3.1 on

ECE3 Spring 6 HW5 Solutions February 1, 6 7 page 13 to evaluate the following ( ) 1 85 P [T > 1] = 1 P [T 1] = 1 F T = 1 Φ 1 = 1 Φ(1.5) = 1.933 =.668 ( ) 6 85 P [T < 6] = Φ = Φ(.5) 1 = 1 Φ(.5) = 1.9938 =.6 () P [7 T 1] = F T F T (7) = Φ(1.5) Φ( 1.5) = Φ(1.5) 1 =.8664 (3) Problem 3.5.3 X is a Gaussian random variable with E[X] = and P[ X 1] =.1. What is the standard deviation σ X? Problem 3.5.3 Solution X is a Gaussian random variable with zero mean but unknown variance. We do know, however, that P [ X 1] =.1 We can find the variance Var[X] by expanding the above probability in terms of the Φ( ) function. ( ) ( ( )) ( ) 1 1 1 P [ 1 X 1] = F X F X ( 1) = Φ 1 Φ = Φ 1 σ X σ X σ X () This implies Φ(1/σ X ) =.55. Using Table 3.1 for the Gaussian CDF, we find that 1/σ X.15 or σ X 8. Problem 3.6. Let X be a random variable with CDF x < 1, F X (x) = x/4 + 1/ 1 x < 1, 1 1 x. Sketch the CDF and find (a) P[X < 1] and P[X 1], (b) P[X < ] and P[X ], (c) P[X > 1] and P[X 1].

ECE3 Spring 6 HW5 Solutions February 1, 6 8 Problem 3.6. Solution Here the authors use the notation where a is any value in the range of the CDF. [As in] the previous problem we find (a) (b) (c) ( F X a ) := lim F x a X (a) ( F X a + ) := lim F x a + X (a) () P [X < 1] = F X ( 1 ) = P [X 1] = F X ( 1) = 1/4 (3) Here we notice the discontinuity of value 1/4 at x = 1. P [X < ] = F X ( ) = 1/ P [X ] = F X () = 1/ (4) Since there is no discontinuity at x =, F X ( ) = F X ( + ) = F X (). P [X > 1] = 1 P [X 1] = 1 F X = (5) P [X 1] = 1 P [X < 1] = 1 F X ( 1 ) = 1 3/4 = 1/4 (6) Again we notice a discontinuity of size 1/4, here occurring at x = 1. Problem 3.6.3 For random variable X of Problem 3.6., find (a) f X (x) (b) E[X] (c) Var[X] Problem 3.6.3 Solution (a) By taking the derivative of the CDF F X (x) given in Problem 3.6., we obtain the PDF { δ(x+1) f X (x) = 4 + 1/4 + δ(x 1) 4 1 x 1 otherwise The reason for the factor of 1/4 multiplying the impulses can be seen by graphing the CDF and determining the magnitude of the jumps in the CDF that occur at ±1. (You can calculate this without drawing the graph but it can be helpful to visualize the behavior of the function.)

ECE3 Spring 6 HW5 Solutions February 1, 6 9 (b) The first moment of X is E [X] = xf X (x) dx () = x/4 x= 1 + x /8 1 1 + x/4 x=1 = 1/4 + + 1/4 =. (3) (c) The second moment of X is E [ X ] = x f X (x) dx (4) = x /4 x= 1 + x 3 /1 1 1 + x /4 x=1 = 1/4 + 1/6 + 1/4 = /3. (5) Since E[X] =, Var[X] = E[X ] = /3. Problem 3.7. Let X have an exponential (λ) PDF. Find the CDF and PDF of Y = X. Show that Y is a Rayleigh random variable (see Appendix A.). Express the Rayleigh parameter a in terms of the exponential parameter λ. Problem 3.7. Solution Since Y = X, the fact that X is nonegative and that we asume the square root is always positive implies F Y (y) = for y <. In addition, for y, we can find the CDF of Y by writing [ ] F Y (y) = P [Y y] = P X y = P [ X y ] ( = F X y ) For x, F X (x) = 1 e λx. Thus, F Y (y) = { 1 e λy y otherwise () By taking the derivative with respect to y, it follows that the PDF of Y is f Y (y) = { λye λy y otherwise (3) In comparing this result to the Rayleigh PDF given in Appendix A, we observe that Y is a Rayleigh (a) random variable with a = λ.

ECE3 Spring 6 HW5 Solutions February 1, 6 1 Problem 3.7.3 If X has an exponential (λ) PDF, what is the PDF of W = X? Problem 3.7.3 Solution Since X is non-negative, W = X is also non-negative. Hence for w <, f W (w) =. For w, F W (w) = P [W w] = P [ X w ] = P [X w] () = 1 e λ w Taking the derivative with respect to w yields, for w, f W (w) = λe λ w /( w). The complete expression for the PDF is (3) f W (w) = { λe λ w w w > otherwise (4) where we note that we cannot allow w = to be part of the first case when we have w in the denominator. Problem 3.8.1 X is a uniform random variable with parameters 5 and 5. Given the event B = { X 3}, (a) Find the conditional PDF, f X B (x). (b) Find the conditional expected value, E[X B]. (c) What is the conditional variance, Var[X B]? Problem 3.8.1 Solution The PDF of X is f X (x) = { 1/1 5 x 5 otherwise (a) The event B has probability P [B] = P [ 3 X 3] = 3 3 1 1 dx = 3 5 From Definition 3.15, the conditional PDF of X given B is { { fx (x)/p [B] x B 1/6 x 3 f X B (x) = otherwise = otherwise () (3) (b) Given B, we see that X has a uniform PDF over [a,b] with a = 3 and b = 3. From Theorem 3.6, the conditional expected value of X is E[X B] = (a + b)/ =.

ECE3 Spring 6 HW5 Solutions February 1, 6 11 (c) From Theorem 3.6, the conditional variance of X is Var[X B] = (b a) /1 = 3. Of course we do not have to use Theorem 3.6. We can instead use the definitions and write Var[X B] = E [ X B ] 3 ( ) 1 (E [X B]) = x dx = = 3. (4) 3 6 Problem 3.8. Y is an exponential random variable with parameter λ =.. Given the event A = {Y < }, (a) What is the conditional PDF, f Y A (y)? (b) Find the conditional expected value, E[Y A]. Problem 3.8. Solution From Definition 3.6, the PDF of Y is f Y (y) = { (1/5)e y/5 y otherwise (a) The event A has probability P [A] = P [Y < ] = (1/5)e y/5 dy = e y/5 From Definition 3.15, the conditional PDF of Y given A is = 1 e /5 () { fy (y)/p [A] x A f Y A (y) = otherwise { (1/5)e = y/5 /(1 e /5 ) y < otherwise (3) (4) (b) The conditional expected value of Y given A is E [Y A] = yf Y A (y) dy = 1/5 1 e /5 ye y/5 dy (5) Using the integration by parts formula udv = uv v du with u = y and dv = e y/5 dy yields ( 1/5 E [Y A] = 1 e /5 5ye y/5 ) + 5e y/5 dy (6) = 1/5 1 e /5 ( 1e /5 5e y/5 = 5 7e /5 1 e /5 (8) ) (7)

ECE3 Spring 6 HW5 Solutions February 1, 6 1 Problem 3.9. For the modem receiver voltage X with PDF given in Example 3.3, use Matlab to plot the PDF and CDF of random variable X. Write a Matlab function x=modemrv(m) that produces m samples of the modem voltage X. Problem 3.9. Solution I generated the PDF and CDF using the Matlab commands normpdf and normcdf. I generated a histogram of the random samples from the PDF generated by my Matlab function modemrv. The code for generating the required plots is given below. % % Yates and Goodman 3.9. /14/6 --sk % x1 = (normpdf([-3:.1:3],-5,)+normpdf([-3:.1:3],5,))/; figure plot([-3:.1:3],x1) title( PDF for Example 3.3, p. 139 ); xlabel( x ); ylabel( f_x(x) ); print -deps pdf_3_9_ figure() x = (normcdf([-3:.1:3],-5,)+normcdf([-3:.1:3],5,))/; plot([-3:.1:3],x) title( CDF for Example 3.3, p. 139 ); xlabel( x ); ylabel( F_X(x) ); print -deps cdf_3_9_ % some checks: % height of local minimum of PDF at x = disp( height of local minimum of PDF at x = ) fx = *exp(-5/8)/sqrt(3*pi) % height of local maximum of PDF at x = +/- 5 disp( height of local maximum of PDF at x = +/- 5 ) fx5 = (exp(-1/8)+1)/sqrt(3*pi) x = modemrv; figure(3) hist(x,1); title( Histogram of samples from the PDF of Example 3.3 ) xlabel( x (Volts) ) print -deps hist_3_9_

ECE3 Spring 6 HW5 Solutions February 1, 6 13 Here is the plot of the PDF..1 PDF for Example 3.3, p. 139.9.8.7.6 f X (x).5.4.3..1 3 1 1 3 x Note that in order to verify that I was using the function normpdf correctly I plugged in the values of and 5 to see what the local maxima and minima should be. The results were >> p3_9_ height of local minimum of PDF at x = fx =.88 height of local maximum of PDF at x = +/- 5 fx5 =.997 which match the values seen in the plot of the PDF.

ECE3 Spring 6 HW5 Solutions February 1, 6 14 Here is the plot of the CDF. 1 CDF for Example 3.3, p. 139.9.8.7.6 F X (x).5.4.3..1 3 1 1 3 x Without doing any calculations, we know that the CDF should have value F X () = 1/ and that F X (x) should approach 1 as x becomes large. Our plot meets both of these criteria. Finally, here is the function modemrv, function x=modemrv(m); %Usage: x=modemrv(m) %generates m samples of X, the modem %receiver voltage in Exampe 3.3. %X=+-5 + N where N is Gaussian (,) sb=[-5; 5]; pb=[.5;.5]; b=finiterv(sb,pb,m); noise=gaussrv(,,m); x=b+noise; and the histogram of the data generated by the function modemrv. The shape of the histogram matches the shape of the PDF as it should.

ECE3 Spring 6 HW5 Solutions February 1, 6 15 3 Histogram of samples from the PDF of Example 3.3 5 15 1 5 15 1 5 5 1 15 x (Volts)