Cymedr, Amrywiant a Gwyriad Safonol

Download Report

Transcript Cymedr, Amrywiant a Gwyriad Safonol

Cymedr ac Amrywiant Hapnewinynau Di-dor
The Mean and Variance of a Continuous Random Variable
Er mwyn darganfod beth yw cymedr neu gwerth disgwyliedig
hapnewidyn di-dor, rhaid i ni luosi’r ffwythiant dwysedd
tebygolrwydd f(x) gydag x cyn integru rhwng y terfannau.
In order to calculate the mean or expected value of a continuous random
variable, we must multiply the probability density function f(x) with x
before we integrate within the limits.
b
E(X) =
 x. f ( x)dx
a
I ddarganfod yr amrywiant, rhaid darganfod E(X2) i ddechrau gan fod
To calculate the variance, we need to find E(X2) since
Var (X) = E(X2) – [E(X)]2
b
2
x
 . f ( x)dx
E(X2) =
a
Enghraifft - Example
Dosrennir yr hapnewidyn di-dor X gyda ffwythiant dwysedd
tebygolrwydd f, lle mae
The continuous random variable X is distributed with probability density
function f(x) where
f(x) = 6x(1-x) ar gyfer 0 ≤ x ≤ 1
a) Darganfyddwch gymedr ac amrywiant X.
Calculate the mean and variance of X.
b) Diddwythwch gymedr ac amrywiant
Deduce the mean and variance of
(i) Y = 10X – 3
(ii) Z = 2(3 – X)
5
c) Enrhifwch E(5X2 – 3X + 1)
Evaluate E(5X2 – 3X + 1)
a) Darganfyddwch gymedr ac amrywiant X.
Calculate the mean and variance of X.
f(x) = 6x(1-x) = 6x – 6x2
1
E(X) =
 x (6 x  6 x
0
1
2
)dx   (6 x  6 x )dx
2
3
0
1
 6x 6x 



4 0
 3
3
4
31
 21 
2
4
3
1

2
Var (X) = E(X2) – [E(X)]2
E(X2) =
1
1
0
0
2
2
3
4
x
(
6
x

6
x
)
dx

(
6
x

6
x
)dx


1
 6x
6x 



5 0
 4
4
5
31 61


2
5
3
2
Var (X) =
3 1
1
  
10  2 
20
4
3

10
b) Diddwythwch gymedr ac amrywiant
Deduce the mean and variance of
(i) Y = 10X – 3
(ii) Z = 2(3 – X)
5
(i) E(Y) = E(10X – 3) = 10E(X) – 3 = 10 x 1 – 3 = 2
2
Var(Y) = Var(10X – 3) = 102 Var(X) = 100 x 1 = 5
20
(ii) E(Z) = E 6 – 2X = 6 – 2E(X) = 6 – 2 x 1 = 1
5 5
5 5
5 5 2
Var(Z) = Var 6 – 2X = 2
5 5
5
2x
Var (X) = 2
5
2x
1 = 1 .
20 125
c) Enrhifwch E(5X2 – 3X + 1)
Evaluate E(5X2 – 3X + 1)
E(5X2 – 3X + 1) = 5E(X2) – 3E(X) + 1 =
5x 3 - 3x1 +1= 1
10
2
Ymarfer/Exercise 1.4
Mathemateg - Ystadegaeth Uned S2 – CBAC
Mathematics Statistics Unit S2 - WJEC
Gwaith Cartref/Homework 11
Gwaith Cartref/Homework 12