Applied Probability. Nathanaël Berestycki, University of Cambridge. Part II, Lent 2014

Size: px
Start display at page:

Download "Applied Probability. Nathanaël Berestycki, University of Cambridge. Part II, Lent 2014"

Transcription

1 Applied Probabiliy Nahanaël Beresycki, Universiy of Cambridge Par II, Len 214 c Nahanaël Beresycki 214. The copyrigh remains wih he auhor of hese noes. 1

2 Conens 1 Queueing Theory Inroducion Example: M/M/1 queue Example: M/M/ queue Burke s heorem Queues in andem Jackson Neworks Non-Markov queues: he M/G/1 queue Renewal Theory Inroducion Elemenary renewal heorem Size biased picking Equilibrium heory of renewal processes Renewal-Reward processes Example: Alernaing Renewal process Example: busy periods of M/G/1 queue G/G/1 queues and Lile s formula Populaion geneics Inroducion Moran model Fixaion The infinie sies model of muaions Kingman s n-coalescen Consisency and sie frequency specrum Kingman s infinie coalescen Inermezzo: Pólya s urn and Hoppe s urn Infinie Alleles Model Ewens sampling formula

3 1 Queueing Theory 1.1 Inroducion Suppose we have a succession of cusomers enering a queue, waiing for service. There are one or more servers delivering his service. Cusomers hen move on, eiher leaving he sysem, or joining anoher queue, ec. The quesions we have in mind are as follows: is here an equilibrium for he queue lengh? Wha is he expeced lengh of he busy period (he im during which he server is busy serving cusomers unil i empies ou)? Wha is he oal effecive rae a which cusomers are bing served? And how long do hey spend in he sysem on average? Queues form a convenien framework o address hese and relaed issues. We will be using Kendall s noaions hroughou: e.g. he ype of queue will be denoed by where: M/G/k The firs leer sands for he way cusomers arrive in he queue (M = Markovian, i.e. a Poisson process wih some rae λ). The second leer sands for he service ime of cusomers (G = general, i.e., no paricular assumpion is made on he disribuion of he service ime) The hird leer sands for he number of servers in he sysem (ypical k = 1 or k = ). 1.2 Example: M/M/1 queue Cusomers arrive a rae λ > and are served a rae µ > by a single server. Le X denoe he queue lengh (including he cusomer being served a ime ). Then X is a Markov chain on S = {, 1,...} wih q i,i+1 = λ; q i,i 1 = µ and q i,j = if j i and j i ± 1. Hence X is a birh and deah chain. Theorem 1.1. Le ρ = λ/µ. Then X is ransien if and only ρ > 1, recurren if and only ρ 1, and is posiive recurren if and only if ρ < 1. In he laer case X has an equilibrium disribuion given by π n = (1 ρ)ρ n. If W is he waiing ime in he sysem of a cusomer before being served, hen condiionally given W >, W Exp(µ λ). (1) Proof. The jump chain is given by a biased random walk on he inegers wih reflecion a : he probabiliy of jumping o he righ is p = λ/(λ + µ). Hence he chin X is ransien if and only if p > 1/2 or equivalenly λ > µ, and recurren oherwise. As concerns posiive recurrence, observe ha sup i q i < so here is a.s. no explosion by a resul from he lecures earlier. Hence we look for an invarian disribuion. Furhermore, since X is a birh and deah chain, i suffices o solve he Deailed Balance Equaions, which read: π n λ = π n+1 µ 3

4 for all n. We hus find π n+1 = (λ/µ) n+1 π inducively and deduce he desired form for π n. Noe ha π n is he disribuion of a (shifed) geomeric random variable. (Shifed because i can be equal o ). Suppose now ha a cusomer arrives in he queue a some large ime. Le N be he number of cusomers already in he queue a ha ime. We have W > if and only if N 1, and N has he disribuion of a shifed geomeric random variable. Condiionally on W >, N is hus an ordinary geomeric random variable wih parameer 1 ρ. Furhermore, if N = n, hen n W = where T i are iid exponenial random variables wih rae µ. We deduce from an exercise on Example Shee 1 ha (condiionally on W > ), W is hus an exponenial random variable wih parameer µ(1 ρ) = µ λ. Example 1.2. Wha is he expeced queue lengh a equilibrium? We have seen ha he queue lengh X a equilibrium is a shifed geomeric random variable wih success probabiliy 1 ρ. Hence E(X) = 1 1 ρ 1 = ρ 1 ρ = µ µ λ. 1.3 Example: M/M/ queue Cusomers arrive a rae λ and are served a rae µ. There are infiniely many servers, so cusomers are in fac served immediaely. Le X denoe he queue lengh a ime (which consiss only of cusomers being served a his ime). Theorem 1.3. X is a posiive recurren Markov chain for any λ, µ >. Furhermore he Poisson (ρ) disribuion is invarian where ρ = λ/µ. Proof. The raes are q i,i+1 = λ and q i,i 1 = iµ (since when here are i cusomers in he queue, he oal rae a which any one of hem is being served is iµ, by superposiion). Thus X is a birh and deah chain; hence for an invarian disribuion i suffices o solve he Deailed Balance Equaions: λπ n 1 = nµπ n or i=1 T i π n = 1 λ n µ π n 1 =... = 1 n! ( ) λ n π. µ Hence he Poisson disribuion wih parameer ρ = λ/µ is invarian. I remains o check ha X is no explosive. This is no sraighforward as he raes are unbounded. We will show by hand ha X is in fac recurren. The idea is ha for n sufficienly large, µn > λ so ha X is dominaed by a random walk biased owards o, and is hence recurren. More formally, le N be sufficienly large ha µn 2λ for all n N. If X is ransien hen we have P N+1 (X > N for all imes ) > (2) Bu so long as X N, he jump chain (Y n ) of (X, ) is such ha P(Y n+1 = Y n +1) 1/3 and P(Y n+1 = Y n 1) 2/3. I follows ha we can consruc a (2/3, 1/3) biased random walk Ỹ n such ha Y n Ỹn for all imes n. Bu Ỹ is ransien owards and hence is guaraneed 4

5 o reurn o N evenually. This conradics (2). Hence X is recurren and hus non-explosive. Since i has an invarian disribuion we deduce ha X is also posiive recurren. 1.4 Burke s heorem Burke s heorem is one of he mos inriguing (and beauiful) resuls of his course. Consider a M/M/1 queue and assume ρ = λ/µ < 1, so here is an equilibrium. Le D denoe he number of cusomers who have depared he queue up o ime. Theorem 1.4. (Burke s heorem). A equilibrium, D is a Poisson process wih rae λ, independenly of µ (so long as µ > λ). Furhermore, X is independen from (D s, s ). Remark 1.5. A firs his seems insane. For insance, he server is working a rae µ; ye he oupu is a rae λ! The explanaion is ha since here is an equilibrium, wha comes in mus be equal o wha goes ou. This makes sense from he poin of view of he sysem, bu is hard o comprehend from he poin of view of he individual worker. The independence propery also doesn look reasonable. For insance if no compleed service in he las 5 hours surely he queue is empy? I urns ou we have learn nohing abou he lengh of he queue. Proof. The proof consiss of a really nice ime-reversal argumen. Recall ha X is a birh and deah chain and has an invarian disribuion. So a equilibrium, X is reversible: hus for a given T >, if ˆX = X T we know ha ( ˆX, T ) has he same disribuion as (X, T ). Hence ˆX experiences a jump of size +1 a consan rae λ. Bu noe ha ˆX has a jump of size +1 a ime if and only a cusomer depars he queue a ime T. Since he ime reversal of a Poisson process is a Poisson process, we deduce ha (D, T ) is iself a Poisson process wih rae λ. Likewise, i is obvious ha X is independen from arrivals beween and T. Reversing he direcion of ime his shows ha X T is independen from deparures beween and T. Remark 1.6. The proof remains valid for any queue wih birh and deah queue lengh, a equilibrium, e.g. for a M/M/ queue for arbirary values of he parameers. Example 1.7. In a CD shop wih many lines he service rae of he cashiers is 2 per minue. Cusomers spend 1 on average. How many sales do hey make on average? Tha really depends on he rae a which cusomers ener he shop, while µ is basically irrelevan so long as µ is larger han he arrival rae λ. If λ = 1 per minue, hen he answer would be = Queues in andem Suppose ha here is a firs M/M/1 queue wih parameers λ and µ 1. Upon service compleion, cusomers immediaely join a second single-server queue where he rae of service is µ 2. For which values of he parameers is he chain ransien or recurren? Wha abou equilibrium? Theorem 1.8. Le X, Y denoe he queue lengh in firs (resp. second) queue. (X, Y ) is a posiive recurren Markov chain if and only if λ < µ 1 and λ < µ 2. In his case he invarian disribuion is given by π(m, n) = (1 ρ 1 )ρ m 1 (1 ρ 2 )ρ n 2 5

