Unfortunately, no one has yet learned how to generate quasi-random numbers like this.

Size: px
Start display at page:

Download "Unfortunately, no one has yet learned how to generate quasi-random numbers like this."

Transcription

1 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Daddy, Where do Random Numbers Really Come From? In any of the MC procedures we have prevously dscussed we need many random numbers. A sequence of truly random numbers s, by ts nature, unpredctable and therefore not reproducble. A sequence of truly random numbers can only be generated by a random physcal process, e.g. radoactve decay, thermal nose n a resstor, cosmc ray arrval tmes, etc. If such a source of random numbers were used for MC calculatons there would be no problem the theory we have developed would work fne. In practce, t s etremely dffcult to construct a physcal devce that s fast enough to delver random numbers from a random physcal process as rapdly as modern computers demand them durng a calculaton. Several alternatves est. For eample, some years ago Argonne Natonal Laboratory created a data fle wth bt random numbers constructed from a U-35 α-partcle source as follows: Usng a hgh-resoluton onzaton counter, t was found that n a Δt = 0 msec countng tme nterval, on average α-partcles were detected. When the count was odd, a 1-bt was recorded, and when the count was even, a 0-bt was recorded. Then the bts were strung together as 31-bt sequences of (unsgned) ntegers. Bas removal n ths data set was accomplshed as follows: Suppose one has a sequence of 0 s and 1 s whch s random, but the probabltes P(0) and P(1) are not both precsely equal to 1/. Dvde the sequence nto pars, e.g Ignore 00 and 11 pars, so the above wll become: For the remanng pars, drop the frst bt. Ths wll yeld: Now the probablty of fndng a 0 or 1 n the fnal sequence, P (0) and P (1) are: P (0) = P(1) P(0) (snce t came from a (10) par) P (1) = P(0) P(1) (snce t came from a (01) par) Thus, P (0) = P (1),.e. 0 s and 1 s are ndeed equally lkely n the fnal sequence. Unfortunately ths procedure s very wasteful, snce about half of the bts are thrown out rght away, and half of the remanng ones are not used. The common choce n modern applcatons s a source of Quas-random (or pseudorandom ) numbers. Ths s what s produced by random number generators on a computer. The numbers are generated accordng to a strct mathematcal procedure leadng to a sequence whch s predctable (n advance) and certanly reproducble. Thus random numbers on a computer are not at all random n the mathematcal sense... however, they are supposed to be ndstngushable from a sequence generated truly randomly. That s, f one ddn t know that the numbers were generated by a strct mathematcal procedure but one was just gven the sequence, then one would be unable to tell that a formula was used rather than a physcal process. Unfortunately, no one has yet learned how to generate quas-random numbers lke ths. P598AEM Lecture Notes 7 1

2 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede One can tell the dfference! However, ths does not prevent people from usng sequences of such numbers as f they were truly random (or even truly quas-random) and gnorng the fact that, theoretcally, they re on shaky ground For a long tme the most wdely used random # generator was the multplcatve congruental : ( ) r = ar 1 + b mod m where a and b are constants and mod m means take the remander after dvson by m..e. the th random # s the remander when {a( 1) th random # + b} s dvded by m. Snce takng the operaton of takng the remander commutes wth the dvson operaton, we can alternatvely work wth a pseudo-random nteger sequence, and then dvde the sequence of ntegers by m. For eample, f a = 13, b = 0, m = 31 and r 0 = 1, then ths pseudo-random nteger sequence begns wth: 1, 13, 14, 7, 10, 6, 16,, 7, 9, 5, 3, the net random # s r = mod 31 = = 8. ( ) The frst 30 terms n ths sequence are a permutaton of the ntegers 1 30, but then the random # sequence repeats tself,.e. t has perod m 1. If the pseudo-random nteger sequence such as the one above s then scaled by dvdng by m, the result are floatng-pont # s that are unformly dstrbuted on the nterval [0,1]. In our above eample: 0.033, , , , 0.36, , , Obvously, one doesn t want a sequence of random # s wth a short perod, so one chooses m to be a very large nteger, along wth choces for a and b. For eample, n the 1960 s, Scentfc Subroutne Package (SSP) on IBM manframe computers had a multplcatve congruental random # subroutne RND (or RANDU) for use wth 3-bt computaton, wth 16 a = + 3 = 65539, b = 0 and that the multplcaton operaton 1 31 m = = Because of the choce 16 a = + 3, note ar can be carred out by a shft operaton + addton operaton, whch was motvated by speed consderatons on such computers of that era. It can be shown that for ths choce of IBM s random # parameters that: 31 ( = ) r 6r 9r mod for all e. there were etremely hgh correlatons between 3 sequental random # s n IBM s code! Over the years, collectvely we have learned that the success of a random # generator s not related to ts complety. In fact, an arbtrary nventon of great complety s: a.) probably very hard to analyze as far as ts propertes are concerned, and b.) lkely to be a poor generator, gvng very un-random lke sequences. Durng the 1960 s, many random # generators were tred and tested. By the md-1970 s, only the multplcatve congruental type were serously used. P598AEM Lecture Notes 7

3 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Normally m s chosen as t, where t s the number of bts used to represent an nteger on the machne. Snce a and r 1 are t-bt ntegers, ther product has t bts. After b s added (often b = 0) the lowest t bts are kept as r. Fnally, r s dvded by m to gve a floatng pont number between 0.0 and 1.0. One property of most random # generators, ncludng the multplcatve congruental ones, s ther perod. Obvously, once any specfc number occurs a second tme, the sequence followng t s the same thereafter. For multplcatve congruental random # generators, the perod s dependent on a, b, and r 0, the ntal, or seed random number whch must be chosen before the random # sequence s generated. The mamum perod can be shown to be of length (m/4). For typcal 3-bt computers today, t = 31 (the remanng bt s used for a sgn) and t = , whch lmts the mamum length of a random # sequence to about 500 mllon. Testng Random # Generators: In the past, t was dangerous to depend on the random # generators suppled wth the subroutne/ functon lbrares of some computer systems. For eample, as mentoned prevously RANDU (dstrbuted by IBM wth the 360), was found (rght away) to be poor, but that was already too late! Even 10-0 years later (.e. n the 1970 s 80 s) people were stll usng RANDU! Eeeeek!!! In the dark ages (1960 s) there was no deep understandng of quas-random # generators and so the tests were not very specfc. Typcally, just apparent randomness was tested. For eample, consder the sample mean of a sequence of N random # s: r are a set of N random numbers drawn from ( 0,1) If the σ = 1 1 N. and that r { } r 1 N r N = 1 = U then we know that r ˆ = 1= 0.5 So we check the generator to see f r s wthn σ of 0.5, whch t should be 95% of the tme. If the random # generator were to fal ths test, we would say that t fals the test at the 5% level. Note ths actually proves nothng, snce for true random # s, we epect them to fal 5% of the tme! If the random # generator passes ths test, we mght go on to look at σ r, whch we fnd by generatng a long sequence of random numbers and dvdng t up nto groups of sze N. In realty we use batteres of more complcated tests. Then we assume that, havng passed all of these tests, the generator wll also pass the net test. The net test s the requrement that t be random enough to work properly n your problem. It s not known, n general, why t should pass ths test, but t sn t known, ether, why t should not. A very dfferent knd of test was dscovered n 196 by a hgh-energy physcst (Joe Lach) who was tryng to understand why the random # generator that came wth IBM s 709 gave larger fluctuatons than epected. He dsplayed the random # s on a CRT. (In those days, ths was not a common procedure!) When he dvded hs random # sequence nto pars and plotted them as (,y) coordnates of ponts, he saw nothng strange, just a unform densty of ponts. Then he dvded t nto trplets, consderng each as the (,y,z) of a pont n 3-D space. When he plotted the (,y) coordnates for all trplets for whch z < 0.1 he saw the ponts fallng nto a set of slanted bands wth no (,y) values n between, as shown n the fgure below: P598AEM Lecture Notes 7 3

