statistics of the gauss-kuzmin distribution · 2011-01-15 · statistics of the gauss-kuzmin...

1
Statistics of the Gauss-Kuzmin Distribution Steven Duff Advisor: Nathan Ryan Bucknell University Simple Continued Fractions Expansions Any real number x can be has a unique simple cf expansion: x = a 0 + 1 a 1 + 1 a 2 + 1 a 3 + 1 a 4 + 1 . . . =[a 0 , a 1 , ... ] Terms {a n }: Sequence of integers where a k > 0 for k > 0. Convergents p n q n : A quotient equal to a truncated cf expansion (i.e. p n q n =[a 0 , a 1 , ... , a n ]). Infinite cf’s: A cf expansion with an infinite number of terms. x has an infinite cf expansion if and only if it is irrational. Gauss-Kuzmin Distribution For almost all x R, Prob(a n = k ) = log 2 1+ 1 k (k +2) , with a maximum error term A k (k +1) e -B n -1 , where A, B are positive constants. This error term approaches 0 as n grows, so the distribution becomes exact in the limit of the terms. This holds for all x K , where K R is a set of full measure. There exists an exceptional set Z of measure zero for which this distribution does not hold. Distribution of 1-15 in First 1000 Terms of CF Expansions Motivation Not much is known about the exceptional set Z , which the Gauss-Kuzmin distribution does not hold for. Finding elements contained in Z will help us characterize Z . We developed a framework for experiments that will provide statistical evidence to which set any real x is contained in. To develop this test, we first developed a method to randomly generating numbers that follow Gauss-Kuzmin. Some Known Elements of the Exceptional Set Z I Rational numbers: Rational numbers have finite cf expansions, and thus can not follow Gauss-Kuzmin for a n if n is too large. I Bounded cf’s: A bounded cf has a maximum term. This means that any integer greater than this maximum term has probability zero of occurring. I Quadratic irrationals (i.e. { a+b c d |a , b , c , d Z}): These have periodic cf expansions. This means that their expansions will be bounded and thus they are contained in Z . Generating Random Continued Fractions Original Method: Put r n := a n + 1 a n+1 + 1 . . . = a n + 1 r n +1 I Randomly choose x (0, 1) I r 0 = x I a n = br n c I r n +1 = 1 r n -a n Our Method: Put p 0 n q 0 n := [a 0 , a 1 , ... , a n + 1] I Randomly choose x (0, 1) I a 0 = bx c I Randomly choose x n h p n q n , p 0 n q 0 n i I r n +1 = p n-1 -x n ·q n-1 x n ·q n -p n I a n +1 = br n +1 c The benefit of the new method is that it calls on the random real generator every term, which will increase the randomness of these cf’s. Experiment For any real x , we want to know whether or not x follows Gauss-Kuzmin. H 0 : x K , H a : x Z We will use a χ 2 test to determine this. This test has the form: χ 2 = n X i =1 (O i - E i ) 2 E i O i = observed number in i th bin, E i = expected number in i th bin Bins: (1), (2), (3), (4), (5), (6 - 10), (11+) Terms: 1 - 150 χ 2 Values from 1,000,000 Randomly Generated CF’s Applications Question: Does e n for positive integers n follow the Gauss Kuzmin Distribution? We will run χ 2 tests and use p-values from the million random cf’s we generated. χ 2 p-value e 118.94 < .01 e 2 292.385 < .01 e 3 1.200 .98 e 4 8.801 .17 e 5 3.541 .73 e 6 4.424 .60 e 7 2.716 .84 e 8 9.579 .13 Conclusion: We can say with strong confidence that e , e 2 Z , but it appears that e n for n > 2 is contained in K . The reasons for this could be investigated further. Further Questions: We know that the square roots of integers (quadratic irrationals) do not follow Gauss-Kuzmin. What about other roots of integers? We could investigate if the families of n th roots of integers for n > 2 are in Z . References I Gauss, Karl Friedrich (1777-1855): Struik, D. J. A Concise History of Mathematics. p. 142f. I Miller, Steven J., and Ramin Takloo-Bighash. An Invitation to Modern Number Theory. Princeton: Princeton UP, 2006. Print. I William Stein. Sage: Open Source Mathematical Software (Version 4.3.1). The Sage Group, 2010

Upload: others

