Docsity

Slides on Practice Problems and Introducing Bayesian Statistics | STAT 703, Study notes of Statistics

Toggle sidebar
bg1
1
STAT 703/J703 B.Habing Univ. of SC 1
STAT 703/J703
April 19
th
, 2005
-
Lecture 25-
Instructor: Brian Habing
Department of Statistics
LeConte 203
Telephone: 803-777-3578
STAT 703/J703 B.Habing Univ. of SC 2
Today
• Practice Problems
• Introducing Bayesian Statistics
STAT 703/J703 B.Habing Univ. of SC 3
Chapter 8:
1) It can be shown (pg. 376) that the
variance of the sample median of a
continuous random variable with
median γis approximately 1/ 4
nf
2
(γ) .
The variance of the sample mean on
the other hand is always σ
2
/
n
.
a) Consider trying to estimate the center
of a normal distribution with mean µ
and variance σ
2
. What is the
efficiency of the mean relative to the
median?
pf3
pf4
pf5

Partial preview of the text

Download Slides on Practice Problems and Introducing Bayesian Statistics | STAT 703 and more Study notes Statistics in PDF only on Docsity!

STAT 703/J703 B.Habing Univ. of SC (^1)

STAT 703/J

April 19 th^ , 2005

- Lecture 25-

Instructor: Brian Habing

Department of Statistics

LeConte 203

Telephone: 803-777-

E-mail: [email protected]

STAT 703/J703 B.Habing Univ. of SC (^2)

Today

• Practice Problems

• Introducing Bayesian Statistics

STAT 703/J703 B.Habing Univ. of SC (^3)

Chapter 8:

1) It can be shown (pg. 376) that the

variance of the sample median of a

continuous random variable with

median γ is approximately 1/ 4nf 2 (γ).

The variance of the sample mean on

the other hand is always σ^2 /n.

a) Consider trying to estimate the center

of a normal distribution with mean μ

and variance σ^2. What is the

efficiency of the mean relative to the

median?

STAT 703/J703 B.Habing Univ. of SC (^4)

b) What condition must a distribution

satisfy for the median to be more

efficient than the mean for

estimating the center?

STAT 703/J703 B.Habing Univ. of SC (^5)

2a) Show that the gamma distribution

is an exponential family.

b) Find the sufficient statistic for (α,β)

for a gamma distribution.

STAT 703/J703 B.Habing Univ. of SC (^6)

Chapter 10: The given code

estimates theF distribution using

MoM, the gamma using both MoM

and MLE, and the log-normal by

transforming to a normal and using

the standard estimates. It then

calculates the Kolmogorov-Smirnov

test statistic and p-value

STAT 703/J703 B.Habing Univ. of SC (^10)

4) For a sample of size 5 I got that

all 4 distributions were accepted!

What is going on here?

whichdist(x) par1 par2 D pval f distribution 17.128 5.757 0.373 0. gamma (moments) 0.800 0.522 0.175 0. gamma (mle) 0.607 0.396 0.125 0. lognormal -0.590 1.809 0.154 0.

STAT 703/J703 B.Habing Univ. of SC (^11)

5) If the sample size is really huge

and you are using it on real data,

why does it make sense to simply

ignore the p-values and take the

one with the smallest D?

STAT 703/J703 B.Habing Univ. of SC (^12)

Concepts for Bayes…

1) A player recently promoted to the

major leagues has had 1 hit in his

first 25 at bats. What do you

estimate his batting average to be?

(Batting average = % of times a hit

is gotten in an at bat).

STAT 703/J703 B.Habing Univ. of SC (^13)

2) Consider your answer in 1. You

are then told that the batting

averages of professional major

league players has a mean of

around 0.266 and a standard

deviation of around 0.026. What do

you think about your estimate in 1

now?

STAT 703/J703 B.Habing Univ. of SC (^14)

3) Bayes Rule can be written

Imagine that we knewf (x| θ) andg( θ)

and wanted to find the maximum

likelihood estimate off ( θ |x). Why can we just find the value of θ that maximizesf(x | θ)g( θ) and not have

to worry about the integral in the

bottom?

fx g d

f x g

f x