4 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede 1.0 y Ths phenomenon was later shown by George Marsagla to be a defect (.e. a feature) of all multplcatve congruental random # generators. In Random Numbers Fall Manly n the Planes, (PNAS, Vol 61, 1968) he showed that f successve d-tuples from such a random # generator are taken as coordnates of ponts n d-dmensonal space, all of the ponts wll le on a certan fnte number of parallel hyperplanes. (The orgnal dscovery saw 3-D planes projected onto -D. They are tlted and thus appear as bands n -D.) The mamum number of hyperplanes depends on d and the number of bts used for nteger representaton on the partcular computer beng used: t The mamum number of hyperplanes = ( d! ) 1 d. Ths gves: t d = 3 d = 4 d = 6 d = Moral: Never trust a random # generator on a 16 bt machne, unless t uses double-precson!!! Even 3 bts may be dangerous, e.g. for carryng out a 10-dmensonal ntegral. Warnng: Mamum number s just that. For an arbtrary choce of the parameters a and b n r = ( ar 1 + b) mod m t can be smaller. As a result of Marsagla s work, and other efforts at the same tme (early 70 s) we now understand multplcatve congruental random # generators very well. Stll, t s not safe to assume that the people who supply them wth computers understand them. One should only trust those wth pedgrees, e.g. those from CERN, SLAC, ANL, ORNL, etc. Often these have been desgned to gve better random # s. For eample, t has been shown that by usng a random # generator such as r = ( ar 1+ br ) mod m where a and b are chosen carefully one can ncrease the number of hyperplanes by a factor of t / d. P598AEM Lecture Notes 7 4

5 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Snce the 70 s, consderable progress has been made on developng several new types of random # generators that don t have the above-mentoned problems that multplcatve congruental random # generators suffer from. One such random # generator s RANLUX, whch has a sold theoretcal bass n chaos theory, based on the work of M. Lüscher, whch n turn s based on work by G. Marsagla and A. Zaman, regardng so-called lagged Fbonacc sequence generators. These generators and other modern random # generators are effcent and have very long repeat perods of up to ~ and pass etensve DIEHARD or TESTU01 batteres of tests, for whch the most commonly avalable multplcatve congruental random # generators fal, wth repeat perods of less than 3 ~ The nterested reader s referred to the followng papers: 1.) Unform Random Number Generators: A Revew, Perre L Ecuyer, Proc Wnter Smulaton Conference, IEEE Press, Dec. 1997, ) A revew of pseudorandom number generators, F. James, Comp. Phys. Comm. 60, (1990). 3.) RANLUX: A Fortran mplementaton of the hgh-qualty pseudorandom number generator of Lüscher, F. James, Comp. Phys. Comm. 79, 111 (1994). 4.) A portable hgh-qualty random number generator for lattce feld theory smulatons, M. Lüscher, Comp. Phys. Comm (1994). 5.) Mamally Equdstrbuted Combned Tausworthe Generators, Perre L Ecuyer, Mathematcs of Computaton 65, 13 (1996). 6.) Tables of Mamally Equdstrbuted Combned LFSR Generators, Perre L Ecuyer, Mathematcs of Computaton 65, 5 (1999). 7.) Mersenne Twster: A 63-Dmensonally Equdstrbuted Unform Pseudo-Random Number Generator, M. Matsumoto and T. Nshmura, ACM Transactons on Modelng and Computer Smulatons, Vol. 8, No. 1, January 1998, ) Some dffcult-to-pass tests of randomness, G. Marsagla and W.W. Tsang, Journal of Statstcal Software, Volume 7, 00, Issue 3. 9.) Some portable very-long-perod random number generators, G. Marsaglla and A. Zaman, Computers n Physcs, Vol. 8, No. 1, Jan/Feb ) A New Class of Random Number Generators, G. Marsaglla and A. Zaman, The Annals of Appled Probablty 1991, Vol. 1, No. 3, ) W. H. Press, et al., Numercal Recpes, 3 rd Ed., Cambrdge Unversty Press, New York, ) D.E. Knuth, The Art of Computer Programmng, Vol. II, 3 rd Ed., Addson-Wesley, Readng, Mass The Marsagla Random Number CDROM ncludng the Dehard Battery of Tests of Randomness s avalable on the web at the followng URL: Info on the TESTU01 test sute s avalable on the web at the followng URL: Info on Deharder, another random # generator test sute s avalable at the followng URL: Hgh-qualty random # generators are essental n today s world of ever-ncreasng compute power for use n cphers & encrypton.e. secure communcatons and fnancal transactons e.g. on the nternet and elsewhere P598AEM Lecture Notes 7 5

6 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Quas-Monte Carlo: If we n use sequences of quas/pseudo-random numbers for Monte Carlo, then we are factually dong Quas-MC, but n practce we stll call t Monte Carlo. A theoretcal bass ests that justfes the use of Quas-MC, based on the work of Weyl. The bottom lne s that t works and typcally shares the propertes of a true MC, such as 1 N convergence. Non-Unform Random Numbers: We frequently need to generate random # s wth P.D.F. s other than U ( 0,1).We have already U a b, as = a+ ( b a) r, however often we need non-unform random seen how to generate (, ) # s. A long tme ago (n early lectures), we saw a trck for generatng N ( 0,1) from r whch are 1 U ( 0,1) : r 6 s appromately Gaussan, wth epectaton value zero and varance one. = 1 However, t has no tals beyond ± 6σ (.e. here, ± 6 ). Gaussan Random Number Generaton: If we defne (the Bo-Muller transformaton): ( π ) ( π ) z = lnu cos u 1 1 z = lnu sn u 1 where ( u1, u) are ndependent and drawn from ( 0,1) z each s dstrbuted as N ( 0,1),.e. (, ) = Random Trangular P.D.F. U. Then z 1 and z are ndependent and z g z1 z e e π π We also saw earler that f u and v are ndependent and drawn from U ( 0,1) then u + v has a trangular P.D.F. Random Square-Root P.D.F. We can also show that f we generate ( uv, ) pars but keep only the larger one (call t ), then s dstrbuted as. A General Method for Non-Unform Random Numbers: Suppose we are gven some P.D.F. g( y ) and we wsh to generate a sequence of random # s dstrbuted accordng to g( y ). Suppose we have avalable a sequence of random # s, dstrbuted as U ( 0,1). Then: g ( y) dy = f ( ) d = 1d P598AEM Lecture Notes 7 6

7 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede It turns out to be useful here to use the Cumulatve Dstrbuton Functon G( y) whch s related to the P.D.F. by: g( y) = dg( y) dy Recall that G( y ) s the probablty that the random varable wll be have a value y, and that y G( y). In general, we can fnd G( y ) from g( y ) by ntegraton: ( ) ( ) 0 1 G y = g y dy n.b. here stands for the smallest value of y allowed by the P.D.F., whch mght n fact be. Let us rewrte the ntegral n terms of. The smallest allowed value of s 0, and let correspond to the chosen y: y ( ) = ( ) = ( ) G y g y dy f d But s stll some random number dstrbuted accordng to U ( 0,1), call t r. Thus: y ( ) ( ) G y = g y dy = r 1 If we can nvert ths,.e. solve for y as a functon of r, then we re done, that s: y = G ( r) wll have the desred P.D.F. y ( ) ( ) G y g y dy = = 0 ( ) 1 d = g y dy y Here, les between 0 and 1 n an nterval d. (Both d s are the same.) We project onto the functon G(y). g( y) The correspondng y s more lkely to be n a narrow nterval dy n a regon where G(y) s rapdly varyng (.e. near the mamum of g(y)) rather than where g(y) s small, where G(y) s slowly varyng. y( ) y P598AEM Lecture Notes 7 7

8 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Random Eponental Dstrbuton: Let us dstrbute random numbers eponentally: f ( ) α ce 0 = 0 otherwse α α Here: F ( ) = f ( ) d = ce d = ( 1 e ) In order to normalze ths functon, we requre F ( ) = 1, or c 0 αe α 0 0 otherwse c α f ( ) = and ( ) 1 = α. F = e α In order to generate random numbers dstrbuted n ths way, just pck an then set r = F( ) and solve for : r = 1 e α or: 1 r e α Note that snce r s drawn from ( 0,1) we can nstead use: ( ln r) α = or: = ( ln ( 1 ) ) r α r from ( 0,1) U, U, then so s 1 r, and hence wth no loss of generalty = (and save a bt of computer tme). t Eponental dstrbutons are often encountered as lfetmes of unstable states (, so that α = 1 τ ) or n the absorpton of radaton by matter ( e λ where λ = mean free path ), etc. Unform cosθ Dstrbuton: Another eample: f ( θ ) csn θ for 0 θ π = 0 elsewhere e τ f ( θ ) θ θ Now F( θ ) = f ( θ ) dθ = csnθ dθ = c( 1 cosθ) 0 Demandng F ( π ) = 1 gves c = 1. f 1 ( θ ) = θ and: F ( θ ) = 1 ( θ ) So f sn 1 r s drawn from U ( 0,1), then we set r ( θ ) θ = 1 cos. 1 cos P598AEM Lecture Notes 7 8

