• Nie Znaleziono Wyników

the statistical model

N/A
N/A
Protected

Academic year: 2021

Share "the statistical model"

Copied!
31
0
0

Pełen tekst

(1)

Mathematical Statistics Anna Janicka

Lecture III, 04.03.2019

INTRODUCTION TO MATHEMATICAL STATISTICS

(2)

Plan for today

1. Introduction to Mathematical Statistics

the statistical model

2. Statistics and their distributions

the normal model

3. Estimation – introduction

(3)

MATHEMATICAL STATISTICS

(4)

Assumptions

Empirical data reflect the functioning of a random mechanism

Therefore: we are dealing with random variables defined over some probabilistic space; the realizations of these random variables are the collected data.

Problem: we do not know the distribution

of these random variables...

(5)

Difference between Probability Calculus and Mathematical Statistics

1. PC, example:

Phrasing: in a production process each produced unit may be defective. This happens with probability 10%.

The defects of different units are independent.

Problems: What is the chance that in a batch of 50 items, exactly 6 will be defective? What is the

average number of defective elements? What is the most probable number of defective elements?

Solution: we build a probabilistic model. Here: a Bernoulli Scheme with n=50, p=0,1.

Alternatively, if we are interested in questions dealing with order (e.g. what is the chance that the first 5

items are defective?): a different model

(6)

Difference between Probability Calculus and Mathematical Statistics – cont.

2. MS, example:

Formulation: An inspector verified a batch of 50 items, with the following results (1– item defective, 0 – OK):

0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 Problems: what is the probability that an item is

defective (assessment)? Is the producer’s declaration that defectiveness is equal to 10% credible?

Solution: we build a statistical model, i.e. a probabilistic model with unknown distribution parameter(s).

(7)

Statistical Model

Statistical Model:

where:

X – the space of values for the observed

random variable X (often n-dimensional, if

we have an n-dimensional sample X

1

, ..., X

n

) F

X

– σ-algebra on X

P – a family of probability distributions P

θ

, indexed by a parameter θ ∈Θ

In a less formal setting we usually provide: X, P, Θ

) ,

,

( Ω F P

) P , F

X,

(

X

in PC:

(8)

Statistical model – example

X = {0,1}

n

– sample space Joint probability distribution:

for θ ∈[0,1]

(we have n=50, X

2

= X

10

= X

15

= X

32

=X

42

= X

50

=1, other X

i

= 0)

i i

i i

x n x

n

i

x x

n

n

x

X x

X x

X P

Σ

Σ

=

=

=

=

=

= ∏

) 1

(

) 1

( )

,..., ,

(

1

1 2

2 1

1

θ θ

θ

θ

θ

(9)

Statistical model – example cont.

Alternative formulation (if we only record the number of defective items in a sample):

X = {0,1, 2, ..., n} – sample space Joint probability distribution:

for θ ∈[0,1]

(we have n=50 and X=6)

x n x

x x n

X

P  −

 

= 

= ) ( 1 )

( θ θ

θ

(10)

Statistical model – example cont. (2) Possible questions

Based on the sample:

What is the value of θ ?

we are interested in a precise value

we are interested in an interval (confidence)

→ estimation

Verification of the hypothesis that θ =0.1

→ hypothesis testing

→ predictions

(11)

Statistical Model: example 2 Growths on the market

An analyst studies the length of periods of growth on the stock market. He is interested in times of growth (until the first fall), in days. Assume the times of growth, X

1

, X

2

, ..., X

n

are a sample from an exponential distribution Exp( λ ), where:

λ – unknown parameter X =(0,∞)

n

– sample space Joint probability distribution:

for λ > 0

=

=

n

i

x n

n

e i

x X

x X

x X

P

1 2

2 1

1 , ,..., ) (1 )