6 where ρ 1 = λ/µ 1 and ρ 2 = λ/µ 2. In oher words, X and Y are independen a equilibrium and are disribued according o shifed geomeric random variables wih parameers 1 ρ 1, 1 ρ 2. Proof. We firs compue he raes. From (m, n) he possible ransiions are (m + 1, n) wih rae λ (m, n) (m 1, n + 1) wih rae µ 1 if m 1 (m, n 1) wih rae µ 2 if n 1. The raes are bounded so no explosion is possible. We can check by direc compuaion ha πq = if and only π has he desired form, hence he crierion for posiive recurrence. An alernaive, more elegan or concepual proof, uses Burke s heorem. Indeed, he firs queue is an M/M/1 queue so no posiive recurrence is possible unless λ < µ 1. In his case we know ha he equilibrium disribuion is π 1 (m) = (1 ρ 1 )ρ m 1. Moreover we know by Burke s heorem ha (a equilibrium) he deparure process is a Poisson process wih rae λ. Hence he second queue is also an M/M/1 queue. Thus no equilibrium is possible unless λ < µ 2 as well. In which case he equilibrium disribuion of Y is π 2 (n) = (1 ρ 2 )ρ n 2. I remains o check independence. Inuiively his is because Y depends only on Y and he deparure process (D s, s ). Bu his is independen of X by Burke s heorem. More precisely, if X π 1 and Y π 2 are independen, hen Burke s heorem implies ha he disribuion of (X, Y ) is sill given by wo independen random variables wih disribuion π 1 and π 2. Hence (since (X, Y ) is irreducible) i follows ha his is he invarian disribuion of (X, Y ). Remark 1.9. The random variables X and Y are independen a equilibrium for a fixed ime, bu he processes (X, ) and (Y, ) canno be independen: indeed, Y has a jump of size +1 exacly when X has a jump of size 1. Remark 1.1. You may wonder abou ransience or null recurrence. I is easy o see ha if λ > µ 1, or if λ > µ 2 and λ < µ 1 hen he queue will be ransien. The equaliy cases are delicae. For insance if you assume ha λ = µ 1 = µ 2, i can be shown ha (X, Y ) is recurren. Basically his is because he jump chain is similar o a wo-dimensional simple random walk, which is recurren. However, wih hree or more queues in andem his is no longer he case: essenially because a simple random walk in Z d is ransien for d Jackson Neworks Suppose we have a nework of N single-server queues. The arrival rae ino each queue is λ i, 1 i N. The service rae ino each queue is µ i. Upon service compleion, each cusomer can eiher move o queue j wih probabiliy p ij or exi he sysem wih probabiliy p i := 1 j 1 p ij. We assume ha p i is posiive for all 1 i N, and ha p ii =. We also assume ha he sysem is irreducible in he sense ha if a cusomer arrives in queue i i is always possible for him o visi queue j a some laer ime, for arbirary 1 i, j N. Formally, he Jackson nework is a Markov chain on S = N... N (N imes), where if x = (x 1,..., x N ) hen x i denoes he number of cusomers in queue i. If e i denoes he vecor wih zeros everywhere excep 1 in he ih coordinae, hen q(n, n + e i ) = λ i q(n, n + e j e i ) = µ i p ij if n i 1 q(n, n e i = µ i p i if n i 1 6

7 Wha can be said abou equilibrium, ransience and recurrence? The problem seems very difficul o approach: he ineracion beween he queues desroys independence. Neverheless we will see ha we will ge some surprisingly explici and simple answers. The key idea is o inroduce quaniies, which we will denoe by λ i, which we will laer show o be he effecive rae a which cusomers ener queue i. We can wrie down a sysem of equaions ha hese numbers mus saisfy, called he raffic equaions, which is as follows: Definiion We say ha a vecor ( λ 1,..., λ N ) saisfies he raffic equaion if for all 1 i N: λ i = λ i + λ j p ji (3) j i The idea of (3) is ha he effecive arrival rae ino queue i consiss of arrivals from ouside he sysem (a rae λ i ) while arrivals from wihin he sysem, from queue j say, should ake place a rae λ j p ji. The reason for his guess is relaed o Burke s heorem: as he effecive oupu rae of his queue should be he same as he effecive inpu rae. Lemma There exiss a unique soluion, up o scaling, o he raffic equaions (3). Proof. Exisence: Observe ha he marix P = (p ij ) i,j N defines a sochasic marix on {,..., N}. The corresponding (discree) Markov Chain is ransien in he sense ha i is evenually absorbed a zero. Le Z n denoes a Markov chain in discree ime wih his ransiion marix, sared from he disribuion P(Z = i) = λ i /λ, for 1 i N, where λ = i λ i. Since Z is ransien, he number of visis N i o sae i by Z saisfies E(Z i ) <. Bu observe ha E(N i ) = P(Z = i) + = λ i λ + n= j=1 = λ i λ + n= j=1 P(Z n+1 = i) n= N P(Z n = j; Z n+1 = i) N P(Z n = j)p ji = λ i N λ + p ji E(N i ). j=1 Mulipliying by λ, we see ha if λ i = λe(n i ), hen which is he same hing as (3) as p ii =. Uniquenesss: see example shee. λ i = λ i + N λ j p ji We come o he main heorem of his secion. This frequenly appears in liss of he mos useful mahemaical resuls for indusry. j=1 7

8 Theorem (Jackson s heorem, 1957). Assume ha he raffic equaions have a soluion λ i such ha λ i < µ i for every 1 i N. Then he Jackson nework is posiive recurren and π(n) = N (1 ρ i ) ρ n i i=1 defines an invarian disribuion, where ρ i = λ i /µ i. A equilibrium, he processes of deparures (o he ouside) from each queue form independen Poisson processes wih raes λ i p i. Remark A equilibrium, he queue lenghs X i are hus independen for a fixed. This is exremely surprising given how much queues inerac. Proof. This heorem was proved relaively recenly, for wo reasons. One is ha i ook some ime before somebody made he bold proposal ha queues could be independen a equilibrium. The second reason is ha in fac he equilibrium is nonreversible, which always makes compuaions vasly more complicaed a priori. As we will see hese sar wih a clever rick: we will see ha here is a parial form of reversibiliy, in he sense of he Parial Balance Equaions of he following lemma. Lemma Suppose ha X is a Markov chain on some sae space S, and ha π(x) for x S. Assume ha for each x S we can find a pariion of S \ {x}, ino say S1 x,... such ha for all i 1 π(x)q(x, y) = π(y)q(y, x). (4) y S x i Then π is an invarian measure. Definiion The equaions (4) are called he Parial Balance Equaions. Proof. The assumpions say ha for each x you can group he sae ino clumps such ha he flow from x o each clump is equal o he flow from ha clump o x. I is reasonable ha his implies π is an invarian measure. The formal proof is easy: indeed, π(x) q(x, y) = π(x)q(x, y) y x i y S x i i = i y S x i y S x i π(y)q(y, x) = y x π(y)q(y, x) so πq(x) = for all x S. Here we apply his lemma as follows. Le π(n) = N in he heorem). Then define q(n, m) = π(m) q(m, n). π(n) i=1 ρn i i (a consan muliple of wha is We will check ha summing over an appropriae pariion of he sae space, m q(n, m) = q(n, m) which implies he parial balance equaions. m 8

9 Le A = {e i ; 1 i N}. Thus if n S is a sae and m A hen n + m denoes any possible sae afer arrival of a cusomer in he sysem a some queue. Le D j = {e i e j ; i j} { e j }. Thus if n S is a sae and m D j hen n + m denoes any possible sae afer deparure from a cusomer in queue j. We will show: for all n S, q(n, m) = q(n, m) (5) m D j m D j q(n, m) (6) m A q(n, m) = m A which implies ha π saisfies he parial balance equaions and is hus invarian. For he proof of (5), noe ha if m D j hen q(n, n + m) = µ j p j if m = e j, and q(n, n + m) = µ j p ji if m = e i e j. Thus he lef hand side of (5) is q(n, m) = µ j p j + µ j p ji m D j = µ j which makes sense as services occur a rae µ j. Now, Also, i j q(n, n + e i e j ) = π(n + e i e j ) q(n + e i e j, n) π(n) = ρ i ρ j µ i p ij = λ i /µ i µ i p ij ρ j = λ i p ij ρ j. q(n, n e j ) π(n e j) q(n e j, n) π(n) = λ j ρ j We deduce ha he righ hand side of (5) is given by m D j q(n, m) = λ j ρ j + i j λ i p ij ρ j = λ j ρ j = µ j, (by raffic equaions) 9

10 as desired. We now urn o (6). The lef hand side is For he righ hand side, we observe ha m A q(n, n + m) = i λ i. q(n, n + e i ) = π(n + e i) q(n + e i, n) π(n) = ρ i µ i p i = λ i µ i µ i p i = λ i p i. hence he righ hand side of (6) is given by q(n, n + m) = λ i p i m A i = λ i (1 p ij ) i j = λ i λ i p ij i j i = λ i ( λ j λ j ) i j (by raffic equaions) = j λ j, as desired. So π is an invarian disribuion. Since he raes are bounded, here can be no explosion and i follows ha, if ρ i < 1 for every i 1, we ge an invarian disribuion for he chain and hence i is posiive recurren. For he claim concerning he deparures of he queue, see Example Shee Non-Markov queues: he M/G/1 queue. Consider an M/G/1 queue: cusomers arrive in a Markovian way (as a Poisson process wih rae λ) o a single-server queue. The service ime of he nh cusomer is a random variable ξ n, and we only assume ha he (ξ n ) n 1 are i.i.d. As usual we will be ineresed in he queue lengh X, which his ime is no longer a Markov chain. Wha hope is here o sudy is long-erm behaviour wihou a Markov assumpion? Forunaely here is a hidden Markov srucure underneah in fac, we will discover wo relaed Markov processes. Le D n denoe he deparure ime of he nh cusomer. Proposiion (X(D n ), n 1) forms a (discree) Markov chain wih ransiion probabiliies given by p p 1 p 2... p p 1 p 2... p p 1 p 2... p p 1 p 2... where for all k, p k = E[exp( λξ)(λξ) k /k!]. 1

11 Remark The form of he marix is such ha he firs row is unusual. The oher rows are given by he vecor (p, p 1,...) which is pushed o he righ a each row. Proof. Assume X(D n ) >. Then he (n + 1)h cusomer begins is service immediaely a ime D n. During his service ime ξ n+1, a random number A n+1 of cusomers arrive in he queue. Then we have X(D n+1 ) = X(D n ) + A n+1 1. If however X(D n ) =, hen we have o wai unil he (n + 1)h cusomer arrives. Then during his service, a random number A n+1 of cusomers arrive, and we have X(D n+1 ) = X(D n ) + A n+1. Eiher way, by he Markov propery of he Poisson process of arrivals, he random variables A n are i.i.d. and, given ξ n, A n is Poisson (λξ n ). Hence in he saemen. The resul follows. P(A n = k) = E(P(A n = k ξ n )) = E[exp( λξ)(λξ) k /k!] = p k We wrie 1/µ = E(ξ), and call ρ = λ/µ he raffic inensiy. We deduce he following resul: Theorem If ρ 1 hen he queue is recurren: i.e., i will empy ou almos surely. If ρ > 1 hen i is ransien, meaning ha here is a posiive probabiliy ha i will never empy ou. Proof. We will give wo proofs because hey are boh insrucive. The firs one is o use he previous proposiion. Of course X is ransien/recurren in he sense of he heorem if and only if X(D n ) is ransien/recurren (in he sense of Markov chains). Bu noe ha while X(D n ) > i has he same ransiion probabiliies as a random walk on he inegers Z wih sep disribuion A n 1. Hence i is ransien if and only if E(A n 1) > or E(A n ) > 1. Bu noe ha E(A n ) = E(E(A n ξ n )) = λe(ξ) = ρ so he resul follows. The second proof consiss in uncovering a second Markov srucure, which is a branching process. Call a cusomer C 2 an offspring of cusomer C 1 if C 2 arrives during he service of C 1. This defines a family ree. By he definiion of he M/G/1 queue, he number of offsprings of each cusomer is i.i.d. given by A n. Hence he family ree is a branching process. Now, he queue empies ou if and only if he family ree is finie. As we know from branching process heory, his is equivalen o E(A n ) 1 or ρ 1, since E(A n ) = ρ. As an applicaion of he las argumen we give he following example: Example 1.2. The lengh of he busy period B of he M/G/1 queue saisfies E(B) = 1 µ λ. 11

12 To see his, adop he branching process poin of view. Le A 1 denoe he number of offsprings of he roo individual. Then we can wrie A 1 B = ξ 1 + where B i is he lengh of he busy period associaed wih he individuals forming he ih subree aached o he roo. Noe ha A 1 and ξ 1 are NOT independen. Neverheless, given A 1 and ξ 1, he B j are independen and disribued as B. Thus hence i=1 B i A 1 E(B) = E(ξ) + E(E( B i A 1, ξ 1 )) i=1 = E(ξ) + E(A 1 E(B)) = E(ξ) + ρe(b) E(B) = E(ξ) 1 ρ and he resul follows afer some simplificaions. Remark The connecion beween rees and queues is general. Since queues can be described by random walks (as we saw) his yields a general connecion beween branching processes and random walks. This is a very powerful ool o describe he geomery of large random rees. Using relaed ideas, David Aldous consruced a scaling limi of large random rees, called he Brownian coninuum random ree, in he same manner ha simple random walk on he inegers can be rescaled o an objec called Brownian moion. 12

13 2 Renewal Theory 2.1 Inroducion To explain he main problem in his secion, consider he following example. Suppose buses arrive every 1 minues on average. You go o a bus sop. How long will you have o wai? Naural answers are 5 minues, 1 minues, and π/1. This is illusraed by he following cases: if buses arrive exacly every 1 minues, we probabiliy arrive a a ime which is uniformly disribued in beween wo successive arrivals, so we expec o wai 5 minues. Bu if buses arrive afer exponenial random variables, hus forming a Poisson process, we know ha he ime for he nex bus afer any ime will be an Exponenial random variable wih mean 1 minues, by he Markov propery. We see ha he quesion is ill-posed: more informaion is needed, bu i is couner inuiive ha his quaniy appears o be so sensiive o he disribuion we choose. To see more precisely wha is happening, we inroduce he noion of a renewal process. Definiion 2.1. Le (ξ i, i 1) be i.i.d. random variables wih ξ and P(ξ > ) >. Le T n = n i=1 ξ i and se N = max{n : T n }. (N, ) is called he renewal process associaed wih ξ i. We hink of ξ i as he inerval of ime separaing wo successive renewals; T n is he ime of he nh renewal and N couns he number of renewals up o ime. Remark 2.2. Since P(ξ > ) > we have ha N < a.s. Moreover one can see ha N a.s. 2.2 Elemenary renewal heorem The firs resul, which is quie simple, ells us how many renewals have aken place by ime when large. Theorem 2.3. If 1/λ = E(ξ) < hen we have N E(N ) λ a.s.; and λ. Proof. We only prove he firs asserion here. (The second is more delicae han i looks). We noe ha we have he obvious inequaliy: T N() T N()+1. In words is greaer han he ime since he las renewal before, while i is smaller han he firs renewal afer. Dividing by N(), we ge T N() N() N() T N()+1 N(). We firs focus on he erm on he lef hand side. Since N() a.s. and since T n /n E(ξ) = 1/λ by he law of large numbers, his erm converges o 1/λ. The same reasoning applies o he erm on he righ hand side. We deduce, by comparison, ha N() 1 λ a.s. and he resul follows. 13

14 2.3 Size biased picking Suppose X 1,..., X n are i.i.d. and posiive. Le S i = X X i ; 1 i n. We use he poins S i /S n, 1 i n o ile he inerval [, 1]. This gives us a pariion of he inerval [, 1] ino n subinervals, of size Y i = X i /S n. Suppose U is an independen uniform random variable in (, 1), and le Ŷ denoe he lengh of he inerval conaining U. Wha is he disribuion of Ŷ? A firs naural guess is ha all he inervals are symmeric so we migh guess Ŷ has he same disribuion as Y = Y 1, say. However his naïve guess urns ou o be wrong. The issue is ha U ends o fall in bigger inervals han in smaller ones. This inroduces a bias, which is called a size-biasing effec. In fac, i can readily be checked ha P(Ŷ dy) = nyp(y dy). The facor y accouns for he fac ha if here is an inerval of size y hen he probabiliy U will fall in i is jus y. More generally we inroduce he following noion. Definiion 2.4. Le X be a nonnegaive random variable wih law µ, and suppose E(X) = m <. Then he size-biased disribuion ˆµ is he probabiliy disribuion given by ˆµ(dy) = y m µ(dy). A random variable ˆX wih ha disribuion is said o have he size-biased disribuion of X. Remark 2.5. Noe ha his definiion makes sense because ˆµ(dy) = (y/m)µ(dy) = m/m = 1. Example 2.6. If X is uniform on [, 1] hen ˆX has he disribuion 2xdx on (, 1). The facor x biases owards larger values of X. Example 2.7. If X is an Exponenial random variable wih rae λ hen he size-biased disribuion saisfies P( ˆX dx) = x 1/λ λe λx dx = λ 2 xe λx dx so ˆX is a Gamma (2, λ) random variable. In paricular ˆX has he same disribuion as he sum X 1 + X 2 of wo independen Exponenial random variables wih rae λ. 2.4 Equilibrium heory of renewal processes We will now sae he main heorem of his course concerning renewal processes. This deals wih he long-erm behaviour of renewal processes (N, ) wih renewal disribuion ξ, in relaion o he following se of quesions: for a large ime, how long on average unil he nex renewal? How long since he las renewal? We inroduce he following quaniies o answer hese quesions. 14

15 Definiion 2.8. Le A() = T N() be he age process, i.e, he ime ha has elapsed since he las renewal a ime. Le E() = T N()+1 be he excess a ime or residual life; i.e., he ime ha remains unil he nex renewal. Finally le L() = A() + E() = T N()+1 T N() be he lengh of he curren renewal. Wha is he disribuion of L() for large? A naïve guess migh be ha his is ξ, bu as before a size-biasing phenomenon occurs. Indeed, is more likely o fall in a big renewal inerval han a small one. We hence guess ha he disribuion of L(), for large values of, is given by ˆξ. This is he conen of he nex heorem. Theorem 2.9. Le (1/λ) = E(ξ).Then in disribuion as. Moreover, for all y, P(E() y) λ L() ˆξ (7) as and he same resul holds wih A() in place of E(). In fac, y P(ξ > x)dx. (8) (L(), E()) (ˆξ, U ˆξ) (9) in disribuion as, where U is uniform on (, 1) and is independen from ˆξ. The same resul holds wih he pair (L(), A()) insead of (L(), E()). Remark 2.1. One way o undersand ha heorem is ha L() has he size-based disribuion ˆξ and given L(), he poin falls uniformly wihin he renewal inerval of lengh L(). Tha is he meaning of he uniform random variable in he limi (9). The resricion ξ coninuous does no really need o be here. Remark Le us explain why (8) and (9) are consisen. Indeed, if U is uniform and ˆξ has he size-biased disribuion hen P(U ˆξ y) = = = = 1 P(ˆξ y/u)du 1 y/u = λ ( λxp(ξ dx))du λxp(ξ dx) 1 λxp(ξ dx)(1 y/x) (y x)p(ξ dx). 1 {u y/x} du 15

16 E() ξ 3 1 ξ 1 ξ 2 ξ 3 ξ 4 ξ 5 Figure 1: The residual life as a funcion of ime in he discree case. On he oher hand, y λ y P(ξ > z)dz = λ = λ = λ z P(ξ dx)dz P(ξ dx) P(ξ dx)(y x) 1 {z<y,z<x} dz so he random variable U ˆξ indeed has he disribuion funcion given by (8). Skech of proof. We now skech a proof of he heorem, in he case where ξ is a discree random variable aking values in {1, 2,...}. We sar by proving (8) which is slighly easier. Consider he lef-coninuous excess E() = lim s E(s) for =, 1,.... Then, as suggesed by he picure in Figure 1, (E(), =, 1,...) forms a discree Markov chain wih ransiions p i,i 1 = 1 for i 1 and p,n = P(ξ = n + 1) for all n 1. I is clearly irreducible and recurren, and an invarian measure saisfies: π n = π n+1 + π P(ξ = n + 1) hus by inducion we deduce ha π n := P(ξ = m) m n+1 is an invarian measure for his chain. This can be normalised o be a probabiliy measure if E(ξ) < in which case he invarian disribuion is π n = λp(ξ > n). 16

17 We recognise he formula (8) in he discree case where and y are resriced o be inegers. We now consider he slighly more delicae resul (9), sill in he discree case ξ {1, 2,...}. Of course, once his is proved, (7) follows. Observe ha (L(), E(); =, 1,...} also forms a discree ime Markov chain in he space N N and more precisely in he se The ransiion probabiliies are given by if k 1 and S = {(n, k) : k n 1}. p (n,k) (n,k 1) = 1 p (n,) (k,k 1) = P(ξ = k). This is an irreducible recurren chain for which an invarian measure is given by π(n, k) where: for k n 1 and π(k, k 1) = π(n, k 1) = π(n, k) π(m, )P(ξ = k). m= So aking π(n, k) = P(ξ = n) works. This can be rewrien as π(n, k) = np(ξ = n) 1 n 1 { k n 1}. Afer normalisaion, he firs facor becomes P(ˆξ = n) and he second facor ells us ha E() is uniformly disribued on {,... n 1} given L() = n in he limi. The heorem follows. Example If ξ Exp(λ) hen he renewal process is a Poisson process wih rae λ. The formula y y λ P(ξ > x)dx = λ e λx dx = 1 e λy gives us an exponenial random variable for he limi of E(). This is consisen wih he Markov propery: in fac, E() is an Exp(λ) random variable for every. Also, ˆξ = Gamma (2, λ) by Example 2.7. This can be undersood as he sum of he exponenial random variable giving us he ime unil he nex renewal and anoher independen exponenial random variable corresponding o he ime since he las renewal. This is highly consisen wih he fac ha Poisson processes are ime-reversible and he noion of bi-infinie Poisson process defined in Example Shee 2. Example If ξ is uniform on (, 1) hen for y 1 P(E y) = λ y P(ξ > u)du = λ y (1 u)du = 2(y y 2 /2). 17

18 2.5 Renewal-Reward processes We will consider a simple modificaion of renewal processes where on op of he renewal srucure here is a reward associaed o each renewal. The reward iself could be a funcion o he renewal. The formal seup is as follows. Le (ξ i, R i ) denoe i.i.d. pairs of random variables (noe ha ξ and R do no have o be independen) wih ξ and 1/λ = E(ξ) <. Le N denoe he renewal process associaed wih he (ξ i ) and le N R = denoe he oal reward colleced up o ime. We begin wih a resul elling us abou he long-erm behaviour of R which is analogous o he elemenary renewal heorem. Proposiion As, if E( R ) <, R i=1 R i λe(r); and E(R ) λe(r). Things are more ineresing if we consider he curren reward: i.e., r() = E(R N()+1 ). The size-biasing phenomenon has an impac in his seup oo. The equilibrium heory of renewal processes can be used o show he following fac: Theorem r() λe(rξ) Remark The facor ξ in he expecaion E(Rξ) comes from size-biasing: he reward R has been biased by he size ξ of he renewal in which we can find. The facor λ is 1/E(ξ). 2.6 Example: Alernaing Renewal process Suppose a machine goes on and off; on and off; ec. Each ime he machine is on, i breaks down afer a random variable X i. Once broken i akes Y i for i o be fixed by an engineer. We assume ha X i and Y i are boh i.i.d. and are independen of each oher. Le ξ i = X i + Y i which is he lengh of a full cycle. Then ξ i defines a renewal process N. Wha is he fracion of ime he machine is on in he long-run? We can associae o each renewal he reward R i which corresponds o he amoun of ime he machine was on during ha paricular cycle. Thus R i = X i. We deduce from Proposiion 2.14 ha if R is he oal amoun of ime ha he machine was on during (, ), R E(X) E(X) + E(Y ) ; and E(R ) E(X) E(X) + E(Y ). (1) In realiy here is a subley in deriving (1) from Proposiion This has o do wih he fac ha in he renewal reward process he reward is only colleced a he end of he cycle, where as in our definiion R akes ino accoun only he ime he machine was on up o ime : no up o he las renewal before ime. The discrepancy can for insance be conrolled using Theorem

19 Wha abou he probabiliy p() ha he machine is on a ime? Is here a size-biasing effec aking place here as well? I can be shown no such effec needs o be considered for his quesion, as is suggesed by (1) (since E(R ) = p(s)ds). Hence we deduce as. p() E(X) E(X) + E(Y ) 2.7 Example: busy periods of M/G/1 queue Consider a M/G/1 queue wih raffic inensiy ρ < 1. Le I n, B n denoe he lenghs of ime during which he server is successively idle and hen busy. Noe ha (B n, I n ) form an Alernaing Renewal process. (Here i is imporan o consider B n followed by I n and no he oher way around in order o ge he renewal srucure. Oherwise i is no compleely obvious ha he random variables are iid). I follows ha if p() is he probabiliy ha he server is idle a ime, hen E(I) p() E(B) + E(I). Now, by he Markov propery of arrivals, I n Exp(λ) so E(I) = 1/λ. We have also calculaed using a branching process argumen (see Example 1.2) E(B) = 1 µ λ. (11) We deduce ha p() 1 λ µ (12) which is consisen wih he case where he queue is M/M/1 in which case p() π = 1 λ/µ (leing π denoe he equilibrium disribuion of he queue lengh). 2.8 G/G/1 queues and Lile s formula Consider a G/G/1 queue. Le A n denoe he inervals beween arrival imes of cusomers and S n heir service imes. I is no hard o prove he following resul. Theorem Le 1/λ = E(A n ) and le 1/µ = E(S n ), and le ρ = λ/µ. Then if ρ < 1 he queue will empy ou almos surely, while if ρ > 1 hen wih posiive probabiliy i will never become empy. Skech of proof. Le E be he even ha he queue never empies ou. Le A be he arrival process (number of cusomers arrived up o ime ) and le D be he deparure process (number of cusomers serviced up o ime ). Then on E, we have by he elemenary renewal heorem. impossible. Hence P(E) = if ρ < 1. A λ; D µ Hence (on E), if ρ > 1, we have D A which is 19

20 We will now sae and give he skech of he proof of an ineresing resul concerning G/G/1 queues, known as Lile s formula. This relaes he long-run queue lengh, waiing imes of cusomers and arrival raes. To be precise, inroduce he following quaniies: le 1 L() = lim where X s is he queue lengh a ime s, and le 1 W = lim n n n i=1 X s ds where W i is he waiing ime including service of he ih cusomer. A priori i is no clear ha hese limis are well-defined. Theorem (Lile s formula). Assume ρ < 1. The limis defining L and W exis almos surely. Moreover, L = λw where 1/λ = E(A n ). Skech of proof. Since ρ < 1, here are infiniely many imes where he queue is idle and a new cusomer arrives. These insans, call hem T n, form a renewal process. Hence he limi for L() comes from he renewal reward heory (more specifically Proposiion 2.14), where he reward during [T n, T n+1 ] corresponds o R n = Tn+1 T n W i X s ds. Likewise he limi for exisence of W comes from he same resul and a reward R n given by he sum of waiing imes of all cusomers arriving during [T n, T n+1 ], and he elemenary renewal heorem. To prove he relaion in he here, suppose ha each cusomer pays 1 for each minue in he sysem (including when hey are geing served). Hence a ime s he operaor is collecing X s per minue, and he oal colleced up o ime is X sds. On he oher hand, if all cusomers pay upfron when hey ener he queue, hen he amoun colleced is A i=1 W i. We deduce: 1 X s ds = 1 A W i + error where error erm comes from cusomers arriving before ime and whose service ends afer ime. Bu he righ hand side can be rewrien as 1 A i=1 W i = A 1 A i=1 A i=1 W i λw as, while he lef hand side converges o L by definiion. The resul follows. 2

21 Example Waiing ime in an M/M/1 queue. Recall ha he equilibrium disribuion is π n = (1 ρ)ρ n where ρ = λ/µ < 1. Hence in ha queue L = n nπ n = 1 1 ρ 1 = λ µ λ. Hence by Lile s heorem, W = L λ = 1 µ λ. We recover (1), where in fac we had argued ha he waiing ime of a cusomer a large imes was an Exponenial random variable wih rae µ λ. 21

22 3 Populaion geneics 3.1 Inroducion Sample he DNA of n individuals from a populaion. Wha paerns of diversiy/diversiy do we expec o see? How much can be aribued o random drif vs. naural selecion? In order o answer we will assume neural muaions and deduce universal paerns of variaion. Definiion 3.1. The genome is he collecion of all geneic informaion on an individual. This informaion is sored on a number of chromosomes. Each consiss of (usually many) genes. A gene is a piece of geneic maerial coding for one specific proein. Genes hemselves are made up of acid bases: e.g. ATCTTAG... Differen versions of he same gene are called alleles. For insance, o simplify grealy, if here was a gene coding for he colour of he eye we could have he blue allele, he brown allele, ec. To simplify, we will make a convenien abuse of language and speak of an individual when we have in mind a given gene or chromosome. In paricular, for diploid populaions, every member of he populae has wo copies of he same chromosome, which means we have wo corresponding individuals. In oher words, we rea he wo chromosomes in a given member of he populaion as wo disinc individuals. So gene and individual will ofen mean he same hing. 3.2 Moran model Our basic model of a populaion dynamics will be he Moran model. This is a very crude model for he evoluion of a populaion bu neverheless capures he righ essenial feaures, and allows us o give a rigorous reamen a his level. Definiion 3.2. Le N 1. In he Moran model he populaion size is consan equal o N. A rae 1, every individual dies. Simulaneously, a uniformly random chosen individual in he populaion gives birh. Noe: he populaion size says consan hrough his mechanism. In paricular, we allow an individual o give birh jus a he ime he dies. The Moran model can be convenienly consruced in erms of Poisson processes. In he definiion of he Moran model, one can imagine ha when an individual j dies and individual i gives birh, we can hink ha he offspring of i is replacing j. By properies of Poisson processes, if he rae a which an offspring of i replaces j is chosen o be 1/N his gives us a consrucion of he Moran model: indeed he oal rae a which j dies will be N (1/N) = 1, and when his happens he individual i whose offspring is replacing j is chosen uniformly a random. Thus a consrucion of he Moran model is obained by considering independen Poisson processes le (N i,j, ge) for 1 i, j N wih raes 1/N. When N i,j has a jump his means ha individual j dies and is replaced by an offspring of individual i. Corollary 3.3. The Moran model dynamics can be exended o R, by using bi-infinie Poisson processes (N i,j, R). 22

23 3.3 Fixaion Suppose a ime =, a number of X = i of individuals carry a differen allele, called a, while all oher N i individuals carry he allele A. Le X = # individuals carrying allele a a ime, using he Moran model dynamics. Le τ = inf{ : X = or N}. We say ha a fixaes if τ < and X τ = N. We say ha here is no fixaion if τ < and X τ =. Theorem 3.4. We have ha τ < a.s. so hese are he only wo alernaives, and P(X τ = N X = i) = i/n. Moreover, E(τ X = i) = i 1 j=1 N i N N j + Remark 3.5. If p = i/n (, 1) and N hen i follows ha E(τ) is proporional o N and more precisely, E(τ) N( p log p (1 p) log(1 p)). Proof. We begin by observing ha X is a Markov chain wih j=i i j. q i,i+1 = (N i) i/n (13) (he firs facor corresponds o an individual from he A populaion dying, he second o choosing an individual from he a populaion o replace him). Likewise, q i,i 1 = i (N i)/n. (14) Hence he q i,i 1 = q i,i+1, q i = 2i(N i)/n, and X is a Birh and Deah chain whose jump is Simple Random Walk on Z, absorbed a and N. We hus ge he firs resul from he fac ha for Simple Random Walk, P i (T N < T ) = i/n. (15) Now le us wrie τ = N j=1 τ j where τ j is he oal ime spen a j. Noe ha E j (τ j ) = 1 q j E j (# visis o j) = 1 q j P j ( no reurn o j) 1 since he number of visis o j is a geomeric random variable. Now, by decoposing on he firs sep, he probabiliy o no reurn o j is given by P j ( no reurn o j) = j N j by using (15) on he inerval [, j] and [j, N] respecively. Hence Consequeny, E j (τ j ) = 1 q j 2j(N j) N = 1. E i (τ) = j = i E i (τ j ) P i (X = j for some ) E j (τ j ) = j i i j + j<i N i N j. The resul follows. 23

24 3.4 The infinie sies model of muaions Consider he case of poin muaions. These are muaions which change one base ino anoher, say A ino G. When we consider a long sequence of DNA i is exremely unlikely ha wo muaions will affec he same base or sie. We will make one simplifying assumpion ha here are infiniely many sies: i.e., no wo muaions affec he same sie. Concreely, we consider he (bi-infinie) Moran model. We assume ha independenly of he populaion dynamics, every individual is subjec o a muaion a rae u >, independenly for all individuals (neural muaions). Assuming ha no wo muaions affec he same sie, i makes sense o ask he following quesion: Sample 2 individuals from he populaion a ime =. Wha is he probabiliy hey carry he same allele? More generally we can sample n individuals from he populaion and ask how many alleles are here which are presen in only one individual of he sample? Or wo individuals? We call M j (n) = # alleles carried by exacly j individuals in he sample. The infinie sies model ells us ha if we look base by base in he DNA sequence of a sample of individuals, eiher all bases agree in he sample, or here are wo varians (bu no more). Thus, if we are given a able wih he DNA sequences of all n individuals in he sample, M j (n) will be he number of sies (bases) where exacly j individuals carry a base which differs from everyone else in he sample. Example 3.6. Suppose he DNA sequences in a a sample are as follows 1 :... A T T T C G G G T C... 2 :... A G... 3 :... C... 4 :... G C... 5 :... A... 6 : :... C... In his example n = 7. To aid visualisaion we have pu a dash if he base is idenical o ha of he firs individual in he sample. Hence we have M 2 (n) = 2 (second and fourh sies) and M 3 (n) = 1 (las bu one). Our firs resul ells us wha happens in he (unrealisic) case where n = N. Theorem 3.7. Le θ = un. Then E(M j (N)) = θ j. Proof. Muaions occur a a oal rae of u N = θ over in he ime inerval (, ]. Suppose a muaion arises a ime ( > ) on some sie. Wha is he chance ha i affecs exacly j individuals in he populaion a ime? Le X s denoe he number of individuals carrying his muaion a ime + s. Then since muaions don affec each oher, Y evolves like he Markov chain in he previous heorem, i.e., has he Q-marix given by (13) and (14). Hence he chance ha his muaion affecs exacly j individuals in he populaion a ime zero is 24

25 precisely p (1, j) where p (x, y) is he semi-group associaed wih he Q-marix. Thus as desired. E(M j (N)) = 3.5 Kingman s n-coalescen = θe 1 (τ j ) undp (1, j) = θp 1 (X = j for some )E j (τ j ) = θ (1/j) 1, Consider a Moran model defined on R. Sample n individuals a ime. Wha is he genealogical ree of his sample? Since an individual is jus a chromosome, here is jus one paren for any given individual. (This is one of he advanages of making his change of perspecive). Thus for any > here is a unique ancesor for his individual a ime. As goes furher and furher back in ime, i may happen ha he ancesor for wo individuals in he populaion become he same. We speak of a coalescence even. To pu his on a mahemaical fooing, we inroduce he noion of ancesral pariion. This is a pariion Π of he sample (idenified wih {1,..., n}) such ha i and j are in he same block of Π if and only if i and j have he same ancesor a ime. One way o hink abou Π is ha here is a block for each disinc ancesor of he populaion a ime. How does Π evolve as increases? I urns ou ha Π forms a Markov process wih values in P n = { pariions of {1,..., n} }. Theorem 3.8. (Π N/2, ) is a Markov chain in P n wih 1 if π can be obained from π by coagulaing wo of is blocks q π,π = ( ) k 2 if π = π else. This is Kingman s n-coalescen. Proof. I suffices o show ha Π is a Markov chain wih raes (2/N)q π,π. Now, recall ha each block of Π is associaed o an ancesor of he sample a ime. The rae a which his pair of blocks coalesces is 2/N, since if he ancesors are i and j a his ime hen he rae is equal o he sum of he rae for N i,j and N j,i in he Poisson consrucion of he Moran model, i.e., 2/N. All oher ransiions do no ake place, hence he resul. Properies. We lis some immediae properies of Kingman s n-coalescen. 1. Π = {1},..., {n}. 2. For sufficienly large Π = {1,..., n}. The firs such ime is he ime o he MRCA (he mos recen common ancesor) of he sample. 3. Π is a coalescing process. The only possible ransiions involve merging a pair of blocks. Each possible pair of blocks merges a rae 1 in Kingman s n-coalescen (and a rae 2/N for Π iself). 4. If K is he number of Kingman s n-coalescen hen K is a pure deah process wih raes k k 1 given by ( k 2). Moreover he jump chain is independen from K. 25

26 3.6 Consisency and sie frequency specrum A furher ineresing propery is he compaibiliy or sampling consisency. Inuiively, his means ha if we have a sample of size n, hen a subsample of size n 1 behaves as if we had direcly n 1 individuals from he populaion. Mahemaically, his can be expressed as follows. If π is a pariion of [n] = {1,..., n} hen we can speak of π [n 1], he induced pariion of [n 1] obained by resricing π o [n 1]. Proposiion 3.9. Le Π n be Kingman s n-coalescen. Then Π n [n 1] has he law of Kingman s (n 1)-coalescen. Proof. This follows direcly from he consrucion of Kingman s n-coalescen by sampling from he Moran model. Alernaively i can be shown direcly using he ransiion raes via some raher edious calculaions. The sampling consisency has some fundamenal consequences. For insance, recall he infinie sies model, where each individual is subjec o muaion a rae u >, independenly, and all muaions are disinc. Recall he quaniy M j (n), he number of disinc alleles carried by exacly j individuals. Then M j (n) depends only on he muaions which inersec wih he genealogical ree. In oher words, we have a genealogical ree wih each pair of branches coalescing a rae 2/N. Muaions fall on he ree a rae u > per branch and per uni lengh. We have shown in Theorem 3.7 ha for such a ree E(M j (N)) = θ/j where θ = un. By scaling, M j (N) would be unchanged if we consider a Kingman N-coalescen ree on which muaions fall a rae θ/2 per branch and per uni lengh. Bu his is a quesion for which he only parameer is he number N of iniial branches of he ree. We deduce he following resul: Theorem 3.1. For any 1 n N, for θ = un, E(M j (n)) = θ/j. The funcion j θ/j is called he sie frequency specrum of he infinie sies model. Example Biologiss ofen measure he so-called SNP coun S n, or Single Nucleoide Polymorphism. This is he number of sies in he sequence for which here is some variaion in he sequence. Eg in he example a few pages before, S n = 3. Then we deduce from he above heorem ha E(S n ) = θ( ) θ log n. n as n. 3.7 Kingman s infinie coalescen The sampling consisency can be used o deduce he exisence of a unique process (Π, ) aking values in pariions P of N = {1, 2,...} such ha for every n 1, Π [n] has he law of Kingman s n-coalescen. Definiion (Π, ) is called Kingman s infinie coalescen. Iniially we have Π consising of infiniely many singleons. How does i look like for posiive imes? Eg will i ever compleely coalesce? One remarkable phenomenon wih Kingman s coalescen is he following fac. 26

27 Theorem Kingman s coalescen comes down from infiniy: ha is, wih probabiliy one, he number of blocks of Π is finie a any ime >. In paricular, here is a finie ime ζ > such ha Π = {1, 2,...} for ζ. This should be viewed as some kind of big bang even, reducing he number of blocks from infiniy o finiely many in an infiniesimal amoun of ime. Proof. Wrie Π for he number of blocks. By resuls in measure heory, P( Π M) = lim n P( Πn M) = P( τ j ) j=m+1 where τ j is he ime for Π n o drop from j blocks o j 1 blocks. Hence τ j is Exponenial wih rae ( j 2). By Markov s inequaliy P( Π M) E( j=m+1 τ j) 1 1 ( j ) = 2 2 j=m+1 This ends o as M, so he resul follows. 3.8 Inermezzo: Pólya s urn and Hoppe s urn j=m+1 1 j(j 1) The proofs in his secion is no examinable bu we will use he conclusions laer on. Consider he following urn model, due o Pólya. Iniially an urn conains one whie and one black ball. A each subsequen sep, a ball is drawn from he urn. The ball is hen pu back in he urn along wih a ball of he same colour. Le X n denoe he number of black balls in he urn when here are n balls in oal in he urn. Wha is he limiing behaviour of X n? The firs ime hey see his quesion, many people believe ha X n /n will converge o 1/2 when n. Bu he resul is quie differen. Theorem We have ha as n, X n /n U almos surely, where U is a uniform random variable on (, 1). This heorem can be hough of as a rich ge richer phenomenon. Iniially here is a lo of randomness. There are a grea variey of evens ha migh happen during he firs n = 1 draws say. However, once here is a large number of balls in he urn, a law of large number kicks in. For insance if he fracion is p a ha ime, hen he probabiliy o pick a black ball will be p and he probabiliy o pick a while ball will be 1 p. Hence by he law of large numbers he fracion of black balls will end o remain close o p for a very long ime. This reinforces iself and explain why he convergence is almos sure. We will skech a differen (rigorous) proof below. Proof. We sar by making a few simple compuaion. Wha is he probabiliy o ge firs m black balls and hen n m balls (in ha order)? We see ha i is m 1 m 1 m n m n + 1 (m 1)!(n m)! =. (16) (n + 1)! 27

28 The firs facor accoun for drawing all he black balls (whose number increase from 1 o m 1 a he las draw) and he second accouns for hen drawing all whie balls, whose numbers increase from 1 o n m a he las draw. The key observaion is exchangeabiliy: if we were o compue he probabiliy of any oher sequence of draws, also resuling in m + 1 black balls and n + 1 whie balls in he urn, he probabiliy would be unchanged. This is because he boom of he fracion gives he number of balls in he urn (which can only increase by one a each draw) and he fracion gives he number of black or whie balls currenly in he urn. Bu his has o go increase from o 1 m 1 and from 1 o n respecively, albei a differen imes han in he above order. Sill he produc is unchanged. Hence ( ) n (m 1)!(n m)! P(X n+2 = m) = m (n + 1)! = n! m!(n m)! = 1 n + 1, (m 1)!(n m)! (n + 1)! so X n+2 is uniformly disribued over {1,..., n + 1}. I is hence no surprise ha he limi of X n /n, if i exiss, is uniform over [, 1]. To see why in fac he limi does exis, we asser ha X n has he same dynamics as he following (seemingly very differen) process: firs pick a number U (, 1) uniformly a random. Then inser in he urn a black ball wih probabiliy U, and a while ball wih probabiliy 1 U. Indeed, he probabiliy o ge m black balls followed by n m whie balls in ha process is given by 1 u m (1 u) n m du. This inegral can easily be evaluaed and shown o be idenical o (m 1)!(n m)!/(n + 1)!. Clearly he probabiliy is also invarian under permuaion of he sequence, so hese wo processes mus be idenical! I now follows ha by he law of large numbers, X n /n U, almos surely. I seems mad ha he wo processes considered in he proof can in fac be idenical. In he Pólya urn case, here is a complex dependency phenomenon dominaed by rich ge richer. In he second here is no such dependency i is he perhaps he mos basic process of probabiliy: i.i.d. draws, excep ha he parameer for drawing is iself random and is idenical for all draws. Hoppe s urn is a generalisaion of Pólya s urn. This is an urn wih balls of differen colours of mass 1 and a single black ball of mass θ. A each sep, we draw from he urn (wih probabiliy proporional o he mass of he ball). If i is a coloured ball, we pu back he ball in he urn along wih a ball of he same colour. If i is a black ball we pu i back in he urn along wih a ball of a new colour. I can be deduced from Pólya s heorem above ha here will be ulimaely infiniely many colours in he urn. The proporion of balls of a given colour i 1 converges a.s. o a random variable p i, and i p i = 1 a.s. 28

5. Stochastic processes (1)

5. Stochastic processes (1) Lec05.pp S-38.45 - Inroducion o Teleraffic Theory Spring 2005 Conens Basic conceps Poisson process 2 Sochasic processes () Consider some quaniy in a eleraffic (or any) sysem I ypically evolves in ime randomly

More information

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB Elecronic Companion EC.1. Proofs of Technical Lemmas and Theorems LEMMA 1. Le C(RB) be he oal cos incurred by he RB policy. Then we have, T L E[C(RB)] 3 E[Z RB ]. (EC.1) Proof of Lemma 1. Using he marginal

More information

Lecture 4 Notes (Little s Theorem)

Lecture 4 Notes (Little s Theorem) Lecure 4 Noes (Lile s Theorem) This lecure concerns one of he mos imporan (and simples) heorems in Queuing Theory, Lile s Theorem. More informaion can be found in he course book, Bersekas & Gallagher,

More information

Basic definitions and relations

Basic definitions and relations Basic definiions and relaions Lecurer: Dmiri A. Molchanov E-mail: molchan@cs.u.fi hp://www.cs.u.fi/kurssi/tlt-2716/ Kendall s noaion for queuing sysems: Arrival processes; Service ime disribuions; Examples.

More information

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still. Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in

More information

Vehicle Arrival Models : Headway

Vehicle Arrival Models : Headway Chaper 12 Vehicle Arrival Models : Headway 12.1 Inroducion Modelling arrival of vehicle a secion of road is an imporan sep in raffic flow modelling. I has imporan applicaion in raffic flow simulaion where

More information

Two Coupled Oscillators / Normal Modes

Two Coupled Oscillators / Normal Modes Lecure 3 Phys 3750 Two Coupled Oscillaors / Normal Modes Overview and Moivaion: Today we ake a small, bu significan, sep owards wave moion. We will no ye observe waves, bu his sep is imporan in is own

More information

4 Sequences of measurable functions

4 Sequences of measurable functions 4 Sequences of measurable funcions 1. Le (Ω, A, µ) be a measure space (complee, afer a possible applicaion of he compleion heorem). In his chaper we invesigae relaions beween various (nonequivalen) convergences

More information

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t... Mah 228- Fri Mar 24 5.6 Marix exponenials and linear sysems: The analogy beween firs order sysems of linear differenial equaions (Chaper 5) and scalar linear differenial equaions (Chaper ) is much sronger

More information

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities: Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial

More information

SOLUTIONS TO ECE 3084

SOLUTIONS TO ECE 3084 SOLUTIONS TO ECE 384 PROBLEM 2.. For each sysem below, specify wheher or no i is: (i) memoryless; (ii) causal; (iii) inverible; (iv) linear; (v) ime invarian; Explain your reasoning. If he propery is no

More information

Homework 4 (Stats 620, Winter 2017) Due Tuesday Feb 14, in class Questions are derived from problems in Stochastic Processes by S. Ross.

Homework 4 (Stats 620, Winter 2017) Due Tuesday Feb 14, in class Questions are derived from problems in Stochastic Processes by S. Ross. Homework 4 (Sas 62, Winer 217) Due Tuesday Feb 14, in class Quesions are derived from problems in Sochasic Processes by S. Ross. 1. Le A() and Y () denoe respecively he age and excess a. Find: (a) P{Y

More information

Let us start with a two dimensional case. We consider a vector ( x,

Let us start with a two dimensional case. We consider a vector ( x, Roaion marices We consider now roaion marices in wo and hree dimensions. We sar wih wo dimensions since wo dimensions are easier han hree o undersand, and one dimension is a lile oo simple. However, our

More information

Stochastic models and their distributions

Stochastic models and their distributions Sochasic models and heir disribuions Couning cusomers Suppose ha n cusomers arrive a a grocery a imes, say T 1,, T n, each of which akes any real number in he inerval (, ) equally likely The values T 1,,

More information

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details! MAT 257, Handou 6: Ocober 7-2, 20. I. Assignmen. Finish reading Chaper 2 of Spiva, rereading earlier secions as necessary. handou and fill in some missing deails! II. Higher derivaives. Also, read his

More information

The Strong Law of Large Numbers

The Strong Law of Large Numbers Lecure 9 The Srong Law of Large Numbers Reading: Grimme-Sirzaker 7.2; David Williams Probabiliy wih Maringales 7.2 Furher reading: Grimme-Sirzaker 7.1, 7.3-7.5 Wih he Convergence Theorem (Theorem 54) and

More information

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles Diebold, Chaper 7 Francis X. Diebold, Elemens of Forecasing, 4h Ediion (Mason, Ohio: Cengage Learning, 006). Chaper 7. Characerizing Cycles Afer compleing his reading you should be able o: Define covariance

More information

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes Represening Periodic Funcions by Fourier Series 3. Inroducion In his Secion we show how a periodic funcion can be expressed as a series of sines and cosines. We begin by obaining some sandard inegrals

More information

An Introduction to Malliavin calculus and its applications

An Introduction to Malliavin calculus and its applications An Inroducion o Malliavin calculus and is applicaions Lecure 5: Smoohness of he densiy and Hörmander s heorem David Nualar Deparmen of Mahemaics Kansas Universiy Universiy of Wyoming Summer School 214

More information

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes Some common engineering funcions 2.7 Inroducion This secion provides a caalogue of some common funcions ofen used in Science and Engineering. These include polynomials, raional funcions, he modulus funcion

More information

KINEMATICS IN ONE DIMENSION

KINEMATICS IN ONE DIMENSION KINEMATICS IN ONE DIMENSION PREVIEW Kinemaics is he sudy of how hings move how far (disance and displacemen), how fas (speed and velociy), and how fas ha how fas changes (acceleraion). We say ha an objec

More information

18 Biological models with discrete time

18 Biological models with discrete time 8 Biological models wih discree ime The mos imporan applicaions, however, may be pedagogical. The elegan body of mahemaical heory peraining o linear sysems (Fourier analysis, orhogonal funcions, and so

More information

Linear Response Theory: The connection between QFT and experiments

Linear Response Theory: The connection between QFT and experiments Phys540.nb 39 3 Linear Response Theory: The connecion beween QFT and experimens 3.1. Basic conceps and ideas Q: How do we measure he conduciviy of a meal? A: we firs inroduce a weak elecric field E, and

More information

Solutions from Chapter 9.1 and 9.2

Solutions from Chapter 9.1 and 9.2 Soluions from Chaper 9 and 92 Secion 9 Problem # This basically boils down o an exercise in he chain rule from calculus We are looking for soluions of he form: u( x) = f( k x c) where k x R 3 and k is

More information

Stationary Distribution. Design and Analysis of Algorithms Andrei Bulatov

Stationary Distribution. Design and Analysis of Algorithms Andrei Bulatov Saionary Disribuion Design and Analysis of Algorihms Andrei Bulaov Algorihms Markov Chains 34-2 Classificaion of Saes k By P we denoe he (i,j)-enry of i, j Sae is accessible from sae if 0 for some k 0

More information

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation: M ah 5 7 Fall 9 L ecure O c. 4, 9 ) Hamilon- J acobi Equaion: Weak S oluion We coninue he sudy of he Hamilon-Jacobi equaion: We have shown ha u + H D u) = R n, ) ; u = g R n { = }. ). In general we canno

More information

20. Applications of the Genetic-Drift Model

20. Applications of the Genetic-Drift Model 0. Applicaions of he Geneic-Drif Model 1) Deermining he probabiliy of forming any paricular combinaion of genoypes in he nex generaion: Example: If he parenal allele frequencies are p 0 = 0.35 and q 0