9 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Ths gves: cos 1 r θ 1 = cos s where 1 θ = or: θ cos ( 1 r) s s drawn from U ( 1,1) =. Agan, wth no loss of generalty we can set. Ths also follows drectly from the followng: We can approach ths same problem slghtly dfferently: ( ) 1 1 f θ dθ = snθdθ = dcosθ Ths means that a snθ dstrbuton n the varable θ corresponds to a Unform U 1,1 we wll get the same angle dstrbuton as throwng θ accordng to snθ. dstrbuton n the varable cosθ over the same regon. So f we draw cosθ from ( ) Random Isotropc Drecton n 3-D: We can apply the above dea to the problem of generatng a random unt vector,.e. a vector whose magntude s 1 but whch can pont n any drecton on the unt sphere. dω da Then the number of resultng vectors pontng nto any da should be proportonal to da. But da = r dω= 1d Ω on the unt sphere, and dω= snθdθdϕ = dcosθ dϕ. However, θ and ϕ are ndependent random varables and hence we can throw them ndependently by choosng random cosθ drawn from U ( 1,1) and ϕ drawn from ( 0, ) Then ths wll gve the desred dstrbuton, unform n dω..e. eplctly, choose: cosθ = 1 r ϕ = πs where r and Then the unt vector vˆ ( snθ cos ϕ,snθ sn ϕ,cosθ ) s are drawn from ( 0,1) U. U π. = wll be dstrbuted randomly over the unt sphere. Ths method won t always work for a general g( y) because: y It may not be possble to ntegrate and get ( ) ( ) (e.g. n terms of elementary functons) G y = g y dy n a smple form 1 It may not be possble to nvert and solve r = F( ) for = F ( r) P598AEM Lecture Notes 7 9

