• 検索結果がありません。

The numerical criterion on pseudo random numbers (6th Workshop on Stochastic Numerics)

N/A
N/A
Protected

Academic year: 2021

シェア "The numerical criterion on pseudo random numbers (6th Workshop on Stochastic Numerics)"

Copied!
5
0
0

読み込み中.... (全文を見る)

全文

(1)

The

numerical criterion on

pseudo

random numbers

Yukiko

SHIMOYAMA

Department ofMathematics

Tokyo Metropolitan University

Minami-Ohsawa, Hachioji-shi, Tokyo 192-0397, Japan

In this report,

we

propose

a

numerical criterion to judge ‘goodness’ of

a

pseudo random number by achieving the following procedures.

(i) We have many sample paths ofa simple random walk driven by pseudo

random numbers.

(ii) Rom those sample paths,

we

have sample distributions of

some

random

variables, that is the return number to point

zero

of

pseudorandomwalk,

the first hitting time, the sojourn time, and the central limit theorem,

the Poisson’s law.

(iii) We compute L\’evy metrics between those sample distributions and the

theoretical distributions.

Then

our

assertion is that theseL\’evy metrics

are

numerica.l criterions of

‘good-ness’ ofa pseudo random number.

1

Introduction

Let

$P^{1}$ be

the

set

of

all one-dimensional distributions, and set

$F_{\mu}$ the

distri-bution

function for

$\mu\in P1.$ At the non-continuous point $a$ of $F_{\mu}(x)$,

we

join

between $(a, F_{\mu}(a-))$ and $(a, F_{\mu}(a+))$ by straight line, and the graph of $F_{\mu}(x)$

comes

to be acontinuous

curve.

This

curve

must intersect with

a

line$x+y=t$

at

a

point, say $Q_{\mu}(t)$, and let $G_{\mu}(t)$ be the distancebetween $Q_{\mu}(t)$ and apoint

$(\mathrm{t}, 0)$ on the x-axis.

Let $\mathcal{G}$ be the set ofallofsuch function

$G_{\mu}(t)$ for $\mathrm{u}\in P^{1}$

.

For any

$\nu,$$\mu\in P^{1}$,

we define the metric $d$

on

$g$ by

(1.1) $d( \mu, \nu)\equiv\sup_{t}|$G$\mu(t)-G_{\nu}(t)|$,