More information

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence MATH 433/533, Fourier Analysis Secion 6, Proof of Fourier s Theorem for Poinwise Convergence Firs, some commens abou inegraing periodic funcions. If g is a periodic funcion, g(x + ) g(x) for all real x,

More information

Notes for Lecture 17-18

Notes for Lecture 17-18 U.C. Berkeley CS278: Compuaional Complexiy Handou N7-8 Professor Luca Trevisan April 3-8, 2008 Noes for Lecure 7-8 In hese wo lecures we prove he firs half of he PCP Theorem, he Amplificaion Lemma, up

More information

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients Secion 3.5 Nonhomogeneous Equaions; Mehod of Undeermined Coefficiens Key Terms/Ideas: Linear Differenial operaor Nonlinear operaor Second order homogeneous DE Second order nonhomogeneous DE Soluion o homogeneous

More information

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,

More information

Guest Lectures for Dr. MacFarlane s EE3350 Part Deux

Guest Lectures for Dr. MacFarlane s EE3350 Part Deux Gues Lecures for Dr. MacFarlane s EE3350 Par Deux Michael Plane Mon., 08-30-2010 Wrie name in corner. Poin ou his is a review, so I will go faser. Remind hem o go lisen o online lecure abou geing an A

More information

1 Review of Zero-Sum Games