10 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Random Unform Dstrbuton on a -D Dsk: As an another eample, let us randomly, unformly populate the nteror of a semcrcle. f ( ) (0,1 + y = 1 ( 1,0 (1,0 Specfcally, we want the number of s generated n the nterval + d to be proportonal to 1. Thus, the P.D.F. we want to generate accordng to ths wll be: f ( ) = 0 otherwse The correspondng Cumulatve Dstrbuton Functon s: If we set F( ) 1 ( ) = ( ) = 1 = 1 + sn F f d c d c 1 1 = r, a random #, we wll unable to nvert ths and solve for as a functon of r. In such cases we can use the Von Neumann MC Acceptance-Rejecton Method, a knd of ht-or-mss MC technque. Here, for eample, we: (1) Pck a random # U 1,1 and a random # f = 1. drawn from ( ) () We then calculate ( ) (3) If y f ( ) 1 y drawn from ( 0,1) U. < = we keep ; otherwse we reject and go to step (1) and repeat f ( ) f ( ) f ma = 1 = 1 = + 1 P598AEM Lecture Notes 7 10

11 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Step (1) unformly populates the outer dotted rectangle. By rejectng s for whch the correspondng y s outsde the red sem-crcle, we end up wth hts,.e. s such that the number of kept s between + d s proportonal to f ( ) d, beng large where f ( ) large and small where f ( ) s small,.e. we randomly populate the nteror of the sem-crcle by rejectng ponts that fall outsde of the sem-crcle. We now generalze the MC ht-or-mss (aka the acceptance-rejecton ) method: Suppose we have a general/arbtrary functon f ( ) n the range a b, and wsh to generate random # s as f the functon were a P.D.F. between a b, as shown n the fgure below: f ( ) fma ( ) s Fnd/determne the value ma f such that f ( ) fma (1) Pck a random # drawn from (, ) () We then evaluate f ( ). (3) If y f ( ) < we keep b Note that ths technque also gves ( ) successes, snce: a n the range a b. Then: U a b and a random # y drawn from ( 0,1) U. ; otherwse we reject and go to step (1) and repeat f d f we keep track of the # of tres and the # of a # of successes area under f = = # of tres area under rectangle b ( ) f ( ) d a ( b a) f ma It s also straghtforward to generalze ths method to the case of a mult-dmensonal functon. The MC acceptance-rejecton method wll be most effcent (.e. fewest # of tres) when f ma s as small as possble, however ths smallest value may not be smple to fnd n the more general case where the functon f s a very complcated mult-dmensonal functon. b P598AEM Lecture Notes 7 11

12 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Dependng on the detals of the shape of f ( ), one can mprove the effcency of the above acceptance-rejecton algorthm by usng an (elementary) mportance-samplng technque. In the fgure shown below, the f ( ) s such that we can use two rectangular boes to mprove the effcency/speed of ths algorthm: fma 1 ( ) f ( ) fma ( ) a Random Numbers from Hstogrammed Dstrbutons: b We can also generate random # s that follow dstrbutons that cannot be descrbed analytcally by smple contnuous functons. For eample, suppose we wsh to generate random s accordng to a hstogram: Σ bns The gven hstogram s on the left, ts assocated Cumulatve hstogram on the rght. P598AEM Lecture Notes 7 1

13 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Snce the sum of the contents of all bns s 7, we throw a random number r accordng to U ( 0, 7) and use a table: If: Keep: 0 r 5 = 0 5< r 14 = 1 14 < r 17 = 17 < r 1 = 3 1 < r 7 = 4 We can use an analogous procedure f we are gven a set of dscrete probabltes. For eample, suppose we know that: P( ) = P1 P( ) = P where: P1+ P + P3 = 1 P = P ( ) Then we obtan random # p drawn from U ( 0,1). If 0 < p P1 we select the -nterval If P1 < p P1+ P we select the -nterval Otherwse we select the -nterval Then we must decde separately (we are not gven any nformaton here) how to pck a partcular value of n one of these ntervals. We could e.g. pck = 0.15 each tme we landed U 0.0,0.15, or... n the frst regon, or we could pck from ( ) The same procedure can be used when smulatng a physcal process. At some nstant of tme or at a pont n 3-D space, a choce must be made between dfferent outcomes wth dfferent probabltes. For eample, a neutron, havng arrved at some pont n the matter t s traversng, can at that pont undergo an elastc scatterng, be absorbed by a nucleus, etc., each wth dfferent probabltes (whch depend on the materal and the energy of the neutron). MC technques are commonly used to do ntegrals, smulate physcal processes to answer physcs questons, etc. In hgh energy physcs they are frequently used to smulate data whch resembles as closely as possble the epected sgnals from real detectors. These are then used as nput to the programs that reduce the sgnals (e.g. obtan dgtzed tmes, pulse heghts, etc.) to meanngful quanttes, and (perhaps) ft them to theoretcal models whch etract basc parameters. Snce the MC nput s completely understood, the data analyss programs can be checked to see f they work as they are ntended to. A less common MC applcaton s to the Propagaton of Large Errors. Here large means that we cannot use standard appromatons for combnng errors and we must calculate, eactly, the P.D.F. of the result of some combnaton of measurements, whch may be very dffcult to do analytcally. P598AEM Lecture Notes 7 13

14 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede An nterestng eample s provded by a trtum β -decay eperment (no longer taken serously!) whch was the frst to clam evdence n support of neutrno oscllatons. Theory had shown that a quantty R could be measured and that the (electron) neutrno was not stable (.e. t oscllated) f R 0.4. For ths eperment t turned out that: R = a d kd ( b c) a 1 ke e The numercal values of the constants (and ther uncertantes), as measured by ths eperment were: a = 3.84 ± 1.33 b = 74.0 ± 4.0 c = 9.5 ± 3.0 d = 0.11 ± e = 0.30 ± 0.00 k = 0.89 If one assumes that the lnear appromaton n the Taylor seres epanson for error R = 0.191± , whch s a propagaton s vald, then one obtans: ( ) ( ) σ effect. If we assume that all uncertantes are Gaussan/normally-dstrbuted, then the probablty that a measurement wll be more than 3.1 standard devatons from ts epectaton value (.e. a value of R > 0.4) s 0.001, or 0.1%. The authors thus clamed that ther epermental result was strong evdence for neutrno oscllatons P598AEM Lecture Notes 7 14

15 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede However, note that the parameters a and c have very large uncertantes (on the order of 30%) and so e.g. σ a a 1 n the Taylor seres epanson for error propagaton s not satsfed. Recall from P598AEM Lect. Notes 5 that the famlar formula for the standard devatons of products y and quotents /y requres ths to be so! In such a case, a more correct procedure would be (assumng that the P.D.F.s of the measurements are ndeed purely Gaussan) to randomly generate a, b, c, d, e ( = 1, N), each accordng to ts own P.D.F. (usng the central value and standard devaton measured n the eperment) and then calculate the correspondng value of R for each set of a, b, c, d, e. If we actually count the # of entres beyond R = 0.4 n the above hstogram, we dscover that about 4% of the R values eceed 0.4. Thus, there s n fact a 4% (not 0.1%!!!) chance that a stable neutrno wll yeld the results of the eperment. Ths s why the frst clam of evdence for neutrno oscllatons obtaned from measurements of endpont of the trtum β -decay spectrum was not taken too serously The use of MC Propagaton of Large Errors technques s potentally even more powerful than that descrbed above. In the above eample, suppose e.g. some (or even all) of the uncertantes on the a-e parameters n the R-epresson are not eactly Gaussan/normallydstrbuted but n fact have tals on them. By makng a sem-log plot of each quantty a-e, there should be clear evdence for a Gaussan, parabola-shaped core to dstrbuton for small σ -values, however for large σ - values, low-level tals of the dstrbuton may arse e.g. from one or more unaccounted-for physcs source(s), possbly havng a Gaussan-type parabola-shape to t. In fact, a double- Gaussan LSQ ft of the uncertanty dstrbuton for a common mean μ can easly be carred out of the form: (, ) + g (, ) α g μ σ β μ σ where we epect σ < σ 1 and thus the normalzaton constants α > β. If double-gaussan LSQ ft results accurately descrbed each of the above eample s a-e varables, then the LSQ ft parameters could be used drectly n an enhanced verson of the above MC smulaton of R to obtan an mproved determnaton of the overall uncertanty on R and more mportantly, a P.D.F. for R from whch an mproved estmate of the probablty for eceedng R > 0.4 could thus be obtaned. Furthermore, wth the use of MC Propagaton of Large Errors technques, asymmetrcal errors and/or non-gaussan uncertantes assocated wth the a-e varables can also easly be ncorporated n the MC smulaton even usng e.g. actual hstograms of the epermentally measured uncertantes on the a-e parameters as MC P.D.F. s of the same. Addtonally, correlatons between any/all of the a-e varables can also be accurately modeled va MC smulaton as well. Thus, t can be seen that the use of MC Propagaton of Large Errors technques n prncple s accurate to all orders n the (nfnte) Taylor seres epanson that we use - only n the lnear regme (e.g. σ a 1) for error propagaton. a Potentally, MC Propagaton of Large Errors technques are very powerful, ndeed!!! P598AEM Lecture Notes 7 15

16 Fall 01 Analyss of Epermental Measurements B. Esensten/rev. S. Errede Lots of useful MC technques such as the ones dscussed above and more (e.g. trcks of the trade!) are contaned n A Thrd Monte Carlo Sampler, LASL Informal Report LA-971-MS, Los Alamos Natonal Laboratory, by C.J. Everett and E.D. Cashwell (1983). Ths document e.g. descrbes technques for generatng pars or trplets, etc. of correlated Gaussans, and more! See also e.g. the Monte Carlo Technques secton of the Revew of Partcle Physcs, avalable on the web at the followng URL: The followng books also have much useful/helpful nformaton on varous MC technques: W. H. Press, et al., Numercal Recpes, 3 rd Ed., Cambrdge Unversty Press, New York, 007. D.E. Knuth, The Art of Computer Programmng, Vol. II, 3 rd Ed., Addson-Wesley, Readng, MA P598AEM Lecture Notes 7 16

b ), which stands for uniform distribution on the interval a x< b. = 0 elsewhere

b ), which stands for uniform distribution on the interval a x< b. = 0 elsewhere Fall Analyss of Epermental Measurements B. Esensten/rev. S. Errede Some mportant probablty dstrbutons: Unform Bnomal Posson Gaussan/ormal The Unform dstrbuton s often called U( a, b ), hch stands for unform

More information

Statistical analysis using matlab. HY 439 Presented by: George Fortetsanakis

Statistical analysis using matlab. HY 439 Presented by: George Fortetsanakis Statstcal analyss usng matlab HY 439 Presented by: George Fortetsanaks Roadmap Probablty dstrbutons Statstcal estmaton Fttng data to probablty dstrbutons Contnuous dstrbutons Contnuous random varable X

More information

Fall 2012 Analysis of Experimental Measurements B. Eisenstein/rev. S. Errede. . For P such independent random variables (aka degrees of freedom): 1 =

Fall 2012 Analysis of Experimental Measurements B. Eisenstein/rev. S. Errede. . For P such independent random variables (aka degrees of freedom): 1 = Fall Analss of Epermental Measurements B. Esensten/rev. S. Errede More on : The dstrbuton s the.d.f. for a (normalzed sum of squares of ndependent random varables, each one of whch s dstrbuted as N (,.

More information

Probability Theory. The nth coefficient of the Taylor series of f(k), expanded around k = 0, gives the nth moment of x as ( ik) n n!

Probability Theory. The nth coefficient of the Taylor series of f(k), expanded around k = 0, gives the nth moment of x as ( ik) n n! 8333: Statstcal Mechancs I Problem Set # 3 Solutons Fall 3 Characterstc Functons: Probablty Theory The characterstc functon s defned by fk ep k = ep kpd The nth coeffcent of the Taylor seres of fk epanded

More information

Section 8.3 Polar Form of Complex Numbers

Section 8.3 Polar Form of Complex Numbers 80 Chapter 8 Secton 8 Polar Form of Complex Numbers From prevous classes, you may have encountered magnary numbers the square roots of negatve numbers and, more generally, complex numbers whch are the

More information

Why Monte Carlo Integration? Introduction to Monte Carlo Method. Continuous Probability. Continuous Probability

Why Monte Carlo Integration? Introduction to Monte Carlo Method. Continuous Probability. Continuous Probability Introducton to Monte Carlo Method Kad Bouatouch IRISA Emal: kad@rsa.fr Wh Monte Carlo Integraton? To generate realstc lookng mages, we need to solve ntegrals of or hgher dmenson Pel flterng and lens smulaton

More information

Suites of Tests. DIEHARD TESTS (Marsaglia, 1985) See

Suites of Tests. DIEHARD TESTS (Marsaglia, 1985) See Sutes of Tests DIEHARD TESTS (Marsagla, 985 See http://stat.fsu.edu/~geo/dehard.html NIST Test sute- 6 tests on the sequences of bts http://csrc.nst.gov/rng/ Test U0 Includes the above tests. http://www.ro.umontreal.ca/~lecuyer/

More information

A random variable is a function which associates a real number to each element of the sample space

A random variable is a function which associates a real number to each element of the sample space Introducton to Random Varables Defnton of random varable Defnton of of random varable Dscrete and contnuous random varable Probablty blt functon Dstrbuton functon Densty functon Sometmes, t s not enough

More information

3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X

3.1 Expectation of Functions of Several Random Variables. )' be a k-dimensional discrete or continuous random vector, with joint PMF p (, E X E X1 E X Statstcs 1: Probablty Theory II 37 3 EPECTATION OF SEVERAL RANDOM VARIABLES As n Probablty Theory I, the nterest n most stuatons les not on the actual dstrbuton of a random vector, but rather on a number

More information

Notes prepared by Prof Mrs) M.J. Gholba Class M.Sc Part(I) Information Technology

Notes prepared by Prof Mrs) M.J. Gholba Class M.Sc Part(I) Information Technology Inverse transformatons Generaton of random observatons from gven dstrbutons Assume that random numbers,,, are readly avalable, where each tself s a random varable whch s unformly dstrbuted over the range(,).

More information

Appendix B: Resampling Algorithms

Appendix B: Resampling Algorithms 407 Appendx B: Resamplng Algorthms A common problem of all partcle flters s the degeneracy of weghts, whch conssts of the unbounded ncrease of the varance of the mportance weghts ω [ ] of the partcles

More information

Case A. P k = Ni ( 2L i k 1 ) + (# big cells) 10d 2 P k.

Case A. P k = Ni ( 2L i k 1 ) + (# big cells) 10d 2 P k. THE CELLULAR METHOD In ths lecture, we ntroduce the cellular method as an approach to ncdence geometry theorems lke the Szemeréd-Trotter theorem. The method was ntroduced n the paper Combnatoral complexty

More information

Temperature. Chapter Heat Engine

Temperature. Chapter Heat Engine Chapter 3 Temperature In prevous chapters of these notes we ntroduced the Prncple of Maxmum ntropy as a technque for estmatng probablty dstrbutons consstent wth constrants. In Chapter 9 we dscussed the

More information

12. The Hamilton-Jacobi Equation Michael Fowler

12. The Hamilton-Jacobi Equation Michael Fowler 1. The Hamlton-Jacob Equaton Mchael Fowler Back to Confguraton Space We ve establshed that the acton, regarded as a functon of ts coordnate endponts and tme, satsfes ( ) ( ) S q, t / t+ H qpt,, = 0, and

More information

Lecture 12: Discrete Laplacian

Lecture 12: Discrete Laplacian Lecture 12: Dscrete Laplacan Scrbe: Tanye Lu Our goal s to come up wth a dscrete verson of Laplacan operator for trangulated surfaces, so that we can use t n practce to solve related problems We are mostly

More information

Measurement Uncertainties Reference

Measurement Uncertainties Reference Measurement Uncertantes Reference Introducton We all ntutvely now that no epermental measurement can be perfect. It s possble to mae ths dea quanttatve. It can be stated ths way: the result of an ndvdual

More information

2E Pattern Recognition Solutions to Introduction to Pattern Recognition, Chapter 2: Bayesian pattern classification

2E Pattern Recognition Solutions to Introduction to Pattern Recognition, Chapter 2: Bayesian pattern classification E395 - Pattern Recognton Solutons to Introducton to Pattern Recognton, Chapter : Bayesan pattern classfcaton Preface Ths document s a soluton manual for selected exercses from Introducton to Pattern Recognton

More information

Chapter 1. Probability

Chapter 1. Probability Chapter. Probablty Mcroscopc propertes of matter: quantum mechancs, atomc and molecular propertes Macroscopc propertes of matter: thermodynamcs, E, H, C V, C p, S, A, G How do we relate these two propertes?

More information

U-Pb Geochronology Practical: Background

U-Pb Geochronology Practical: Background U-Pb Geochronology Practcal: Background Basc Concepts: accuracy: measure of the dfference between an expermental measurement and the true value precson: measure of the reproducblty of the expermental result

More information

NUMERICAL DIFFERENTIATION

NUMERICAL DIFFERENTIATION NUMERICAL DIFFERENTIATION 1 Introducton Dfferentaton s a method to compute the rate at whch a dependent output y changes wth respect to the change n the ndependent nput x. Ths rate of change s called the

More information

1 GSW Iterative Techniques for y = Ax

1 GSW Iterative Techniques for y = Ax 1 for y = A I m gong to cheat here. here are a lot of teratve technques that can be used to solve the general case of a set of smultaneous equatons (wrtten n the matr form as y = A), but ths chapter sn

More information

Correlation and Regression. Correlation 9.1. Correlation. Chapter 9

Correlation and Regression. Correlation 9.1. Correlation. Chapter 9 Chapter 9 Correlaton and Regresson 9. Correlaton Correlaton A correlaton s a relatonshp between two varables. The data can be represented b the ordered pars (, ) where s the ndependent (or eplanator) varable,

More information

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur Module 3 LOSSY IMAGE COMPRESSION SYSTEMS Verson ECE IIT, Kharagpur Lesson 6 Theory of Quantzaton Verson ECE IIT, Kharagpur Instructonal Objectves At the end of ths lesson, the students should be able to:

More information

j) = 1 (note sigma notation) ii. Continuous random variable (e.g. Normal distribution) 1. density function: f ( x) 0 and f ( x) dx = 1

j) = 1 (note sigma notation) ii. Continuous random variable (e.g. Normal distribution) 1. density function: f ( x) 0 and f ( x) dx = 1 Random varables Measure of central tendences and varablty (means and varances) Jont densty functons and ndependence Measures of assocaton (covarance and correlaton) Interestng result Condtonal dstrbutons

More information

Chapter 3 Differentiation and Integration

Chapter 3 Differentiation and Integration MEE07 Computer Modelng Technques n Engneerng Chapter Derentaton and Integraton Reerence: An Introducton to Numercal Computatons, nd edton, S. yakowtz and F. zdarovsky, Mawell/Macmllan, 990. Derentaton

More information

A Robust Method for Calculating the Correlation Coefficient

A Robust Method for Calculating the Correlation Coefficient A Robust Method for Calculatng the Correlaton Coeffcent E.B. Nven and C. V. Deutsch Relatonshps between prmary and secondary data are frequently quantfed usng the correlaton coeffcent; however, the tradtonal

More information

Statistics Chapter 4

Statistics Chapter 4 Statstcs Chapter 4 "There are three knds of les: les, damned les, and statstcs." Benjamn Dsrael, 1895 (Brtsh statesman) Gaussan Dstrbuton, 4-1 If a measurement s repeated many tmes a statstcal treatment

More information

Composite Hypotheses testing

Composite Hypotheses testing Composte ypotheses testng In many hypothess testng problems there are many possble dstrbutons that can occur under each of the hypotheses. The output of the source s a set of parameters (ponts n a parameter

More information

Numerical Heat and Mass Transfer

Numerical Heat and Mass Transfer Master degree n Mechancal Engneerng Numercal Heat and Mass Transfer 06-Fnte-Dfference Method (One-dmensonal, steady state heat conducton) Fausto Arpno f.arpno@uncas.t Introducton Why we use models and

More information

Answers Problem Set 2 Chem 314A Williamsen Spring 2000

Answers Problem Set 2 Chem 314A Williamsen Spring 2000 Answers Problem Set Chem 314A Wllamsen Sprng 000 1) Gve me the followng crtcal values from the statstcal tables. a) z-statstc,-sded test, 99.7% confdence lmt ±3 b) t-statstc (Case I), 1-sded test, 95%

