Docsity

Probability and Statistics: Practice with Random Variables and Least Squares Method - Prof, Assignments of Civil Engineering

Toggle sidebar
bg1
PRACTICE ON RANDOM VARIABLES & LEAST SQUARE METHOD
1) Consider the discrete random variable X=’ the product of the outcomes from rolling
two dice at the same time’. Assume a dice with 6 faces. Determine:
a. The sample space S associated with the random variable X;
b. The probability function of X, that is p(x)=Pr[X =x];
c. Define the mapping p(x):S
Æ
R using Euler-Venn diagrams;
d. the mean and standard deviation of X;
e. the probability that X >30.
______________________________________________________________________
2) Consider the discrete random variable Y=’ number of heads after flipping a coin 5
times’. Determine:
a. The sample space S associated with the random variable Y;
b. The probability function of Y, that is p(y)=Pr[Y =y];
f. Define the mapping p(y):S
Æ
R using Euler-Venn diagrams;
a. the mean and standard deviation of Y;
b. the probability that Y >4;
c. the probability that 1<Y <3.
d. the probability that Y =5.
______________________________________________________________________
3) Consider the continuous random variable T=’ waiting time at the bus station’. Assume
a max delay of 30 minutes. Answer the following questions:
a. Determine the sample space S associated with the random variable T;
b. given the function f(t)=A*t, with t time in minutes, find the parameter A such that
f(t) is the probability density of T, that is f(t)*dt=Pr[ t<T<t+dt];
c. derive the mean and standard deviation of T;
d. compute the probability that T>15 minutes;
e. compute the probability that T<3 minutes.
f. Compute the probability that T=15 minutes.
______________________________________________________________________
4) Consider ocean waves during an intense storm off the Tybee coast. The wave
amplitude H is approximately a Gaussian variable with mean zero. The intensity of the
storm is measured by the standard deviation of H given by σ=2 meters. Compute:
a. the probability that the wave height H>24 meters; this is the probability of
occurrence of giant waves in the middle of ocean usually called as rogue waves.
b. the probability that the wave height 0.5 meters <H<2 meters.
c. Assume the probability of a rogue wave larger than 24 meters is P=10-3 ; this
means that 1 wave over 1000 waves is larger than 24 meters. This is a very
dangerous wave. What is the intensity of the storm that can generate such a large
wave ? To answer the previous question that to derive the standard deviation σ of
H that can lead to such extreme events using Chebychev’s inequality.
pf3
pf4
pf5

Partial preview of the text

Download Probability and Statistics: Practice with Random Variables and Least Squares Method - Prof and more Assignments Civil Engineering in PDF only on Docsity!

PRACTICE ON RANDOM VARIABLES & LEAST SQUARE METHOD

  1. Consider the discrete random variable X =’ the product of the outcomes from rolling two dice at the same time’. Assume a dice with 6 faces. Determine: a. The sample space S associated with the random variable X ; b. The probability function of X , that is p( x )=Pr[ X = x ];

c. Define the mapping p(x):S Æ R using Euler-Venn diagrams;

d. the mean and standard deviation of X ; e. the probability that X >30.


  1. Consider the discrete random variable Y =’ number of heads after flipping a coin 5 times’. Determine: a. The sample space S associated with the random variable Y ; b. The probability function of Y , that is p( y )=Pr[ Y = y ];

f. Define the mapping p(y):S Æ R using Euler-Venn diagrams;

a. the mean and standard deviation of Y ; b. the probability that Y >4; c. the probability that 1< Y <3. d. the probability that Y =5.


  1. Consider the continuous random variable T=’ waiting time at the bus station’. Assume a max delay of 30 minutes. Answer the following questions: a. Determine the sample space S associated with the random variable T; b. given the function f( t )=A* t , with t time in minutes, find the parameter A such that f(t) is the probability density of T, that is f(t)*dt=Pr[ t<T<t+dt]; c. derive the mean and standard deviation of T; d. compute the probability that T>15 minutes; e. compute the probability that T<3 minutes. f. Compute the probability that T=15 minutes.

  1. Consider ocean waves during an intense storm off the Tybee coast. The wave amplitude H is approximately a Gaussian variable with mean zero. The intensity of the storm is measured by the standard deviation of H given by σ=2 meters. Compute: a. the probability that the wave height H>24 meters; this is the probability of occurrence of giant waves in the middle of ocean usually called as rogue waves. b. the probability that the wave height 0.5 meters <H<2 meters. c. Assume the probability of a rogue wave larger than 24 meters is P=10 -3^ ; this means that 1 wave over 1000 waves is larger than 24 meters. This is a very dangerous wave. What is the intensity of the storm that can generate such a large wave? To answer the previous question that to derive the standard deviation σ of H that can lead to such extreme events using Chebychev’s inequality.