1 Review of Zero-Sum Games COS 5: heoreical Machine Learning Lecurer: Rob Schapire Lecure #23 Scribe: Eugene Brevdo April 30, 2008 Review of Zero-Sum Games Las ime we inroduced a mahemaical model for wo player zero-sum games. Any

More information

Chapter 2. First Order Scalar Equations

Chapter 2. First Order Scalar Equations Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.

More information

Matlab and Python programming: how to get started

Matlab and Python programming: how to get started Malab and Pyhon programming: how o ge sared Equipping readers he skills o wrie programs o explore complex sysems and discover ineresing paerns from big daa is one of he main goals of his book. In his chaper,

More information

10. State Space Methods

10. State Space Methods . Sae Space Mehods. Inroducion Sae space modelling was briefly inroduced in chaper. Here more coverage is provided of sae space mehods before some of heir uses in conrol sysem design are covered in he

More information

Lecture Notes 2. The Hilbert Space Approach to Time Series

Lecture Notes 2. The Hilbert Space Approach to Time Series Time Series Seven N. Durlauf Universiy of Wisconsin. Basic ideas Lecure Noes. The Hilber Space Approach o Time Series The Hilber space framework provides a very powerful language for discussing he relaionship

More information

Final Spring 2007

Final Spring 2007 .615 Final Spring 7 Overview The purpose of he final exam is o calculae he MHD β limi in a high-bea oroidal okamak agains he dangerous n = 1 exernal ballooning-kink mode. Effecively, his corresponds o