More information

More metrics on cartesian products

More metrics on cartesian products More metrcs on cartesan products If (X, d ) are metrc spaces for 1 n, then n Secton II4 of the lecture notes we defned three metrcs on X whose underlyng topologes are the product topology The purpose of

More information

Introduction to Random Variables

Introduction to Random Variables Introducton to Random Varables Defnton of random varable Defnton of random varable Dscrete and contnuous random varable Probablty functon Dstrbuton functon Densty functon Sometmes, t s not enough to descrbe

More information

Markov Chain Monte Carlo (MCMC), Gibbs Sampling, Metropolis Algorithms, and Simulated Annealing Bioinformatics Course Supplement

Markov Chain Monte Carlo (MCMC), Gibbs Sampling, Metropolis Algorithms, and Simulated Annealing Bioinformatics Course Supplement Markov Chan Monte Carlo MCMC, Gbbs Samplng, Metropols Algorthms, and Smulated Annealng 2001 Bonformatcs Course Supplement SNU Bontellgence Lab http://bsnuackr/ Outlne! Markov Chan Monte Carlo MCMC! Metropols-Hastngs

More information

Simulation and Random Number Generation

Simulation and Random Number Generation Smulaton and Random Number Generaton Summary Dscrete Tme vs Dscrete Event Smulaton Random number generaton Generatng a random sequence Generatng random varates from a Unform dstrbuton Testng the qualty

More information

Kernel Methods and SVMs Extension

