0% found this document useful (0 votes)
31 views3 pages

Est 4

The document contains the output of simulations of confidence intervals for the mean of a distribution with a known standard deviation. It shows how the width and coverage of confidence intervals based on the z-distribution and t-distribution change as the sample size and confidence level are varied.
Copyright
© Attribution Non-Commercial (BY-NC)
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)
31 views3 pages

Est 4

The document contains the output of simulations of confidence intervals for the mean of a distribution with a known standard deviation. It shows how the width and coverage of confidence intervals based on the z-distribution and t-distribution change as the sample size and confidence level are varied.
Copyright
© Attribution Non-Commercial (BY-NC)
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

> ci.examp(mean.sim = 15, sd = 4, n = 4, reps = 100, conf.

level =
0.95, method = "z")

100

Confidence intervals based on z distribution


|
|
|
80

60

| |

40

||

||

|
|
|

|
|

|
|

||

||

|
|

|
|

| |
|
|| |
||
||
| |

20

|
|
||
||

||

|
|

Index

|
|

||
|

||
|
| |
|
|

|
| |
| |
|| |

10

|
15

20

Confidence Interval

> ci.examp(mean.sim = 15, sd = 4, n = 4, reps = 100, conf.level =


0.99, method = "z")

100

Confidence intervals based on z distribution


|
|
|
| |

| |
| | |
| |
|
|
|
|
|
|
| || |
|
||

80

| |
|
|
| |

20

40

Index

60

||
| | |
|
|
|
|
| |
|
| | |
||
|
|
|| |
|
|
|
|
|
|
|
|
|
|
|
|
||
| |
|
|
|
|
|
|
| |
|
|
|
| |
| | |
|
|
|
5

10

|
|

|
|

15
Confidence Interval

20

25

> ci.examp(mean.sim = 15, sd = 4, n = 25, reps = 100, conf.level =


0.95, method = "z")

100

Confidence intervals based on z distribution


||
|

| |
|

|
|

|
|

||
|

80

|
|
|

60

|
|

||
|
|
|

Index

||
|

40

20

|
|
|

|
0

|
|
11

12

13

|
|

14

|
|
|

|
|

|
|

|
|

|
|

| ||
|
| |
|
|
|
|
|
|
|

|
|

|
|

|
|
|
|
|
|
|
||
|
|
| ||
|

15

16

|
|

17

18

Confidence Interval

> ci.examp(mean.sim = 15, sd = 4, n = 4, reps = 100, conf.level =


0.95, method = "t")

100

Confidence intervals based on t distribution


|| |
|||
|
||
||
|| |
|
| ||
|
|
|
|
| | ||
|
|
|| | | |
|
|| ||
||
|
|
|
| | | |
|
|
|
||
|
| | | |
|
| ||
||
| | |
|
|
|
|
|
|
|
|
|
|
| ||
|
|
| |
| | | | |
||
|
| |
|
| |

Index

60

80

20

40

10

15

20

Confidence Interval

25

30

> qt(c(0.975), df=3, lower.tail=TRUE)


[1] 3.182446
> ci.examp(mean.sim = 15, sd = 4, n = 25, reps = 100, conf.level =
0.95, method = "t")

100

|| |
| ||
|
|
|
| |
|
|
|
|
|
|
||

60

80

Confidence intervals based on t distribution

Index

40

| |
|

|
||
|

|
12

14

|
||
||

|
| |

|
|

||
|

| |
|

||

20

|
|
|

|
|

|
| |
|
|
|
||
| |
||
|
| |
|

|
||
|

|
|

||
||
| |
|

16

Confidence Interval

18

You might also like