( λ

λ

xi

n

n e

x x

x

fλ( 1, 2,..., ) = λ λ Σ

(12)

Statistical Model: example 3 Measurements with error

We repeat measuring µ , the results of

measurements are independent random variables X

1

, X

2

, ..., X

n

, (our machine is not perfect). Each measurement is normally distributed N( µ , σ

2

).

µ , σ

2

– unknown parameters (so θ = ( µ , σ )) X = R

n

– sample space

Joint probability distribution:

or

for µ ∈R, σ >0

∏ ( )

=

Φ

=

n

i

x n

n

x i

X x

X x X

P

1 2

2 1

1

,σ ( , ,..., ) σ µ

µ

( ) (

=

)

= n

i i

n

n x

x x

x

f 1

2 2

1 2

1 2

1

,σ ( , ,..., ) πσ exp σ2 ( µ)

µ

(13)

STATISTICS

(objects)

(14)

Statistics

Parameter estimation (both point and

interval) as well as hypothesis testing are conducted based on statistics

Statistic = a function of observations, i.e.

any random variable

The distribution of a statistic T depends on the distribution of X, but the statistic as such cannot depend on parameter θ , e.g.

X

1

+X

2

- θ )

,..., ,

( X

1

X

2

X

n

T

T =

(15)

Statistics – examples

are statistics for a sample size of n;

are statistics for a single observation

The choice of a statistic depends on the question we want to answer.

1 . 0

,

,

1 1

3 1

1 2

1

1

= ∑ = ∑ = ∑ −

=

=

=

n

i n i n

i n i n

i

i

T X T X

X T

1 . 0

,

,

2 3

1

= = = −

n T X

n T X

X

T

(16)

Distribution of statistics

In many cases statistical models refer to a common set of assumptions → similar

models are applied.

Similar questions are posed → similar statistics are calculated.

The most commonly used is the normal

model

(17)

The normal model

X

1

, X

2

, ..., X

n

are a sample from N( µ , σ

2

).

The most important statistics (in general, not only for this model):

Mean:

sample variance:

standard deviation:

=

=

n

i

X

i

X n

1

1

2 1

2 1

2 1

, ) (

S S

X X

S

n

i n i

=

= ∑

=

what are their

distributions?

(18)

Chi-squared Distribution χ

2

(n)

A special case of the gamma distribution.

The sum of squares of n IIN random variables

(independent identically N(0,1) distributed) has a

χ

2

(n) distribution

(19)

The normal model – cont. (1)

Theorem: In the normal model, the and S

2

statistics are independent random

variables such that

in particular:

X

) ,

(

~ N

2 n

X µ

σ

) 1 (

~

2

1 2

2

χ −

S n

n σ

) 1 2 (

Var and

,

2 4

2 2

,

= = −

S n S

E

µ σ

σ σ

) 1 , 0 ( ) ~

(X n N

σ µ

(20)

The normal model – cont. (2)

In the normal model, the variable

has a t-Student distribution with n -1 degrees of freedom, T ~ t(n -1)

S X

T = n ( − µ )

(21)

t -Student Distribution t(n), n=1,2,7

defined as the distribution of the random variable

for independent X and Y, X~N(0,1), Y~χ

2

(n)

(22)

ESTIMATION

(23)

Point Estimation

The choice, on the base of the data, of the best parameter θ , from the set of

parameters which may describe P

θ

An Estimator of parameter θ is any statistic

with values in Θ (we interpret it as an

approximation of θ ). Usually denoted by Sometimes we estimate g( θ ) rather than θ .

) ,...,

,

( X

1

X

2

X

n

T

T =

θ ˆ

(24)

Estimation: an example Empirical frequency

Quality control example:

0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1

Model: X = {0,1, 2, ..., n} (here n=50), for θ ∈[0,1]

parameter θ : probability of faulty element an obvious estimator:

n – sample size

X – number of faulty elements in sample

650

ˆ =

X n

=

θ

x n x

x x n

X

P  −

 

= 

= ) ( 1 )