More information

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t M ah 5 2 7 Fall 2 0 0 9 L ecure 1 0 O c. 7, 2 0 0 9 Hamilon- J acobi Equaion: Explici Formulas In his lecure we ry o apply he mehod of characerisics o he Hamilon-Jacobi equaion: u + H D u, x = 0 in R n

More information

= ( ) ) or a system of differential equations with continuous parametrization (T = R

= ( ) ) or a system of differential equations with continuous parametrization (T = R XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of

More information

The Arcsine Distribution

The Arcsine Distribution The Arcsine Disribuion Chris H. Rycrof Ocober 6, 006 A common heme of he class has been ha he saisics of single walker are ofen very differen from hose of an ensemble of walkers. On he firs homework, we

More information

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates Biol. 356 Lab 8. Moraliy, Recruimen, and Migraion Raes (modified from Cox, 00, General Ecology Lab Manual, McGraw Hill) Las week we esimaed populaion size hrough several mehods. One assumpion of all hese

More information

Echocardiography Project and Finite Fourier Series

Echocardiography Project and Finite Fourier Series Echocardiography Projec and Finie Fourier Series 1 U M An echocardiagram is a plo of how a porion of he hear moves as he funcion of ime over he one or more hearbea cycles If he hearbea repeas iself every

More information

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively: XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of

More information

2. Nonlinear Conservation Law Equations

2. Nonlinear Conservation Law Equations . Nonlinear Conservaion Law Equaions One of he clear lessons learned over recen years in sudying nonlinear parial differenial equaions is ha i is generally no wise o ry o aack a general class of nonlinear

More information

Christos Papadimitriou & Luca Trevisan November 22, 2016

Christos Papadimitriou & Luca Trevisan November 22, 2016 U.C. Bereley CS170: Algorihms Handou LN-11-22 Chrisos Papadimiriou & Luca Trevisan November 22, 2016 Sreaming algorihms In his lecure and he nex one we sudy memory-efficien algorihms ha process a sream

More information

) were both constant and we brought them from under the integral.

) were both constant and we brought them from under the integral. YIELD-PER-RECRUIT (coninued The yield-per-recrui model applies o a cohor, bu we saw in he Age Disribuions lecure ha he properies of a cohor do no apply in general o a collecion of cohors, which is wha

More information

We just finished the Erdős-Stone Theorem, and ex(n, F ) (1 1/(χ(F ) 1)) ( n

We just finished the Erdős-Stone Theorem, and ex(n, F ) (1 1/(χ(F ) 1)) ( n Lecure 3 - Kövari-Sós-Turán Theorem Jacques Versraëe jacques@ucsd.edu We jus finished he Erdős-Sone Theorem, and ex(n, F ) ( /(χ(f ) )) ( n 2). So we have asympoics when χ(f ) 3 bu no when χ(f ) = 2 i.e.

More information

Introduction to Probability and Statistics Slides 4 Chapter 4

Introduction to Probability and Statistics Slides 4 Chapter 4 Inroducion o Probabiliy and Saisics Slides 4 Chaper 4 Ammar M. Sarhan, asarhan@mahsa.dal.ca Deparmen of Mahemaics and Saisics, Dalhousie Universiy Fall Semeser 8 Dr. Ammar Sarhan Chaper 4 Coninuous Random

More information

Matrix Versions of Some Refinements of the Arithmetic-Geometric Mean Inequality

Matrix Versions of Some Refinements of the Arithmetic-Geometric Mean Inequality Marix Versions of Some Refinemens of he Arihmeic-Geomeric Mean Inequaliy Bao Qi Feng and Andrew Tonge Absrac. We esablish marix versions of refinemens due o Alzer ], Carwrigh and Field 4], and Mercer 5]