Obviously, each $\mu\in P^{1}$ corresponds to $G_{\mu}\in(;,$ and the correspondence is

one

to

one.

Hence, for any $\mu,$$\nu\in P^{1}$

we can

define

the metric $d_{L}$

on

$P^{1}$ by

(2)

then $(P^{1}, d_{L})$ is acomplete separable metric space. We will call the metric $d_{L}$

on

$P^{1}$ L\’evy metric.

2

Some functions of

asimple

random

walk

and

their

distribution

$\mathrm{W}\mathrm{h}\mathrm{e}\mathrm{n}\{X_{n}\}_{n\in \mathrm{N}}$be $i$

.

$i$

.

$d$random variables such that

(2.1) $P[X_{n}=1]=P[X_{n}=-1]= \frac{1}{2}$

we

define asimple random walc $\{S_{n}\}_{n\in \mathrm{N}}$ by the following: (2.2) $S_{0}\equiv 0$

,

$S_{n} \equiv\sum_{k=1}^{n}X_{k}$

We introduce

some

some

functionsof the simplerandom walk (2.2) andpresent

their theoretical distributions.

(a) Return number to the origin $R_{2n}$,

For $n\in \mathrm{N}$,

we

define arandom variable $R_{2n}$ called the return number,

$R_{2n}\equiv\#\{k|S_{2k}=0,0<k\leq n\}$.

This random variable is numbers oftimes returning to the origin by time $2\mathrm{n}$,

and its distribution is

as

follows: for $0\leq k\leq n$,

(2.3) $P[R_{2n}=k]= \frac{1}{2^{2n-k}}(\begin{array}{l}2n-kn\end{array})$.

(b) First return time $\tau$,

We define arandom variable $\tau$, by the

first

return time

$\tau\equiv\min\{r|S_{2r}=0\}$

.

Its distribution is; for $k\geq 1$,

(2.4) $P[ \tau=2k]=\frac{1}{2k}(\begin{array}{l}2k-2k-1\end{array})\frac{1}{2^{2k-2}}$

(c) Sojourn time $\lambda_{2n}$

,

For $n\in \mathrm{N}$ let $\lambda_{2n}$ be the number ofedges

over

$x$-axis ofrandom walk starting

from the origin, that is

(2.5) $\lambda_{2n}=\sum_{1}^{2n}I(S_{i-1}-S_{i})$, where $I(x)=\{$ 1 $(x>0)$

(3)

and it is called sojourn time. The distribution ofsojourn time is as follows:

$P[ \lambda_{2n}=2k]=\frac{1}{2^{2n}}(\begin{array}{l}2kk\end{array})(\begin{array}{l}-2k2nn-k\end{array})$ , $0\leq k\leq n$.

(d)

Central

Limit Theorem (CLT)

Well-known CLT asserts that

$\lim_{narrow\infty}P[a\leq\frac{1}{\sqrt{n}}Sn\leq b]=N(b)-N(a)$, $a\leq b$,

(2.6)

with $N(t) \equiv\int_{\infty}^{t}\frac{1}{\sqrt{2\pi}}\exp\{-\frac{s^{2}}{2} \}$$ds$.

By atechnicalreason,

we

must approximate $N$by astep function $W(t)$, that

is

$N^{e}(-\infty, b]$

(2.7) $\equiv\{$

0

$|$b$|\geq 5$

$N(-\infty, k/1\mathrm{O}\mathrm{O}]$ $k/1\mathrm{O}\mathrm{O}\leq b<(k+1)/100$ and $|$b$|<5$

where-500 $\leq k\leq 500$

.

A simple computation derives that

(2.8) $d_{L}(N(-\infty, *]$, $N^{e}(-\infty, *))\leq 5.641*10^{-3}$

3

Samples

of

random walk and

Poisson

distri-butlon driven by pseudo random numbers

I. If$\{a_{n}\}$ is the sequenceofpseudo random numbers. Thenput$\tilde{X}_{n}\equiv(-1)^{a_{\hslash}}$

.

Then

(3.1) $\tilde{S}_{0}\equiv 0$, $\tilde{S},$

$\equiv\sum_{k=1}^{n})\sim k$

are samples ofa simple random walk driven by $\{a_{n}\}$.

$\mathrm{I}\mathrm{I}$

.

Let $b(k;n,p),$$0\leq k\leq n$, the binomial distribution with probabilities

$p$ for

success, and $q=1-p$ for failure result in $k$ successes and$n-k$ failures, i.e.

(3.2) $b(k;n,p)=(\begin{array}{l}nk\end{array})$ $p^{k}q^{n-k}$

Next,

we

put

$\lambda\equiv n\mathrm{p}$

where $np=\lambda$ is fixed for large $n$ and small $p$, and

(4)

4

L\’evy

metrics

by

numerical

experlences

I.

Since

the distribution functions (2.3), (2.4), and (2.5)

are

step functions,

they

are

written as follows:

(4.1) $F(x) \equiv\sum_{k=0}^{n}a_{k}I[t_{k},t_{k+1})(x)$, -Oo $<t0<t1$ $<\cdot$

. .

$<t_{n}<\infty$

.

Moreover ‘the distribution ofpseudo random walk’ are similarly written

as

(4.2) $G(x) \equiv\sum_{k=0}^{n}b$k $I[t_{k},t_{k+1})$(x) $-\infty< 0<t_{1}<\cdot\cdot \mathrm{t}<t_{\mathrm{n}}<\infty$

.

Now

we can

compute L\’evy metric $d_{L}(F, G)$

more

easy.

Lemma 4.1. For one-dimensional distributions $F,$ $G$ given by (4.1, 4.2),

(4.3) $d_{L}(F, G)=\sqrt{2}\mathrm{m}$

in{

$\rho$(F,$G),$ $1$

}.

where, $\rho$(F,$G$) $\equiv\max\{|a_{k}-b_{k}| : 0\leq k\leq n\}$

.

$\mathrm{Q}$

垣. Using (4.3) in lemma 4.1,

we

measure L\’evy metrics between theoretical

市stribution and the 市stribution function of samples driven by the following

pseudo random numbers

(i) Sugita’s random

numbers1

, (ii) Mathematica’s random

num-bers, (iii) Rand

2,

(iv) Rand

23,

where the number of samples

are

10000 and the number of steps

10000.

Results.

Aknowlegement. The author would express her thanks to Professor S.

Sato, Dr. J. Hatomoto, Dr. T. Ueno, Mr. M. Tanaka, and Mr. M. Nakamura.

1 Soe[4].

(5)

References

[1] Feller, W.,

An

Introduction to Probability Theory and Its Applications,

1957, John Wiley

&

Sons.

[2] 伊藤清, 確率論, 岩波基礎数学講座,

1976.

[3] Sugita, H., Pseudo random number generator by

means

of irrational

rO-tation, MonteCarlo Methods and Appl., 1 (1995),

35-57.

[4] 杉田洋, 無理数回転による擬似乱数生戒, 数理解析研究所講究録915 「数

値計算アルゴリズムの現状とその展望垣」, 1995,

146-156.

[5] 高嶋恵三, 擬似乱数と Random

walk

検定, Rokko

Lectures

in Math., 神

参照

関連したドキュメント

Specifically, if S {{Xnj j=l,2,...,kn }} is an infinitesimal system of random variables whose centered sums converge in distribution to some (infinitely divisible) random variable

Merkl and Rolles (see [14]) studied the recurrence of the original reinforced random walk, the so-called linearly bond-reinforced random walk, on two-dimensional graphs.. Sellke

(2.17) To prove this theorem we extend the bounds proved in [2] for the continuous time simple random walk on (Γ, µ) to the slightly more general random walks X and Y defined

So far as we know, there were no results on random attractors for stochastic p-Laplacian equation with multiplicative noise on unbounded domains.. The second aim of this paper is

A second way involves considering the number of non-trivial tree components, and using the observation that any non-trivial tree has at least two rigid 3-colourings: this approach

We also discuss applications of these bounds to the central limit theorem, simple random sampling, Poisson- Charlier approximation and geometric approximation using

We provide existence and uniqueness of global and local mild solutions for a general class of semilinear stochastic partial differential equations driven by Wiener processes and

Le Gall [10] showed in particular that scaling limits of random quadrangulations are homeomorphic to the Brownian map introduced by Marckert &amp; Mokkadem [13], and Le Gall