Kernel Methods and SVMs Extension Kernel Methods and SVMs Extenson The purpose of ths document s to revew materal covered n Machne Learnng 1 Supervsed Learnng regardng support vector machnes (SVMs). Ths document also provdes a general

More information

Advanced Circuits Topics - Part 1 by Dr. Colton (Fall 2017)

Advanced Circuits Topics - Part 1 by Dr. Colton (Fall 2017) Advanced rcuts Topcs - Part by Dr. olton (Fall 07) Part : Some thngs you should already know from Physcs 0 and 45 These are all thngs that you should have learned n Physcs 0 and/or 45. Ths secton s organzed

More information

Week3, Chapter 4. Position and Displacement. Motion in Two Dimensions. Instantaneous Velocity. Average Velocity

Week3, Chapter 4. Position and Displacement. Motion in Two Dimensions. Instantaneous Velocity. Average Velocity Week3, Chapter 4 Moton n Two Dmensons Lecture Quz A partcle confned to moton along the x axs moves wth constant acceleraton from x =.0 m to x = 8.0 m durng a 1-s tme nterval. The velocty of the partcle

More information

SIO 224. m(r) =(ρ(r),k s (r),µ(r))

SIO 224. m(r) =(ρ(r),k s (r),µ(r)) SIO 224 1. A bref look at resoluton analyss Here s some background for the Masters and Gubbns resoluton paper. Global Earth models are usually found teratvely by assumng a startng model and fndng small

More information

1. Inference on Regression Parameters a. Finding Mean, s.d and covariance amongst estimates. 2. Confidence Intervals and Working Hotelling Bands

1. Inference on Regression Parameters a. Finding Mean, s.d and covariance amongst estimates. 2. Confidence Intervals and Working Hotelling Bands Content. Inference on Regresson Parameters a. Fndng Mean, s.d and covarance amongst estmates.. Confdence Intervals and Workng Hotellng Bands 3. Cochran s Theorem 4. General Lnear Testng 5. Measures of

More information

Probability and Random Variable Primer

Probability and Random Variable Primer B. Maddah ENMG 622 Smulaton 2/22/ Probablty and Random Varable Prmer Sample space and Events Suppose that an eperment wth an uncertan outcome s performed (e.g., rollng a de). Whle the outcome of the eperment

More information

Markov Chain Monte Carlo Lecture 6

Markov Chain Monte Carlo Lecture 6 where (x 1,..., x N ) X N, N s called the populaton sze, f(x) f (x) for at least one {1, 2,..., N}, and those dfferent from f(x) are called the tral dstrbutons n terms of mportance samplng. Dfferent ways

More information

Lecture 4: Universal Hash Functions/Streaming Cont d

Lecture 4: Universal Hash Functions/Streaming Cont d CSE 5: Desgn and Analyss of Algorthms I Sprng 06 Lecture 4: Unversal Hash Functons/Streamng Cont d Lecturer: Shayan Oves Gharan Aprl 6th Scrbe: Jacob Schreber Dsclamer: These notes have not been subjected

More information

Statistical Inference. 2.3 Summary Statistics Measures of Center and Spread. parameters ( population characteristics )

Statistical Inference. 2.3 Summary Statistics Measures of Center and Spread. parameters ( population characteristics ) Ismor Fscher, 8//008 Stat 54 / -8.3 Summary Statstcs Measures of Center and Spread Dstrbuton of dscrete contnuous POPULATION Random Varable, numercal True center =??? True spread =???? parameters ( populaton

More information