More information

LECTURE 1: GENERALIZED RAY KNIGHT THEOREM FOR FINITE MARKOV CHAINS

LECTURE 1: GENERALIZED RAY KNIGHT THEOREM FOR FINITE MARKOV CHAINS LECTURE : GENERALIZED RAY KNIGHT THEOREM FOR FINITE MARKOV CHAINS We will work wih a coninuous ime reversible Markov chain X on a finie conneced sae space, wih generaor Lf(x = y q x,yf(y. (Recall ha q

More information

Chapter 6. Systems of First Order Linear Differential Equations

Chapter 6. Systems of First Order Linear Differential Equations Chaper 6 Sysems of Firs Order Linear Differenial Equaions We will only discuss firs order sysems However higher order sysems may be made ino firs order sysems by a rick shown below We will have a sligh

More information

Lecture 10: The Poincaré Inequality in Euclidean space

Lecture 10: The Poincaré Inequality in Euclidean space Deparmens of Mahemaics Monana Sae Universiy Fall 215 Prof. Kevin Wildrick n inroducion o non-smooh analysis and geomery Lecure 1: The Poincaré Inequaliy in Euclidean space 1. Wha is he Poincaré inequaliy?

More information

15. Vector Valued Functions

15. Vector Valued Functions 1. Vecor Valued Funcions Up o his poin, we have presened vecors wih consan componens, for example, 1, and,,4. However, we can allow he componens of a vecor o be funcions of a common variable. For example,

More information

14 Autoregressive Moving Average Models

14 Autoregressive Moving Average Models 14 Auoregressive Moving Average Models In his chaper an imporan parameric family of saionary ime series is inroduced, he family of he auoregressive moving average, or ARMA, processes. For a large class

More information

Fishing limits and the Logistic Equation. 1

Fishing limits and the Logistic Equation. 1 Fishing limis and he Logisic Equaion. 1 1. The Logisic Equaion. The logisic equaion is an equaion governing populaion growh for populaions in an environmen wih a limied amoun of resources (for insance,

More information

Math 10B: Mock Mid II. April 13, 2016

Math 10B: Mock Mid II. April 13, 2016 Name: Soluions Mah 10B: Mock Mid II April 13, 016 1. ( poins) Sae, wih jusificaion, wheher he following saemens are rue or false. (a) If a 3 3 marix A saisfies A 3 A = 0, hen i canno be inverible. True.

More information

Math 333 Problem Set #2 Solution 14 February 2003

Math 333 Problem Set #2 Solution 14 February 2003 Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial

More information

Math 334 Fall 2011 Homework 11 Solutions

Math 334 Fall 2011 Homework 11 Solutions Dec. 2, 2 Mah 334 Fall 2 Homework Soluions Basic Problem. Transform he following iniial value problem ino an iniial value problem for a sysem: u + p()u + q() u g(), u() u, u () v. () Soluion. Le v u. Then

More information

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17 EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive

More information

Some Basic Information about M-S-D Systems

Some Basic Information about M-S-D Systems Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,

More information

Predator - Prey Model Trajectories and the nonlinear conservation law

Predator - Prey Model Trajectories and the nonlinear conservation law Predaor - Prey Model Trajecories and he nonlinear conservaion law James K. Peerson Deparmen of Biological Sciences and Deparmen of Mahemaical Sciences Clemson Universiy Ocober 28, 213 Ouline Drawing Trajecories

More information

EXERCISES FOR SECTION 1.5

EXERCISES FOR SECTION 1.5 1.5 Exisence and Uniqueness of Soluions 43 20. 1 v c 21. 1 v c 1 2 4 6 8 10 1 2 2 4 6 8 10 Graph of approximae soluion obained using Euler s mehod wih = 0.1. Graph of approximae soluion obained using Euler

More information

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4. PHY1 Elecriciy Topic 7 (Lecures 1 & 11) Elecric Circuis n his opic, we will cover: 1) Elecromoive Force (EMF) ) Series and parallel resisor combinaions 3) Kirchhoff s rules for circuis 4) Time dependence

