0% found this document useful (0 votes)
118 views

Lab2 CEE 11

This document provides instructions for a coin tossing experiment and analysis. A coin was tossed 100 times, resulting in 54 heads and 46 tails. The sample mean was 0.54, variance was 0.2509, and standard deviation was 0.501. For a fair coin, the probability mass function for the random variable X (defined as 1 for heads and 0 for tails) is p(x)=0.5 for x=1 and x=0, with mean μX=0.5 and variance σX2=0.25. The sample mean X is a normal random variable with mean μX=0.5, variance σX2=0.0025, and probability density function f(x

Uploaded by

Cristen Alvarez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views

Lab2 CEE 11

This document provides instructions for a coin tossing experiment and analysis. A coin was tossed 100 times, resulting in 54 heads and 46 tails. The sample mean was 0.54, variance was 0.2509, and standard deviation was 0.501. For a fair coin, the probability mass function for the random variable X (defined as 1 for heads and 0 for tails) is p(x)=0.5 for x=1 and x=0, with mean μX=0.5 and variance σX2=0.25. The sample mean X is a normal random variable with mean μX=0.5, variance σX2=0.0025, and probability density function f(x

Uploaded by

Cristen Alvarez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CEE11Lab#2(DueinEEEDropboxby11:55pmMonday,Week8)

Instruction:Tossafaircoinfor100times.
H=head,T=tail
Q1.
Thenumberofheadsis
54
thenumberoftailsis
46
_______
.

Q2.WedefinearandomvariableXas1iftheoutcomeisheadand0iftheoutcomeistail.Then
yoursamplemeanis x =
0.54
yoursamplevarianceis s2 =
0.2509
your
samplestandarddeviationis s =
0.501
.ReportnumbersinQ1andQ2intheGoogle
spreadsheet(
http://bit.ly/19nDwBB
).

Q3.Ifthecoinisfairi.e.,iftheprobabilityofgettingaheadis0.5,whatisthepmfofX,p(x)?
Whatareitsmeanvalue, X ,andvariance, X2 ?Whatkindofrandomvariableisit?

p(x)=

0.5,x=1

0.5,x=0

X =
x p(x)=0.5(1)+0.5(0)
=0.5

2
X2 = [x p(x)] X2 =1(0.5)+0(0.5) 0.52 =0.50.25=
0.25

ThisisaBernoulliRandomVariable

Q4.Ifwedenotetherandomsamplemeanby X ,thenwhatareitsmeanvalue, X ,andvariance,

X2 ?Whatkindofrandomvariableisit?Canyouwritedownthepdfoftherandomvariable, f (x)
?

X = X
=0.5
X2 =(1/n) X2
=(1/100)(0.25)=
0.0025
X isanormalrandomvariablebecausen>100.

f (x) =f(x, , )=

1
0.052

(x0.5)2
2(0.0025)

Q5:Whataretheprobabilitiesfor X tobegreaterthan0.45,0.55,0.65?

p( X
>0.45)=
1 (

p( X
>0.55)= 1 (

) =
1 ( 0.550.5

0.1587
0.05 ) = 1 (1) =

p( X
>0.65)= 1 (

) =
1 ( 0.450.5

0.8413
0.05 ) = 1 ( 1) =
) =
1 ( 0.650.5

0.0013
0.05 ) = 1 (3) =

Q6:Usethedataonthegooglespreadsheet(
http://bit.ly/19nDwBB
)tocreateahistogramof
samplemeans.AlsoplotthepdfinQ4onthesamepictureandseeifitmakessenseornot.

Page2
of3

Thisdefinitelymakessense.

Page3
of3

You might also like