Docsity

Data Generation - Stochastic Hydrology - Lecture Notes, Study notes of Mathematical Statistics

Partial preview of the text

Download Data Generation - Stochastic Hydrology - Lecture Notes and more Study notes Mathematical Statistics in PDF only on Docsity!

DATA GENERATION

3

Necessity :

  1. Use of historical record alone gives no idea of the

risks involved.

  1. Exact pattern of flows during the historical period is

extremely unlikely to recur during the economic life of

the system.

Length of historical record

Economic life of the project

4

Data Generation

  • Persistence

Tendency of the flows to follow the trend of immediate past.

[Low flows follow low flows and high flows follow high flows].

Generating Models: Reproduce the statistical distributions and

persistence of historical flows

Important statistics normally preserved by generating models :

  • Mean ………………………. Average flow
  • Std. Deviation……………… Variability of flows
  • Correlation Coefficient……. Dependence on previous flows and/

or other hydrologic variables (Rainfall)

6

Data Generation

Data Generation

  • Given a distribution, to generate data belonging to that

distribution

7

Randomly picked up

values of F(y) follow a

uniform distribution u(0, 1)

u

f(u)

Choose a random F(y) from

uniform distribution, get

corresponding y.

y

F(y)

Data Generation

An algorithm for random number (R u

) generation:

X

i

=(a+bX i-

) Modulo M

{X

i

/M} are the required random numbers

e.g., M = 10, a = 5, b = 3

Let X 0

= 2, then X 1

= (3*2+5) Modulo 10

= 11 Modulo 10

X

1

= (3*1+5) Modulo 10

= 8 Modulo 10

9

m Modulo n =

Remainder of (m/n)

Data Generation

X

2

= (3*8+5) Modulo 10

= 29 Modulo 10

The random numbers are

  • Pseudo random numbers
  • If M is large, then the repetition of numbers occur

after a large set is generated.

10

X

3

= (3*9+5) Modulo 10

= 32 Modulo 10

Generate 10 values from exponential distribution with λ = 5

Example-

12

S.No. Ru y

1 0.026 0.

2 0.85 0.

3 0.654 0.

4 0.805 0.

5 0.205 0.

6 0.957 0.

7 0.035 0.

8 0.285 0.

9 0.996 0.

10 0.549 0.

Σ (^) 2.

ln

u

R

y

y

y

λ

λ

… generated

values

Data Generation

  • Analytic inverse transform not possible for some

distributions (eg., Normal distribution, Gamma

distribution)

  • Numerically generated tables of standard normal

deviates (R N

) available

  • Given R N

, data is generated by

y = σR N

  • μ
  • Most scientific programs have built-in functions to

generate standard normal deviates (R N

13

Data Generation

Gamma Distribution:

e.g., η = 2

15

1

ln ui

i

R

y

η

=

∑

( ) 1 2

2

1

ln i ln ln u u u i

R
R R

y

=

∑

( )

1

n x

x e
f x x

η λ

− −

Gamma variate with integer values of η can be shown to be the sum of

η exponential variates each with parameter λ)

(for integer values of η)

Generate 10 values for η = 2 and λ = 3

Example-

16

S.No. y

(^1) 0.376 0.005 2.

(^2) 0.077 0.959 0.

(^3) 0.323 0.216 0.

(^4) 0.773 0.544 0.

(^5) 0.24 0.073 1.

(^6) 0.597 0.631 0.

(^7) 0.879 0.614 0.

(^8) 0.942 0.563 0.

(^9) 0.213 0.48 0.

(^10) 0.325 0.112 1.

Σ (^) 8.

1 2

ln ln u u

R R

y

1 u

R

2 u

R

10

ˆ (^) 1.

ˆ

y

η

λ

= =

=

=

1

ln ui

i

R

y

η

=

Time Series Analysis

  • Sequence of values of a random variable collected over

time is time series.

  • Discrete time series: measured at discrete time

intervals

  • Continuous time series: recorded continuously with time
  • Single time series : A realization
  • Ensemble: collection of all realizations

{x t

1

, {x t

2

……. {x t

m

18

Time Series Analysis

19

t

{x t

1

Realization-

Realization-2^ t

{x t

2

t

{x t

m

Realization-m

Ensemble:

collection of all realizations

{x t

1

, {x t

2

……. {x t

m

Time Series Analysis

21

t

x t

Stochastic + Trend

t

x t

Stochastic + Periodic

t

x t

Stochastic + Jump

t

x t

Stochastic

X

t

= d t

  • ε t

Time Series Analysis

  • Deterministic component is a combination of a long

term mean, trend, periodicity and jump.

  • Time scale of time series – either discrete or continuous
  • Discrete time scale: observations at specific times

separated by Δt. (eg., average monthly stream flow,

annual peak discharge, daily rainfall etc.)

  • Continuous time scale: data recorded continuously with

time (eg., turbulence studies, pressure measurements)

22