More information

Robust estimation based on the first- and third-moment restrictions of the power transformation model

Robust estimation based on the first- and third-moment restrictions of the power transformation model h Inernaional Congress on Modelling and Simulaion, Adelaide, Ausralia, 6 December 3 www.mssanz.org.au/modsim3 Robus esimaion based on he firs- and hird-momen resricions of he power ransformaion Nawaa,

More information

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions

Inventory Analysis and Management. Multi-Period Stochastic Models: Optimality of (s, S) Policy for K-Convex Objective Functions Muli-Period Sochasic Models: Opimali of (s, S) Polic for -Convex Objecive Funcions Consider a seing similar o he N-sage newsvendor problem excep ha now here is a fixed re-ordering cos (> 0) for each (re-)order.

More information

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8) I. Definiions and Problems A. Perfec Mulicollineariy Econ7 Applied Economerics Topic 7: Mulicollineariy (Sudenmund, Chaper 8) Definiion: Perfec mulicollineariy exiss in a following K-variable regression

More information

11!Hí MATHEMATICS : ERDŐS AND ULAM PROC. N. A. S. of decomposiion, properly speaking) conradics he possibiliy of defining a counably addiive real-valu

11!Hí MATHEMATICS : ERDŐS AND ULAM PROC. N. A. S. of decomposiion, properly speaking) conradics he possibiliy of defining a counably addiive real-valu ON EQUATIONS WITH SETS AS UNKNOWNS BY PAUL ERDŐS AND S. ULAM DEPARTMENT OF MATHEMATICS, UNIVERSITY OF COLORADO, BOULDER Communicaed May 27, 1968 We shall presen here a number of resuls in se heory concerning

More information

6. Stochastic calculus with jump processes

6. Stochastic calculus with jump processes A) Trading sraegies (1/3) Marke wih d asses S = (S 1,, S d ) A rading sraegy can be modelled wih a vecor φ describing he quaniies invesed in each asse a each insan : φ = (φ 1,, φ d ) The value a of a porfolio

