1
Advanced Mathematical Methods
Part II – Statistics Statistical Inference
Mel Slater
http://www.cs.ucl.ac.uk/staff/m.slater/Teaching/Statistics/
R.A. Fisher
Advanced Mathematical Methods Part II Statistics Statistical - - PowerPoint PPT Presentation
Advanced Mathematical Methods Part II Statistics Statistical Inference Mel Slater http://www.cs.ucl.ac.uk/staff/m.slater/Teaching/Statistics/ R.A. Fisher Karl Pearson Thomas Bayes 1 Outline Bayes Theorem Examples of Inference
1
Part II – Statistics Statistical Inference
Mel Slater
http://www.cs.ucl.ac.uk/staff/m.slater/Teaching/Statistics/
R.A. Fisher
2
3
To make informed probability statements
H1, H2, …, Hn are n mutually exclusive
E is some event. Require P(Hj|E)
4
It is easy to see: and therefore: and so:
5
6
7
Recall the ‘extra sensory hypothesis’
Simplification of the Rhine experiments:
8
9
f(p|x) ∝ f(x|p)f(p) This is is the Beta distribution with
Suppose n = 500 and x = 280. From MATLAB (betacdf) we find
We would conclude that something ‘beyond
(This is the type of data that Rhine obtained
x n x
−
10
From MATLAB using betainv, we can find
Since this range does not include the
This is called an ‘interval estimate’ for p.
11
For the p ~ beta(a,b) distribution it can be
E(p|x) could serve as a single value estimator
2
12
For large n,
Note that E((x+1)/(n+2)|p) ≠ p
In general if t is an estimator for parameter
13
The pdf shows
The full
14
In our example we state a null hypothesis
We will decide to reject H0 if on our
15
We know p|x ~ Beta(x+1,n-x+1) Using MATLAB notation the test is:
If we find in advance a value x0 such that
Then the test becomes
16
The 0.05 is called the ‘significance level’
The significance level is usually denoted
P(Type II error) = β Power = 1-β
power Type II error H1 ‘true’ Type I error H0 ‘true’ H1 decided H0 decided
17
18
See notes for ‘proof’ X is any r.v. with finite mean µ and variance
x1,x2, …, xn are n independent observations
The sample mean is For n ‘large’
=
n i i
1
2
19
20
21
Assume we know ‘nothing’ about µ The ‘pseudo’ pdf for µ would then be
– This is not a true pdf!
From Bayes’ Theorem From the CLT we know therefore that
2
22
An estimator for µ From the normal distribution it is also
2
23
H0: µ = µ0 H1: µ = µ1 > µ0