______________________________________________________________________

  1. The random variable X is continuous and uniform in [-1, 1] with probability density function given by

1 1 2

f ( x )= − ≤ x ≤.

Consider the variable Y such that

Y = 2 X^2 − X.

Answer the following questions: a) determine the sample space of Y; b) determine analytically and plot the probability density function of Y; c) compute the mean and variance of Y; d) compute the probability that Y>2.


  1. Describe the meaning of the Chebychev’s inequality

[ ] 2

Pr k

X −μ> k σ≤.

Verify the inequality for the random variable X which is continuous and uniform in [ 0, 1 ] with probability density function given by f ( x )= 1 0 ≤ x ≤ 1.


  1. The Gaussian variable X has mean=0 and standard deviation=1. Consider the random variable Y=X^2 : a) What is the sample space of Y? b) Derive the probability density function f(y). b) What is the mean and standard deviation of Y? c) What is the probability that Y<0? d) What is the probability that Y>0?

  1. The continuous random variable X is defined over the interval [-1,1]. Consider the function

f ( x )= ax^2 + b.

Determine a and b such that f(x) is the probability density function of X with mean equal to zero.


  1. The continuous random variable X is defined over all the real line. Consider the function

−∞< < ∞

= x ax

f x ; 1

a) Determine a such that f(x) is the probability density function of X. b) What is the mean and variance of X?

The parameter λ is the average number of airplanes arriving during t. Some algebra yields the mean and variance of X both equal to λ t.

a) What is the probability that during the time interval t no airplanes arrive at the airport at all? b) Consider now the random variable T that is the inter-time between the arrivals of two airplanes at the Savannah airport. T is defined in minutes with probability density function given by the exponential distribution:

⎟⎟ −∞< <^ ∞ ⎠

⎞ ⎜⎜ ⎝

⎛ = − t t pt s s

exp ; 1 () τ τ

c) Show that the probability Pr[ X = 0] is equal to the probability that 1-Pr[ T > 0] if

τ s

λ 1 =.


14 Consider the following data set ( xn ,y (^) n ) also shown in figure 1. xn y (^) n 0 1. 0.0500 1. 0.1000 1. 0.1500 1. 0.2000 1. 0.2500 1. 0.3000 1. 0.3500 1. 0.4000 1. 0.4500 1. 0.5000 1. 0.5500 1. 0.6000 1. 0.6500 1. 0.7000 1. 0.7500 2. 0.8000 2. 0.8500 2. 0.9000 2. 0.9500 2. 1.0000 2.

x a) Using least square approach, determine the best linear fit Y=aX+b. Use MATLAB to show your results (cut and paste the data from word to Matlab).


15 Consider the following data set ( xn ,y (^) n ) b) Using least square approach, determine the best linear fit Y=aX+b. Use

 - 0 1.4 1.6 1.8 2 2.2 2.4 2.6 2. - 0. - 0. - 0. - 0. - 0. - 0. - 0. - 0. - 0. - Figure y 
  • -1.0000 1. xn y n
  • -0.9000 1.
  • -0.8000 1.
  • -0.7000 1.
  • -0.6000 1.
  • -0.5000 1.
  • -0.4000 1.
  • -0.3000 2.
  • -0.2000 2.
  • -0.1000 2. - 0 2.
    • 0.1000 2.
    • 0.2000 1.
    • 0.3000 2.
    • 0.4000 1.
    • 0.5000 1.
    • 0.6000 1.
    • 0.7000 1.
    • 0.8000 1.
    • 0.9000 1.
    • 1.0000 1.