More information

( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is

( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is UNIT IMPULSE RESPONSE, UNIT STEP RESPONSE, STABILITY. Uni impulse funcion (Dirac dela funcion, dela funcion) rigorously defined is no sricly a funcion, bu disribuion (or measure), precise reamen requires

More information

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures. HOMEWORK # 2: MATH 2, SPRING 25 TJ HITCHMAN Noe: This is he las soluion se where I will describe he MATLAB I used o make my picures.. Exercises from he ex.. Chaper 2.. Problem 6. We are o show ha y() =

More information

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Simulaion-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Week Descripion Reading Maerial 2 Compuer Simulaion of Dynamic Models Finie Difference, coninuous saes, discree ime Simple Mehods Euler Trapezoid

More information

non -negative cone Population dynamics motivates the study of linear models whose coefficient matrices are non-negative or positive.

non -negative cone Population dynamics motivates the study of linear models whose coefficient matrices are non-negative or positive. LECTURE 3 Linear/Nonnegaive Marix Models x ( = Px ( A= m m marix, x= m vecor Linear sysems of difference equaions arise in several difference conexs: Linear approximaions (linearizaion Perurbaion analysis

More information

Mixing times and hitting times: lecture notes

Mixing times and hitting times: lecture notes Miing imes and hiing imes: lecure noes Yuval Peres Perla Sousi 1 Inroducion Miing imes and hiing imes are among he mos fundamenal noions associaed wih a finie Markov chain. A variey of ools have been developed

More information

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should Cambridge Universiy Press 978--36-60033-7 Cambridge Inernaional AS and A Level Mahemaics: Mechanics Coursebook Excerp More Informaion Chaper The moion of projeciles In his chaper he model of free moion

More information

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes Half-Range Series 2.5 Inroducion In his Secion we address he following problem: Can we find a Fourier series expansion of a funcion defined over a finie inerval? Of course we recognise ha such a funcion

More information

Physics 127b: Statistical Mechanics. Fokker-Planck Equation. Time Evolution

Physics 127b: Statistical Mechanics. Fokker-Planck Equation. Time Evolution Physics 7b: Saisical Mechanics Fokker-Planck Equaion The Langevin equaion approach o he evoluion of he velociy disribuion for he Brownian paricle migh leave you uncomforable. A more formal reamen of his

More information

Homework sheet Exercises done during the lecture of March 12, 2014

Homework sheet Exercises done during the lecture of March 12, 2014 EXERCISE SESSION 2A FOR THE COURSE GÉOMÉTRIE EUCLIDIENNE, NON EUCLIDIENNE ET PROJECTIVE MATTEO TOMMASINI Homework shee 3-4 - Exercises done during he lecure of March 2, 204 Exercise 2 Is i rue ha he parameerized

More information

SZG Macro 2011 Lecture 3: Dynamic Programming. SZG macro 2011 lecture 3 1

SZG Macro 2011 Lecture 3: Dynamic Programming. SZG macro 2011 lecture 3 1 SZG Macro 2011 Lecure 3: Dynamic Programming SZG macro 2011 lecure 3 1 Background Our previous discussion of opimal consumpion over ime and of opimal capial accumulaion sugges sudying he general decision

More information

. Now define y j = log x j, and solve the iteration.

. Now define y j = log x j, and solve the iteration. Problem 1: (Disribued Resource Allocaion (ALOHA!)) (Adaped from M& U, Problem 5.11) In his problem, we sudy a simple disribued proocol for allocaing agens o shared resources, wherein agens conend for resources

More information

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x . 1 Mah 211 Homework #3 February 2, 2001 2.4.3. y + (2/x)y = (cos x)/x 2 Answer: Compare y + (2/x) y = (cos x)/x 2 wih y = a(x)x + f(x)and noe ha a(x) = 2/x. Consequenly, an inegraing facor is found wih

More information

Convergence of the Neumann series in higher norms

Convergence of the Neumann series in higher norms Convergence of he Neumann series in higher norms Charles L. Epsein Deparmen of Mahemaics, Universiy of Pennsylvania Version 1.0 Augus 1, 003 Absrac Naural condiions on an operaor A are given so ha he Neumann

More information

Stability and Bifurcation in a Neural Network Model with Two Delays

Stability and Bifurcation in a Neural Network Model with Two Delays Inernaional Mahemaical Forum, Vol. 6, 11, no. 35, 175-1731 Sabiliy and Bifurcaion in a Neural Nework Model wih Two Delays GuangPing Hu and XiaoLing Li School of Mahemaics and Physics, Nanjing Universiy

More information

Expert Advice for Amateurs

Expert Advice for Amateurs Exper Advice for Amaeurs Ernes K. Lai Online Appendix - Exisence of Equilibria The analysis in his secion is performed under more general payoff funcions. Wihou aking an explici form, he payoffs of he

More information

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems. Mah 2250-004 Week 4 April 6-20 secions 7.-7.3 firs order sysems of linear differenial equaions; 7.4 mass-spring sysems. Mon Apr 6 7.-7.2 Sysems of differenial equaions (7.), and he vecor Calculus we need

More information

SPH3U: Projectiles. Recorder: Manager: Speaker:

SPH3U: Projectiles. Recorder: Manager: Speaker: SPH3U: Projeciles Now i s ime o use our new skills o analyze he moion of a golf ball ha was ossed hrough he air. Le s find ou wha is special abou he moion of a projecile. Recorder: Manager: Speaker: 0

More information

Product Integration. Richard D. Gill. Mathematical Institute, University of Utrecht, Netherlands EURANDOM, Eindhoven, Netherlands August 9, 2001

Product Integration. Richard D. Gill. Mathematical Institute, University of Utrecht, Netherlands EURANDOM, Eindhoven, Netherlands August 9, 2001 Produc Inegraion Richard D. Gill Mahemaical Insiue, Universiy of Urech, Neherlands EURANDOM, Eindhoven, Neherlands Augus 9, 21 Absrac This is a brief survey of produc-inegraion for biosaisicians. 1 Produc-Inegraion

More information

Seminar 4: Hotelling 2

Seminar 4: Hotelling 2 Seminar 4: Hoelling 2 November 3, 211 1 Exercise Par 1 Iso-elasic demand A non renewable resource of a known sock S can be exraced a zero cos. Demand for he resource is of he form: D(p ) = p ε ε > A a

More information

Explaining Total Factor Productivity. Ulrich Kohli University of Geneva December 2015

Explaining Total Factor Productivity. Ulrich Kohli University of Geneva December 2015 Explaining Toal Facor Produciviy Ulrich Kohli Universiy of Geneva December 2015 Needed: A Theory of Toal Facor Produciviy Edward C. Presco (1998) 2 1. Inroducion Toal Facor Produciviy (TFP) has become

More information

Solutions to Assignment 1

Solutions to Assignment 1 MA 2326 Differenial Equaions Insrucor: Peronela Radu Friday, February 8, 203 Soluions o Assignmen. Find he general soluions of he following ODEs: (a) 2 x = an x Soluion: I is a separable equaion as we

More information

Continuous Time Markov Chain (Markov Process)

Continuous Time Markov Chain (Markov Process) Coninuous Time Markov Chain (Markov Process) The sae sace is a se of all non-negaive inegers The sysem can change is sae a any ime ( ) denoes he sae of he sysem a ime The random rocess ( ) forms a coninuous-ime

More information

The expectation value of the field operator.

The expectation value of the field operator. The expecaion value of he field operaor. Dan Solomon Universiy of Illinois Chicago, IL dsolom@uic.edu June, 04 Absrac. Much of he mahemaical developmen of quanum field heory has been in suppor of deermining

More information

Bernoulli numbers. Francesco Chiatti, Matteo Pintonello. December 5, 2016

Bernoulli numbers. Francesco Chiatti, Matteo Pintonello. December 5, 2016 UNIVERSITÁ DEGLI STUDI DI PADOVA, DIPARTIMENTO DI MATEMATICA TULLIO LEVI-CIVITA Bernoulli numbers Francesco Chiai, Maeo Pinonello December 5, 206 During las lessons we have proved he Las Ferma Theorem

More information

Lecture 33: November 29

Lecture 33: November 29 36-705: Inermediae Saisics Fall 2017 Lecurer: Siva Balakrishnan Lecure 33: November 29 Today we will coninue discussing he boosrap, and hen ry o undersand why i works in a simple case. In he las lecure

More information

t 2 B F x,t n dsdt t u x,t dxdt

t 2 B F x,t n dsdt t u x,t dxdt Evoluion Equaions For 0, fixed, le U U0, where U denoes a bounded open se in R n.suppose ha U is filled wih a maerial in which a conaminan is being ranspored by various means including diffusion and convecion.

More information

Oscillation of an Euler Cauchy Dynamic Equation S. Huff, G. Olumolode, N. Pennington, and A. Peterson

Oscillation of an Euler Cauchy Dynamic Equation S. Huff, G. Olumolode, N. Pennington, and A. Peterson PROCEEDINGS OF THE FOURTH INTERNATIONAL CONFERENCE ON DYNAMICAL SYSTEMS AND DIFFERENTIAL EQUATIONS May 4 7, 00, Wilmingon, NC, USA pp 0 Oscillaion of an Euler Cauchy Dynamic Equaion S Huff, G Olumolode,

More information

ODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004

ODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004 ODEs II, Lecure : Homogeneous Linear Sysems - I Mike Raugh March 8, 4 Inroducion. In he firs lecure we discussed a sysem of linear ODEs for modeling he excreion of lead from he human body, saw how o ransform

More information

Laplace transfom: t-translation rule , Haynes Miller and Jeremy Orloff

Laplace transfom: t-translation rule , Haynes Miller and Jeremy Orloff Laplace ransfom: -ranslaion rule 8.03, Haynes Miller and Jeremy Orloff Inroducory example Consider he sysem ẋ + 3x = f(, where f is he inpu and x he response. We know is uni impulse response is 0 for

More information

Class Meeting # 10: Introduction to the Wave Equation

Class Meeting # 10: Introduction to the Wave Equation MATH 8.5 COURSE NOTES - CLASS MEETING # 0 8.5 Inroducion o PDEs, Fall 0 Professor: Jared Speck Class Meeing # 0: Inroducion o he Wave Equaion. Wha is he wave equaion? The sandard wave equaion for a funcion

More information

Longest Common Prefixes

Longest Common Prefixes Longes Common Prefixes The sandard ordering for srings is he lexicographical order. I is induced by an order over he alphabe. We will use he same symbols (,

More information