C/CS/Phy191 Problem Set 3 Solutions Out: Oct 1, 2008., where ( 00. ), so the overall state of the system is ) ( ( ( ( 00 ± 11 ), Φ ± = 1

C/CS/Phy191 Problem Set 3 Solutions Out: Oct 1, 2008., where ( 00. ), so the overall state of the system is ) ( ( ( ( 00 ± 11 ), Φ ± = 1 C/CS/Phy9 Problem Set 3 Solutons Out: Oct, 8 Suppose you have two qubts n some arbtrary entangled state ψ You apply the teleportaton protocol to each of the qubts separately What s the resultng state obtaned

More information

Chapter 13: Multiple Regression

Chapter 13: Multiple Regression Chapter 13: Multple Regresson 13.1 Developng the multple-regresson Model The general model can be descrbed as: It smplfes for two ndependent varables: The sample ft parameter b 0, b 1, and b are used to

More information

CS-433: Simulation and Modeling Modeling and Probability Review

CS-433: Simulation and Modeling Modeling and Probability Review CS-433: Smulaton and Modelng Modelng and Probablty Revew Exercse 1. (Probablty of Smple Events) Exercse 1.1 The owner of a camera shop receves a shpment of fve cameras from a camera manufacturer. Unknown

More information

LOW BIAS INTEGRATED PATH ESTIMATORS. James M. Calvin

LOW BIAS INTEGRATED PATH ESTIMATORS. James M. Calvin Proceedngs of the 007 Wnter Smulaton Conference S G Henderson, B Bller, M-H Hseh, J Shortle, J D Tew, and R R Barton, eds LOW BIAS INTEGRATED PATH ESTIMATORS James M Calvn Department of Computer Scence

More information

Chapter Twelve. Integration. We now turn our attention to the idea of an integral in dimensions higher than one. Consider a real-valued function f : D

Chapter Twelve. Integration. We now turn our attention to the idea of an integral in dimensions higher than one. Consider a real-valued function f : D Chapter Twelve Integraton 12.1 Introducton We now turn our attenton to the dea of an ntegral n dmensons hgher than one. Consder a real-valued functon f : R, where the doman s a nce closed subset of Eucldean

More information

Module 9. Lecture 6. Duality in Assignment Problems

Module 9. Lecture 6. Duality in Assignment Problems Module 9 1 Lecture 6 Dualty n Assgnment Problems In ths lecture we attempt to answer few other mportant questons posed n earler lecture for (AP) and see how some of them can be explaned through the concept

More information

Homework Assignment 3 Due in class, Thursday October 15

Homework Assignment 3 Due in class, Thursday October 15 Homework Assgnment 3 Due n class, Thursday October 15 SDS 383C Statstcal Modelng I 1 Rdge regresson and Lasso 1. Get the Prostrate cancer data from http://statweb.stanford.edu/~tbs/elemstatlearn/ datasets/prostate.data.

More information

Unit 5: Quadratic Equations & Functions

Unit 5: Quadratic Equations & Functions Date Perod Unt 5: Quadratc Equatons & Functons DAY TOPIC 1 Modelng Data wth Quadratc Functons Factorng Quadratc Epressons 3 Solvng Quadratc Equatons 4 Comple Numbers Smplfcaton, Addton/Subtracton & Multplcaton

More information

Lossy Compression. Compromise accuracy of reconstruction for increased compression.

Lossy Compression. Compromise accuracy of reconstruction for increased compression. Lossy Compresson Compromse accuracy of reconstructon for ncreased compresson. The reconstructon s usually vsbly ndstngushable from the orgnal mage. Typcally, one can get up to 0:1 compresson wth almost

More information

Department of Statistics University of Toronto STA305H1S / 1004 HS Design and Analysis of Experiments Term Test - Winter Solution

Department of Statistics University of Toronto STA305H1S / 1004 HS Design and Analysis of Experiments Term Test - Winter Solution Department of Statstcs Unversty of Toronto STA35HS / HS Desgn and Analyss of Experments Term Test - Wnter - Soluton February, Last Name: Frst Name: Student Number: Instructons: Tme: hours. Ads: a non-programmable

More information

Uncertainty in measurements of power and energy on power networks

Uncertainty in measurements of power and energy on power networks Uncertanty n measurements of power and energy on power networks E. Manov, N. Kolev Department of Measurement and Instrumentaton, Techncal Unversty Sofa, bul. Klment Ohrdsk No8, bl., 000 Sofa, Bulgara Tel./fax:

More information

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011

Stanford University CS359G: Graph Partitioning and Expanders Handout 4 Luca Trevisan January 13, 2011 Stanford Unversty CS359G: Graph Parttonng and Expanders Handout 4 Luca Trevsan January 3, 0 Lecture 4 In whch we prove the dffcult drecton of Cheeger s nequalty. As n the past lectures, consder an undrected

More information

HMMT February 2016 February 20, 2016

HMMT February 2016 February 20, 2016 HMMT February 016 February 0, 016 Combnatorcs 1. For postve ntegers n, let S n be the set of ntegers x such that n dstnct lnes, no three concurrent, can dvde a plane nto x regons (for example, S = {3,

More information

EPR Paradox and the Physical Meaning of an Experiment in Quantum Mechanics. Vesselin C. Noninski

EPR Paradox and the Physical Meaning of an Experiment in Quantum Mechanics. Vesselin C. Noninski EPR Paradox and the Physcal Meanng of an Experment n Quantum Mechancs Vesseln C Nonnsk vesselnnonnsk@verzonnet Abstract It s shown that there s one purely determnstc outcome when measurement s made on

More information

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 8 Luca Trevisan February 17, 2016

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 8 Luca Trevisan February 17, 2016 U.C. Berkeley CS94: Spectral Methods and Expanders Handout 8 Luca Trevsan February 7, 06 Lecture 8: Spectral Algorthms Wrap-up In whch we talk about even more generalzatons of Cheeger s nequaltes, and

More information

THE CHINESE REMAINDER THEOREM. We should thank the Chinese for their wonderful remainder theorem. Glenn Stevens

THE CHINESE REMAINDER THEOREM. We should thank the Chinese for their wonderful remainder theorem. Glenn Stevens THE CHINESE REMAINDER THEOREM KEITH CONRAD We should thank the Chnese for ther wonderful remander theorem. Glenn Stevens 1. Introducton The Chnese remander theorem says we can unquely solve any par of

More information

/ n ) are compared. The logic is: if the two

/ n ) are compared. The logic is: if the two STAT C141, Sprng 2005 Lecture 13 Two sample tests One sample tests: examples of goodness of ft tests, where we are testng whether our data supports predctons. Two sample tests: called as tests of ndependence

More information

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for U Charts. Dr. Wayne A. Taylor

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for U Charts. Dr. Wayne A. Taylor Taylor Enterprses, Inc. Adjusted Control Lmts for U Charts Copyrght 207 by Taylor Enterprses, Inc., All Rghts Reserved. Adjusted Control Lmts for U Charts Dr. Wayne A. Taylor Abstract: U charts are used

More information

BOOTSTRAP METHOD FOR TESTING OF EQUALITY OF SEVERAL MEANS. M. Krishna Reddy, B. Naveen Kumar and Y. Ramu

BOOTSTRAP METHOD FOR TESTING OF EQUALITY OF SEVERAL MEANS. M. Krishna Reddy, B. Naveen Kumar and Y. Ramu BOOTSTRAP METHOD FOR TESTING OF EQUALITY OF SEVERAL MEANS M. Krshna Reddy, B. Naveen Kumar and Y. Ramu Department of Statstcs, Osmana Unversty, Hyderabad -500 007, Inda. nanbyrozu@gmal.com, ramu0@gmal.com

More information

Some Comments on Accelerating Convergence of Iterative Sequences Using Direct Inversion of the Iterative Subspace (DIIS)

Some Comments on Accelerating Convergence of Iterative Sequences Using Direct Inversion of the Iterative Subspace (DIIS) Some Comments on Acceleratng Convergence of Iteratve Sequences Usng Drect Inverson of the Iteratve Subspace (DIIS) C. Davd Sherrll School of Chemstry and Bochemstry Georga Insttute of Technology May 1998

More information

Work is the change in energy of a system (neglecting heat transfer). To examine what could

Work is the change in energy of a system (neglecting heat transfer). To examine what could Work Work s the change n energy o a system (neglectng heat transer). To eamne what could cause work, let s look at the dmensons o energy: L ML E M L F L so T T dmensonally energy s equal to a orce tmes

More information

Note on EM-training of IBM-model 1

Note on EM-training of IBM-model 1 Note on EM-tranng of IBM-model INF58 Language Technologcal Applcatons, Fall The sldes on ths subject (nf58 6.pdf) ncludng the example seem nsuffcent to gve a good grasp of what s gong on. Hence here are

More information

ELASTIC WAVE PROPAGATION IN A CONTINUOUS MEDIUM

ELASTIC WAVE PROPAGATION IN A CONTINUOUS MEDIUM ELASTIC WAVE PROPAGATION IN A CONTINUOUS MEDIUM An elastc wave s a deformaton of the body that travels throughout the body n all drectons. We can examne the deformaton over a perod of tme by fxng our look

More information

APPENDIX 2 FITTING A STRAIGHT LINE TO OBSERVATIONS

APPENDIX 2 FITTING A STRAIGHT LINE TO OBSERVATIONS Unversty of Oulu Student Laboratory n Physcs Laboratory Exercses n Physcs 1 1 APPEDIX FITTIG A STRAIGHT LIE TO OBSERVATIOS In the physcal measurements we often make a seres of measurements of the dependent

More information

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4)

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4) I. Classcal Assumptons Econ7 Appled Econometrcs Topc 3: Classcal Model (Studenmund, Chapter 4) We have defned OLS and studed some algebrac propertes of OLS. In ths topc we wll study statstcal propertes

More information

Simulated Power of the Discrete Cramér-von Mises Goodness-of-Fit Tests

Simulated Power of the Discrete Cramér-von Mises Goodness-of-Fit Tests Smulated of the Cramér-von Mses Goodness-of-Ft Tests Steele, M., Chaselng, J. and 3 Hurst, C. School of Mathematcal and Physcal Scences, James Cook Unversty, Australan School of Envronmental Studes, Grffth

More information

Lecture 3: Probability Distributions

Lecture 3: Probability Distributions Lecture 3: Probablty Dstrbutons Random Varables Let us begn by defnng a sample space as a set of outcomes from an experment. We denote ths by S. A random varable s a functon whch maps outcomes nto the

More information

Basically, if you have a dummy dependent variable you will be estimating a probability.

Basically, if you have a dummy dependent variable you will be estimating a probability. ECON 497: Lecture Notes 13 Page 1 of 1 Metropoltan State Unversty ECON 497: Research and Forecastng Lecture Notes 13 Dummy Dependent Varable Technques Studenmund Chapter 13 Bascally, f you have a dummy

More information

LINEAR REGRESSION ANALYSIS. MODULE IX Lecture Multicollinearity

LINEAR REGRESSION ANALYSIS. MODULE IX Lecture Multicollinearity LINEAR REGRESSION ANALYSIS MODULE IX Lecture - 30 Multcollnearty Dr. Shalabh Department of Mathematcs and Statstcs Indan Insttute of Technology Kanpur 2 Remedes for multcollnearty Varous technques have

More information

Lecture 3. Ax x i a i. i i

Lecture 3. Ax x i a i. i i 18.409 The Behavor of Algorthms n Practce 2/14/2 Lecturer: Dan Spelman Lecture 3 Scrbe: Arvnd Sankar 1 Largest sngular value In order to bound the condton number, we need an upper bound on the largest

More information

Formulas for the Determinant

Formulas for the Determinant page 224 224 CHAPTER 3 Determnants e t te t e 2t 38 A = e t 2te t e 2t e t te t 2e 2t 39 If 123 A = 345, 456 compute the matrx product A adj(a) What can you conclude about det(a)? For Problems 40 43, use

More information

Quadratic speedup for unstructured search - Grover s Al-

Quadratic speedup for unstructured search - Grover s Al- Quadratc speedup for unstructured search - Grover s Al- CS 94- gorthm /8/07 Sprng 007 Lecture 11 001 Unstructured Search Here s the problem: You are gven a boolean functon f : {1,,} {0,1}, and are promsed

More information

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE Analytcal soluton s usually not possble when exctaton vares arbtrarly wth tme or f the system s nonlnear. Such problems can be solved by numercal tmesteppng

More information

Distributions /06. G.Serazzi 05/06 Dimensionamento degli Impianti Informatici distrib - 1

Distributions /06. G.Serazzi 05/06 Dimensionamento degli Impianti Informatici distrib - 1 Dstrbutons 8/03/06 /06 G.Serazz 05/06 Dmensonamento degl Impant Informatc dstrb - outlne densty, dstrbuton, moments unform dstrbuton Posson process, eponental dstrbuton Pareto functon densty and dstrbuton

More information

Negative Binomial Regression

Negative Binomial Regression STATGRAPHICS Rev. 9/16/2013 Negatve Bnomal Regresson Summary... 1 Data Input... 3 Statstcal Model... 3 Analyss Summary... 4 Analyss Optons... 7 Plot of Ftted Model... 8 Observed Versus Predcted... 10 Predctons...

More information

Lab 2e Thermal System Response and Effective Heat Transfer Coefficient

Lab 2e Thermal System Response and Effective Heat Transfer Coefficient 58:080 Expermental Engneerng 1 OBJECTIVE Lab 2e Thermal System Response and Effectve Heat Transfer Coeffcent Warnng: though the experment has educatonal objectves (to learn about bolng heat transfer, etc.),

More information

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography CSc 6974 and ECSE 6966 Math. Tech. for Vson, Graphcs and Robotcs Lecture 21, Aprl 17, 2006 Estmatng A Plane Homography Overvew We contnue wth a dscusson of the major ssues, usng estmaton of plane projectve

More information

Winter 2008 CS567 Stochastic Linear/Integer Programming Guest Lecturer: Xu, Huan

Winter 2008 CS567 Stochastic Linear/Integer Programming Guest Lecturer: Xu, Huan Wnter 2008 CS567 Stochastc Lnear/Integer Programmng Guest Lecturer: Xu, Huan Class 2: More Modelng Examples 1 Capacty Expanson Capacty expanson models optmal choces of the tmng and levels of nvestments

More information

Lecture 20: Hypothesis testing

Lecture 20: Hypothesis testing Lecture : Hpothess testng Much of statstcs nvolves hpothess testng compare a new nterestng hpothess, H (the Alternatve hpothess to the borng, old, well-known case, H (the Null Hpothess or, decde whether

More information

P R. Lecture 4. Theory and Applications of Pattern Recognition. Dept. of Electrical and Computer Engineering /

P R. Lecture 4. Theory and Applications of Pattern Recognition. Dept. of Electrical and Computer Engineering / Theory and Applcatons of Pattern Recognton 003, Rob Polkar, Rowan Unversty, Glassboro, NJ Lecture 4 Bayes Classfcaton Rule Dept. of Electrcal and Computer Engneerng 0909.40.0 / 0909.504.04 Theory & Applcatons

More information

Introduction to Algorithms

Introduction to Algorithms Introducton to Algorthms 6.046J/8.40J Lecture 7 Prof. Potr Indyk Data Structures Role of data structures: Encapsulate data Support certan operatons (e.g., INSERT, DELETE, SEARCH) Our focus: effcency of

More information

Grover s Algorithm + Quantum Zeno Effect + Vaidman

Grover s Algorithm + Quantum Zeno Effect + Vaidman Grover s Algorthm + Quantum Zeno Effect + Vadman CS 294-2 Bomb 10/12/04 Fall 2004 Lecture 11 Grover s algorthm Recall that Grover s algorthm for searchng over a space of sze wors as follows: consder the

More information

Limited Dependent Variables

Limited Dependent Variables Lmted Dependent Varables. What f the left-hand sde varable s not a contnuous thng spread from mnus nfnty to plus nfnty? That s, gven a model = f (, β, ε, where a. s bounded below at zero, such as wages

More information

Inductance Calculation for Conductors of Arbitrary Shape

Inductance Calculation for Conductors of Arbitrary Shape CRYO/02/028 Aprl 5, 2002 Inductance Calculaton for Conductors of Arbtrary Shape L. Bottura Dstrbuton: Internal Summary In ths note we descrbe a method for the numercal calculaton of nductances among conductors

More information

Comparison of Regression Lines

Comparison of Regression Lines STATGRAPHICS Rev. 9/13/2013 Comparson of Regresson Lnes Summary... 1 Data Input... 3 Analyss Summary... 4 Plot of Ftted Model... 6 Condtonal Sums of Squares... 6 Analyss Optons... 7 Forecasts... 8 Confdence

More information

Errors for Linear Systems

Errors for Linear Systems Errors for Lnear Systems When we solve a lnear system Ax b we often do not know A and b exactly, but have only approxmatons  and ˆb avalable. Then the best thng we can do s to solve ˆx ˆb exactly whch

More information

Notes on Frequency Estimation in Data Streams

Notes on Frequency Estimation in Data Streams Notes on Frequency Estmaton n Data Streams In (one of) the data streamng model(s), the data s a sequence of arrvals a 1, a 2,..., a m of the form a j = (, v) where s the dentty of the tem and belongs to

More information

Lecture Notes on Linear Regression

Lecture Notes on Linear Regression Lecture Notes on Lnear Regresson Feng L fl@sdueducn Shandong Unversty, Chna Lnear Regresson Problem In regresson problem, we am at predct a contnuous target value gven an nput feature vector We assume

More information

MIMA Group. Chapter 2 Bayesian Decision Theory. School of Computer Science and Technology, Shandong University. Xin-Shun SDU

MIMA Group. Chapter 2 Bayesian Decision Theory. School of Computer Science and Technology, Shandong University. Xin-Shun SDU Group M D L M Chapter Bayesan Decson heory Xn-Shun Xu @ SDU School of Computer Scence and echnology, Shandong Unversty Bayesan Decson heory Bayesan decson theory s a statstcal approach to data mnng/pattern

More information

ANSWERS. Problem 1. and the moment generating function (mgf) by. defined for any real t. Use this to show that E( U) var( U)

ANSWERS. Problem 1. and the moment generating function (mgf) by. defined for any real t. Use this to show that E( U) var( U) Econ 413 Exam 13 H ANSWERS Settet er nndelt 9 deloppgaver, A,B,C, som alle anbefales å telle lkt for å gøre det ltt lettere å stå. Svar er gtt . Unfortunately, there s a prntng error n the hnt of

More information

8.592J: Solutions for Assignment 7 Spring 2005

8.592J: Solutions for Assignment 7 Spring 2005 8.59J: Solutons for Assgnment 7 Sprng 5 Problem 1 (a) A flament of length l can be created by addton of a monomer to one of length l 1 (at rate a) or removal of a monomer from a flament of length l + 1

More information

= z 20 z n. (k 20) + 4 z k = 4

= z 20 z n. (k 20) + 4 z k = 4 Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5

More information

Equilibrium Analysis of the M/G/1 Queue

Equilibrium Analysis of the M/G/1 Queue Eulbrum nalyss of the M/G/ Queue Copyrght, Sanay K. ose. Mean nalyss usng Resdual Lfe rguments Secton 3.. nalyss usng an Imbedded Marov Chan pproach Secton 3. 3. Method of Supplementary Varables done later!

More information

Ensemble Methods: Boosting

Ensemble Methods: Boosting Ensemble Methods: Boostng Ncholas Ruozz Unversty of Texas at Dallas Based on the sldes of Vbhav Gogate and Rob Schapre Last Tme Varance reducton va baggng Generate new tranng data sets by samplng wth replacement

More information

PHYS 450 Spring semester Lecture 02: Dealing with Experimental Uncertainties. Ron Reifenberger Birck Nanotechnology Center Purdue University

PHYS 450 Spring semester Lecture 02: Dealing with Experimental Uncertainties. Ron Reifenberger Birck Nanotechnology Center Purdue University PHYS 45 Sprng semester 7 Lecture : Dealng wth Expermental Uncertantes Ron Refenberger Brck anotechnology Center Purdue Unversty Lecture Introductory Comments Expermental errors (really expermental uncertantes)

More information

CHAPTER 14 GENERAL PERTURBATION THEORY

CHAPTER 14 GENERAL PERTURBATION THEORY CHAPTER 4 GENERAL PERTURBATION THEORY 4 Introducton A partcle n orbt around a pont mass or a sphercally symmetrc mass dstrbuton s movng n a gravtatonal potental of the form GM / r In ths potental t moves

More information

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for P Charts. Dr. Wayne A. Taylor

Copyright 2017 by Taylor Enterprises, Inc., All Rights Reserved. Adjusted Control Limits for P Charts. Dr. Wayne A. Taylor Taylor Enterprses, Inc. Control Lmts for P Charts Copyrght 2017 by Taylor Enterprses, Inc., All Rghts Reserved. Control Lmts for P Charts Dr. Wayne A. Taylor Abstract: P charts are used for count data

More information