( θ θ

θ

For a different model (all outcomes) the estimator is an average

(25)

Problems with (frequency) estimators...

Example: three genotypes in a population, with frequencies

In a population of size n, N

1

and N

2

and N

3

individuals of particular genotypes were

observed.

Should we take ? or rather

? How about ? Maybe something else?

→ How do we choose the best one?

2 2

: 2 θ ( 1 θ ) : ( 1 θ )

θ − −

n N1

θ ˆ =

n N3

ˆ = 1 −

θ n

N n

N

1 2

2

ˆ = + 1

θ

(26)

Estimation – sample characteristics

Sample characteristics:

estimators based on the empirical

distribution (empirical CDF)

(27)

Empirical CDF

Let X

1

, X

2

, ..., X

n

be a sample from a

distribution given by F (modeled by {P

F

}) (n-th) empirical CDF

For a given realization {X

i

} it is a function of t, the CDF of the empirical distribution (uniform over x

1

, x

2

, ..., x

n

). For a given t it is a statistic with a distribution

n

t X : X ns observatio of

number n

i t i

n n

i

X

i

t

F = ∑

=1 (−∞, ]

=

1

( )

)

ˆ ( 1

n k

t F t

k F t n

F

P( ˆ( ) kn)  ( )k (1− ( ))n k, = 0,1,...,

 

= 

=

(28)

Empirical CDF: properties

1.

2.

3. from CLT:

i.e., for any z:

4. Glivenko-Cantelli Theorem

for ) ( )

ˆ ( t F t F

E

F n

=

)) (

1 )(

( )

ˆ (

Var F

n

t =

n1

F tF t

) 1 , 0 )) (

( 1

)(

(

) ( )

ˆ (

N t n

F t

F

t F t

F

n

n  →

) )) (

( 1 )(

(

) ( )

ˆ (

z z

t n F t

F

t F t

P Fn Φ

0

| ) ( )

ˆ (

|

sup −   → 

. .

s a t n

t F t

F

R

n → ∞

if sample size increases, we will approximate the

unknown distribution with any given level of precision

(29)

Order statistics

Let X

1

, X

2

, ..., X

n

be a sample from a

distribution with CDF F. If we organize the observations in ascending order:

X

1:n

, X

2:n

, ..., X

n:n

← order statistics (X

1:n

= min, X

n:n

= max)

An empirical CDF is a stair-like function,

constant over intervals [X

i:n

, X

i+1:n

)

(30)

Distribution of order statistics

Let X

1

, X

2

, ..., X

n

be independent random variables from a distribution with CDF F.

Then X

k:n

has a CDF equal to

If additionally the distribution is continuous with density f, then X

k:n

has density

( ) ( )

=

 

 

= 

=

n

k i

i n i

n k n

k

F x F x

i x n

X P x

F

:

( ) (

:

) ( ) 1 ( )

( ) (

k

)

n k

n

k

f x F x F x

k n n x

f 

 

= − ( ) ( ) 1 ( )

1 ) 1

(

1

:

(31)

Cytaty

Powiązane dokumenty

Manoeuvring decisions recognition system based on probabilistic model by using the Bayesian belief networks has been proposed.. Suggested variables necessary for

When applying probabilistic modelling it is a necessity to consider multiple random variables as both input and in the model itself, depending on the applied approach.. In the

Whence these probability laws are found out, they can be sampled to generate realizations of the random flow model, allowing for a Monte-Carlo analysis of the uncertainty impact on

Market Segments Explanatory variables Model Specification 3 Results Data Estimates Extensions.

In reality, we frequently do not know the distributions of random variables, and work with samples instead... this is the CDF of the

D a i, On an initial boundary value problem for nonlinear pseudoparabolic equations with two space variables, Complex Variables Theory Appl., to appear..

We have also presented three statistical approaches to the problem of measuring the volume of unregistered trade with the East of Europe (a questionnaire survey based on a

Data information is defined as all contents of data buffers ; control information is defined as anything else in the shared memory space (i.e. initialization block,