Post on 30-May-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Statistics of the Gauss-Kuzmin Distribution · 2011-01-15 · Statistics of the Gauss-Kuzmin Distribution Steven Du Advisor: Nathan Ryan Bucknell University Simple Continued Fractions

Statistics of the Gauss-Kuzmin DistributionSteven Duff Advisor: Nathan Ryan

Bucknell University

Simple Continued Fractions Expansions

Any real number x can be has a unique simple cf expansion:

x = a0 +1

a1 + 1a2+ 1

a3+ 1a4+ 1...

= [a0, a1, ... ]

Terms {an}: Sequence of integers where ak > 0 for k > 0.

Convergents pn

qn: A quotient equal to a truncated cf

expansion (i.e. pn

qn= [a0, a1, ... , an]).

Infinite cf’s: A cf expansion with an infinite number ofterms. x has an infinite cf expansion if and only if it isirrational.

Gauss-Kuzmin Distribution

For almost all x ∈ R, Prob(an = k) = log2

(1 + 1

k(k+2)

), with

a maximum error term Ak(k+1)e

−B√

n−1, where A, B

are positive constants.This error term approaches 0 as ngrows, so the distribution becomesexact in the limit of the terms. Thisholds for all x ∈ K , where K ⊂ R isa set of full measure. There existsan exceptional set Z of measurezero for which this distribution doesnot hold.

Distribution of 1-15 in First 1000 Terms of CFExpansions

Motivation

Not much is known about the exceptional set Z , which theGauss-Kuzmin distribution does not hold for. Finding elements containedin Z will help us characterize Z . We developed a framework forexperiments that will provide statistical evidence to which set any real xis contained in. To develop this test, we first developed a method torandomly generating numbers that follow Gauss-Kuzmin.

Some Known Elements of the Exceptional Set Z

I Rational numbers: Rational numbers have finite cf expansions, andthus can not follow Gauss-Kuzmin for an if n is too large.

I Bounded cf’s: A bounded cf has a maximum term. This means thatany integer greater than this maximum term has probability zero ofoccurring.

I Quadratic irrationals (i.e. {a+b√

cd |a, b, c , d ∈ Z}): These have

periodic cf expansions. This means that their expansions will be boundedand thus they are contained in Z .

Generating Random Continued Fractions

Original Method:Put rn := an + 1

an+1+ 1...= an + 1

rn+1

I Randomly choose x ∈ (0, 1)I r0 = xI an = brncI rn+1 = 1

rn−an

Our Method:Put p′n

q′n:= [a0, a1, ... , an + 1]

I Randomly choose x ∈ (0, 1)I a0 = bxcI Randomly choose xn ∈

[pn

qn, p′n

q′n

]I rn+1 = pn−1−xn·qn−1

xn·qn−pn

I an+1 = brn+1c

The benefit of the new method is that it calls on the random realgenerator every term, which will increase the randomness of these cf’s.

Experiment

For any real x , we want to know whether or not x follows Gauss-Kuzmin.H0 : x ∈ K , Ha : x ∈ ZWe will use a χ2 test to determine this. This test has the form:

χ2 =n∑

i=1

(Oi − Ei)2

Ei

Oi = observed number in i th bin, Ei = expected number in i th binBins: (1), (2), (3), (4), (5), (6− 10), (11+) Terms: 1− 150

χ2 Values from 1,000,000 Randomly Generated CF’s

Applications

Question: Does en for positiveintegers n follow the Gauss KuzminDistribution? We will run χ2 testsand use p-values from the millionrandom cf’s we generated.

χ2 p-valuee 118.94 < .01e2 292.385 < .01e3 1.200 .98e4 8.801 .17e5 3.541 .73e6 4.424 .60e7 2.716 .84e8 9.579 .13

Conclusion: We can say with strong confidence thate, e2 ∈ Z , but it appears that en for n > 2 is contained in K .The reasons for this could be investigated further.Further Questions: We know that the square roots ofintegers (quadratic irrationals) do not follow Gauss-Kuzmin.What about other roots of integers? We could investigate ifthe families of nth roots of integers for n > 2 are in Z .

References

I Gauss, Karl Friedrich (1777-1855): Struik, D. J. A ConciseHistory of Mathematics. p. 142f.

I Miller, Steven J., and Ramin Takloo-Bighash. An Invitation toModern Number Theory. Princeton: Princeton UP, 2006.Print.

I William Stein. Sage: Open Source Mathematical Software(Version 4.3.1). The Sage Group, 2010