Docsity

Correlation and Regression, Study notes of Probability and Statistics

Toggle sidebar
bg1
Tutorial
Module 2: Random Variables
Problem 1
A random variable Xhas the following probability mass function:
x−2−1 0 1 2
P(X=x)k2k3k2k k
(i) Find k(ii) Find the mean and variance of X
Solution
XP(X=x)=1⇒9k=1⇒k=1
9
E(X) = XxP (X=x)
= (−2)1
9+ (−1)2
9+ 0 + (1)2
9+ (2)1
9= 0
E(X2) = Xx2P(X=x)
=4
9+2
9+0+2
9+4
9=12
9
V ar(X)=E(X2)−[E(X)]2=4
3
Problem 2
The probability density function of a continuous random variable Xis
f(x) = (kx, 0<x<4
0,otherwise
Find (i) k(ii) E(X) (iii) V ar(X).
1
pf3
pf4

Partial preview of the text

Download Correlation and Regression and more Study notes Probability and Statistics in PDF only on Docsity!

Tutorial

Module 2: Random Variables

Problem 1

A random variable X has the following probability mass function:

x − 2 − 1 0 1 2 P (X = x) k 2 k 3 k 2 k k

(i) Find k (ii) Find the mean and variance of X

Solution X P (X = x) = 1 ⇒ 9 k = 1 ⇒ k =^1 9

E(X) =

X

xP (X = x)

= (−2)^1

+ (−1)^2

+ 0 + (1)^2

+ (2)^1

E(X^2 ) =

X

x^2 P (X = x)

V ar(X) = E(X^2 ) − [E(X)]^2 =^43

Problem 2

The probability density function of a continuous random variable X is

f (x) =

kx, 0 < x < 4 0 , otherwise Find (i) k (ii) E(X) (iii) V ar(X).

Solution Z (^4)

0

kx dx = 1 ⇒ k

x^2 2

0

= 1 ⇒ 8 k = 1 ⇒ k =^1 8

E(X) =

Z 4

0

x · x 8

dx =^1 8

Z 4

0

x^2 dx =^1 8

=^8

E(X^2 ) =^18

Z 4

0

x^3 dx =^18 · 64 = 8

V ar(X) = 8 −

=^89

Problem 3

If X has the following PMF:

x 0 1 2 3 P (X = x) 0.1 0.3 0.4 0.

Find the probability distribution of Y = X^2 + 2X and the mean of Y.

Solution

Y = X^2 + 2X

X Y 0 0 1 3 2 8 3 15

E(Y ) =

X

Y P (X) = 0(0.1) + 3(0.3) + 8(0.4) + 15(0.2)

Problem 4

The joint probability distribution of (X, Y ) is given by:

P (X = x, Y = y) = 161 (x + y), x = 1, 2; y = 1, 2 (i) Find the marginal distributions (ii) Find P (X = 1|Y = 2)

Problem 8

If the moment generating function of X is

MX (t) = (1 − 2 t)−^3 Find the mean and variance of X.

Solution

E(X) = M (^) X′ (0) = 6

V ar(X) = M (^) X′′ (0) − [M (^) X′ (0)]^2 = 12

Problem 9

If MX (t) = e^2 t+3t^2 , find E(X) and V ar(X).

Solution

E(X) = 2, V ar(X) = 6

Problem 10

If X and Y are independent random variables with E(X) = 5, V ar(X) = 4, E(Y ) = 3, V ar(Y ) = 2, find E(2X + Y ) and V ar(2X + Y ).

Solution

E(2X + Y ) = 2E(X) + E(Y ) = 13

V ar(2X + Y ) = 4V ar(X) + V ar(Y ) = 18