Docsity

Terminating Statistical Analysis - Banking - Lecture Slides, Slides of Banking and Finance

Partial preview of the text

Download Terminating Statistical Analysis - Banking - Lecture Slides and more Slides Banking and Finance in PDF only on Docsity!

1

Terminating Statistical

Analysis

C6/

Statistical Analysis of Output

Data: Terminating Simulations

• Random input leads to random output (RIRO)

• Run a simulation (once) — what does it mean?

  • Was this run “typical” or not?
  • Variability from run to run (of the same model)?

• Need statistical analysis of output data

• Time frame of simulations

  • Terminating: Specific starting, stopping conditions
  • Steady-state: Long-run (technically forever)
  • Here: Terminating

C6/

T-distribution

• The t-statistic is given by

  • If the Y 1 ,…,Y (^) n are normally distributed and then the t- statistic is t-distributed
  • If the Y1,…,Y (^) n are not normally distributed, but then the t-statistic is approximately t-distributed thanks to the Central Limit Theorem

• requires a reasonably large sample size n

  • We require an estimate of the variance of denoted

ˆ( ˆ )

ˆ

t = θ −θ

θˆ = Y

θˆ= Y

θˆ^ σ^2 ( θˆ)

C6/

T-distribution Confidence Interval

  • An approximate confidence interval for is then - The center of the confidence interval is - The half-width of the confidence interval is - is the 100( α /2)% percentile of a t-distribution with f degrees of freedom.

θ [θ ˆ − t (^) f , 1 − a / 2 ,σˆ(θˆ),θˆ+ tf , 1 − a / 2 σˆ( θˆ )]

θˆ

t (^) f , 1 − a / 2 σˆ( θˆ ) t (^) f , 1 − a / 2 0 5 10 15 20 25 30

1

Sample Repetition

Parameter Value

C6/

T-distribution Confidence Interval

• Case 2: Y 1 ,…,Yn are not independent

  • This is the case when you are using data generated within a single simulation run

• sequences of observations in long-run steady-state simulations

  • s 2 /n is a biased estimator of
  • Y 1 ,…,Y (^) n is an auto-correlated sequence or a time-series
  • Suppose that our point estimator for is , a general result from mathematical statistics is

σ^2 ( θˆ )

θ θˆ= Y

= =

=

n

i

n

j n Yi^ Yj (^21 ) σ^2 ( θˆ)^1 cov( , )

C6/

T-distribution Confidence Interval

• Case 2: Y 1 ,…,Yn are not independent

  • For n observations there are n 2 covariances to estimate
  • However, most simulations are covariance stationary, that is for all i , j and k
  • Recall that k is the lag, so for a given lag, the covariance remains the same throughout the sequence
  • If this is the case then there are n-1 lagged covariances to estimate, denoted γk and

cov( Y (^) i , Yi + k ) =cov( Yj , Yj + k )



 

  

  

= + ^ −

−

=

1

1 2

2 2 ( ˆ) 1 2 1

n

i

k n

k n σ

σ θ σ γ

C6/

T-distribution Confidence Interval

• Case 2: Y 1 ,…,Yn are not independent

  • What is the effect of this bias term?
  • For primarily positively correlated sequences B < 1 , so the half-width of the confidence interval will be too small

• Overstating the precision => make conclusions you shouldn’t

  • For primarily negatively correlated sequences B > 1 , so the half-width of the confidence interval will be too large

• Underestimating the precision => don’t make conclusions you

should

1

[ / ]^1 2

2 −

− = = n

c E s n n B σ

−

=

 

  

= +^1 ^ − 1

(^1212)

n

i

k n

c k σ

γ

C6/

Strategy for

Terminating Simulations

• For terminating case, make IID replications

  • Simulate module: Number of Replications field
  • Check both boxes for Initialization Between Reps.
  • Get multiple independent Summary Reports
  • Different random seeds for each replication

• How many replications?

  • Trial and error (now)
  • Approximate no. for acceptable precision
  • Sequential sampling

• Save summary statistics (e.g. average, variance)

across replications

  • Statistics Module, Outputs Area, save to files

C6/

Half Width and Number of Replications

⇒

⇒

⇒

n n nm n

m

m

Y Y Y Y

Y Y Y Y

Y Y Y Y

, , , n

, , ,

, , ,

1 2

21 22 2 2

11 12 1 1

2

1

 

Y

s^2

  • To improve the half-width, we can
    • Increase the length of each simulation run and so increase the m (^) i
    • What does increasing the run length do?
    • Increase the number of replications (^) t s

n

n − 11 , − α/ 2

C6/

Half Width and Number of Replications (cont’d.)

  • Set half-width = h , solve for
  • Not really solved for n ( t , s depend on n)
  • Approximation:
    • Replace t by z , corresponding normal critical value
    • Pretend that current s will hold for larger samples
    • Get
  • Easier but different approximation:

n t s n h = (^2) −^11 − 2

2 , α/ 2

n z s h

≅ (^12) − 2

2 α / 2

s = sample standard deviation from “initial” number n 0 of replications

n n h h

≅ 0 0

2 2

h 0 = half width from “initial” number n 0 of replications

n grows quadratically as h decreases.