7. Algorithms for Massive Data Problems

Size: px
Start display at page:

Download "7. Algorithms for Massive Data Problems"

Transcription

1 July 4, Mave Data Samlng on the fly 7 Algorthm for Mave Data Problem Mave Data, Samlng h chater deal wth mave data roblem where the nut data (a grah, a matrx or ome other object) too large to be tored n random acce memory One model for uch roblem the treamng model, where the data can be een only once In the treamng model, the natural technque to deal wth the mave data amlng Samlng done ``on the fly, e, a each ece of data een, baed on a con to, one decde whether to nclude the data n the amle ycally, the robablty of ncludng the data ont n the amle may deend on t value Model allowng multle ae through the data are alo ueful; but the number of ae need to be mall We alway aume that Random Acce Memory (RAM) lmted, o entre data cannot be tored n RAM o ntroduce the bac flavor of amlng on the fly, conder the followng rmtve rom a tream of n otve real number a, a, an, draw a amle element a o that the robablty of cng an element roortonal to t value It eay to ee that the followng amlng method wor Uon eeng a, a, a, ee trac of the um a = a+ a + + a and a amle aj, j drawn wth robablty roortonal to t value On readng a +, relace the current a+ amle by a + wth robablty and udate a a+ a 7 Setch of a large matrx + We wll ee how to fnd a good -norm aroxmaton of an m n matrx A ( m, n large) whch beng read from external memory he aroxmaton cont of a amle of column of A, a amle of r row of A and a r multler matrx n between he chematc dagram : A Samle column Mult ler Samled row he crucal ont that the amle of row and column have to drawn accordng to a ecal robablty dtrbuton roortonal to the quared length of the row or column One may recall that f we do the SVD of A and tae only the to ngular vector, we would get a mlar cture; but the SVD tae more tme to comute, requre all of A to be tored n RAM, and

2 July 4, Mave Data Samlng on the fly doe not have the roerty that the row and column are drectly from A However, the SVD doe yeld the bet -norm aroxmaton We wll how error bound for our aroxmaton, but they wll be weaer We brefly touch uon two motvaton for uch a etch Suoe A the document-term matrx of a large collecton of document We are to ``read the collecton at the outet and tore a etch o that later, when a query (rereented by a vector wth one entry er term) arrve, we can fnd t mlarty to each document n the collecton Smlarty defned a dot roduct Wth the cture above, t clear that we can do the matrx-vector roduct of the rght hand de wth a query n tme Orn ( + r+ m) whch would be lnear f r, O() o bound error for th roce, we need to how that the dfference between A and the rght hand de ha mall -norm Recall that the -norm B of a matrx B max{ x B x: x = } A econd motvaton from Recommendaton Sytem Here A would be a cutomer-roduct matrx whoe (, j) th entry the reference of cutomer for roduct j he objectve to collect a few amle entre of A and baed on them, get an aroxmaton to A o that we can mae future recommendaton Our reult would ay that a few amled row of A (all reference of a few cutomer) and a few amled column (all cutomer reference for a few roduct) are enough to gve u an aroxmaton to A rovded we can hyotheze that the amle were drawn accordng to length-quared dtrbuton We frt tacle a mler roblem that of multlyng two matrce he matrx multlcaton wll alo ue length quared amlng and a buldng bloc to the etch 7 Matrx multlcaton ung amlng Suoe A an m nmatrx and B an n matrx and the roduct AB dered We now how how to ue amlng to get an aroxmate roduct fater than the tradtonal A :, denote the th A :, a B,: be multlcaton Let ( ) the th row of B B (,:) column of A ( ) a n matrx hen t eay to ee that n AB = A( :, ) B(,: ) = x m matrx Let ( ) An obvou ue of amlng ugget telf Samle ome value for and comute A( :, ) B(,:) for the amled and ue ther um (caled utably) a the etmate of AB It turn out that non-unform amlng robablte wll be ueful So, we wll defne a random varable that tae on value n {,, n} Let denote the robablty that aume the value ; o the are non-negatve and um to Defne an aocated random matrx varable

3 July 4, Mave Data Samlng on the fly 3 X = A( :, ) B(,: ) Let E( X) denote the entry-we exectaton = n E ( X) = Prob( = ) A( :, ) B(,: ) = A( :, ) B(,: ) = AB h exlan the calng by all t entre n X Defne the varance of X a the um of the varance of ( X ) Var x E x a b m Var = ( ) ( ) j j j = j= j j We can mlfy the lat term by exchangng the order of ummaton to get ( ) :,,: Var X a b = A( ) B( ) j j Now, f we mae roortonal to ( ) we get a mle bound for Var ( X ): A :,, n other word ( ) A :, = A ( X ) A B,: = A B Var ( ) Ung robablte roortonal to length quared of column of A turn out to be ueful n other context a well and amlng accordng to them called ``length-quared amlng A uual, to reduce the varance, do ndeendent tral to c,,, hen fnd the average of the correondng X h A( :, ) B(,: ) A( :, ) B(,: ) A( :, ) B(,:) whch can alo be rereented comactly a ADD B, where D n ``column elector matrx wth D j, j = for j =,, and all other entre of D are zero he j dagonal element of DD j j All other element of

4 July 4, Mave Data Samlng on the fly 4 DD are zero hu, wth column j of B ADD B cont of the weghted um of the roduct of column j of A Lemma 7: Suoe A an m nmatrx and B an n matrx he roduct AB can be etmated by ADD B, where D n and each column of D ha recely one non-zero entry; D ced to be the non-zero entry n column wth robablty ced, t et to / roortonal to A and f he error bounded by E ( ADD B AB ) A B Proof: ang the average of d amle dvde the varance by ndng ADD B n the order (( )( )) AD D B can be done n Omn (( + n+ m)) tme by traghtforward multlcaton Note that f O() and m = n =, then th tme quadratc n n whch O(number of entre) An mortant ecal cae the multlcaton AA hen n fact length-quared dtrbuton can be hown to be the otmal dtrbuton he varance of X defned above for th cae : 4 E( Xj ) ( EXj ) = A AB, j j he econd term ndeendent of the he frt term mnmzed when the are roortonal to A, hence length-quared dtrbuton mnmze the varance of th etmator WHY? 7 Aroxmatng a matrx wth a amle of row and column Now, conder the followng mortant roblem Suoe a large matrx A read from external memory and a etch of t et for further comutaton A mle-mnded etch dea would be to ee a random amle of row and a random amle of column of the matrx If we do unform random amlng, th can fal n general Conder the cae where very few row/column of A are non-zero A mall amle wll m them and we wll only ee zero h toy examle can be made more ubtle by mang a few row have very hgh (abolute value) entre comared to the ret We need to mae the amlng robablte deend on the ze of the entre If we do length-quared amlng of both column and row, then from thee, we can get an aroxmaton to A wth a bound on the aroxmaton error Note that the amlng can be acheved n two ae through the matrx, the frt to comute runnng um of the length-quared of each row and column and the econd a to draw the amle Only the

5 July 4, Mave Data Samlng on the fly 5 amled row and column (whch much maller than the whole) need to be tored n RAM for further comutaton he algorthm tart wth: () Pc column of A ung length-quared amlng Let C (for column) be the m matrx of the ced column caled by/ rob of ced column, e, C = ADwhere D a column elector matrx a n the Lemma 7 () Pc r row of A ung length-quared amlng (here length are row length) Let R (for row) be the r n matrx of the ced row caled by / r rob of ced row Wrte R = DA, where D a r m``row elector matrx We wll aroxmate A by CUR, where U a rmultler matrx comuted from C and R Recall the chematc cture at the begnnng of Secton 7 Before tatng recely what U, we gve ome ntuton A frt dea would be to aroxmate A by ADD I, where I the n ndentty matrx By Lemma 7, the roduct ADD I aroxmate AI = A Note that we would not multly A and I by amlng; the ue of Lemma 7 mly a roof devce here Lemma 7 tell u that n E A ADD I A I A =, whch not very nteretng nce we want <<n Intead of ung the dentty matrx whch ntroduced the factor of n, we wll ue an ``dentty-le matrx baed on R HE OLLOWING NEEDS WORK Lemma 7: If RR nvertble, then R ( RR ) R act a the dentty matrx on the row ace of R Ie, for every vector x of the form x = R y (th defne the row ace of R ), we have R ( RR ) R x= x Proof: or x = R y we have R ( RR ) Rx= R ( RR ) RR y = R y = x Now, we are ready to defne U ()Let U = D R ( RR ) (aumng (v) Lemma 73: Let U = D R ( RR ) (aumng RR nvertble) RR nvertble) hen CUR ADD R ( RR ) R = and ( ) E A CUR A /4 rovded r 3/ r

6 July 4, Mave Data Samlng on the fly Proof: he frt aerton obvou Let R ( RR ) R W = hen CUR = ADD W E( A CUR ) E( A AW ) E( AW ADD W ) Lemma 7 whch tell u ( ) ( ) + he econd term bounded by E AW ADD W E AW ADD W A W (nce for any random varabley, ( ) E Y E( Y ) ) rom Lemma 7, W act le the dentty on a r dmenonal ace and W z = 0 for any z erendcular to the row ace of R So, whch we aw (Lemma 7) wa the um of t quared ngular value, r and hence r E( AW ADD W ) A A /4 r W, Conder the frt term E A AW We recall A AW = Max ( A AW) x / x If x attan th maxmum, x mut be orthogonal to the row ace of R, nce by Lemma 9, for any vector n the row ace of R, W act le the dentty or x orthogonal to row of R, we have ( A AW) = A = A A = ( A A R R) A A A D DA A A A D DA x x x x x x We wll ue Lemma 7 agan to bound th, nce we are cng column of E A A A DD A A whch r A (ame a row of A ) n cng R Indeed, Lemma 7 tell that ( ) mle that E A AW A /4 r rovng the Lemma 7 requency moment of data tream Introducton An mortant cla of roblem concern the frequency moment of data tream Here a data tream a, a, an of length n cont of ymbol a from an alhabet of m oble ymbol whch for convenence we denote a {,, m} hroughout th ecton, nm,, and a wll have thee meanng and (for ymbol) wll denote a generc element of {,, m} he frequency f of the ymbol the number of occurrence of n the tream or a non-negatve nteger, the th frequency moment of the tream

7 July 4, Mave Data Samlng on the fly 7 m = f Note that the = 0 frequency moment correond to the number of dtnct ymbol occurrng n the tream he frt frequency moment jut n, the length of the trng he econd frequency moment f ueful n comutng the varance of the tream n f n f = m m m m In the lmt a become large, f /, the frequency of the mot frequent element() We wll decrbe amlng baed algorthm to comute thee quantte for treamng data hortly But frt a note on the motvaton for thee varou roblem he dentty and frequency of the the mot frequent tem or more generally, tem whoe frequency exceed a fracton of n clearly mortant n many alcaton If the tem are acet on a networ wth ource detnaton addree, the hgh frequency tem dentfy the heavy bandwdth uer If the data urchae record n a uermaret, the hgh frequency tem are the bet-ellng tem he number of dtnct ymbol could be a frt te n the mortant ta of dulcate elmnaton he econd moment (and varance) are ueful n networng a well a databae alcaton and other Large amount of networ-log data are generated by router that can record for all the meage ang through them, the ource addre, detnaton addre, and the number of acet h mave data cannot be ealy orted or aggregated nto total for each ource/detnaton But t mortant to ee f there a ew f ome oular ourcedetnaton ar have a lot of traffc for whch the varance the natural meaure 7 Number of dtnct element n a data tream Conder a equence a, a,, an of n element, each a an nteger n the range to m where n and m are very large Suoe we wh to determne the number of dtnct a n the equence Each a mght rereent a credt card number extracted from a equence of credt card tranacton and we wh to determne how many dtnct credt card account there are he model a data tream where ymbol are een one at a tme We frt how that any determntc algorthm that determne the number of dtnct element exactly mut ue at leat m bt of memory Lower bound on memory for exact determntc algorthm

8 July 4, Mave Data Samlng on the fly 8 Suoe we have een the frt mymbol he et of dtnct ymbol een o far could be any of the m ubet of {,,,m} Each ubet mut reult n a dfferent tate for our algorthm and hence m bt of memory are requred o ee th, uoe frt that two ubet of dtnct ymbol of dfferent ze lead to the ame nternal tate hen our algorthm would roduce the ame count of the number of dtnct ymbol for both nut, clearly an error for one of the nut equence If two equence wth the ame number of dtnct element but dfferent ubet lead to the ame tate, then on next eeng a ymbol that aeared n one equence but not the other would reult n ubet of dfferent ze and thu requre dfferent tate Algorthm for the Number of dtnct element Let aa an a,,, m he number of dtnct element can be etmated wth O(log m) ace Let S {,,, m} be the et of element that aear n the equence Suoe that the element of S were elected unformly at random from be a equence of element where each { } {,,, m} ubject to ther total number S Let mn denote the mnmum element of S Knowng the mnmum element of S allow u to etmate the ze of S he element of S m artton the et {,,, m} nto S + ubet each of ze aroxmately hu, the S + m mnmum element of S hould have value cloe to Solvng m m mn = yeld S = S + S + mn Snce we can determne mn, th gve u an etmate of S he above analy requred that the element of S were ced unformly at random from {,,, m} h generally not the cae when we have a equence aa an of element from {,,, m} Clearly f the element of S were obtaned by electng the S mallet element of {,,, m}, the above technque would gve the wrong anwer If the element are not ced unformly at random, can we etmate the number of dtnct element? he way to olve th roblem to ue a hah functon h where { } { } h:,,, m 0,,,, M DO WE NEED WO DIEREN SIZE SES m AND M? I NO WE COULD AVOID USING A CAPIAL OR AN INEGER o count the number of dtnct element n the nut, count the number of element n the maed et ha ( ), ha ( ),, the ont beng that ha ( ), ha ( ), behave le a random ubet and o the above heurtc argument ung the mnmum to etmate the number of element may aly If we needed ha ( ), ha ( ), to be comletely ndeendent, the ace needed to tore the hah functon would too hgh ortunately, only -way ndeendence needed We recall the formal defnton below But frt recall that a hah functon alway choen from a famly of

9 July 4, Mave Data Samlng on the fly 9 hah functon (at random) and hrae le ``robablty of collon refer to the robablty n th choce Unveral Hah uncton he et of hah functon H = { h h: {,,, m} { 0,,,, M } } -unveral f for all x and y n {,,, m}, x y, and for all z and w n { 0,,,, M } ( ) = ( ) = = Prob h x z and h y w M for a randomly choen h he concet of a -unveral famly of hah functon that gven x, h( x ) equally lely to be any element of { 0,,,, M } ndeendent and for x y, h( x) and ( ) h y are We now gve an examle of a -unveral famly of hah functon or mlcty let M be a rme or each ar of nteger a and b n the range [0,M-], defne a hah functon ab ( ) = + mod( ) h x ax b M o tore the hah functon h ab, we need only tore the two nteger a and b and th requre only O(log M ) ace o ee that the famly -unveral note that h(x)=z and h(y)=w f and only f x a z = mod( M ) y b w x If x y, the matrx nvertble modulo M and there only one oluton for a and b y hu, for a and b choen unformly at random, the robablty of the equaton holdng exactly M Analy of dtnct element countng algorthm Let b, b,, bd be the dtnct value that aear n the nut hen { ( ), ( ), ( d )} S = h b h b h b a et of d random and -way ndeendent value from the et M { 0,,,, M } We now how that mn element n the nut, where mn=mn(s) a good etmate for d, the number of dtnct

10 July 4, Mave Data Samlng on the fly 0 d M Lemma 73: Aume M>00d Wth robablty at leat /3, d, where mn the mn mallet element of S M Proof: rt, we how that Prob > d < mn Prob M Prob mn M d Prob h( b ) M > mn = < = < d d M f h( b ) < d or =,,, d defne the ndcator varable z = 0 otherwe and let d z = z If hb ( ) choen randomly from{ 0,,,, M }, then = Prob[ z = ] hu, E( z ) = d and E( z ) = Now d M M Prob > d Prob h( b ) Prob( z ) Prob z E( z) mn = < = = d By Marov nequalty ( ) Prob z E z M d nally, we how that Prob < < mn M d M M Prob < = Prob mn Prob > h d = ( b ) > d mn or =,,, d defne the ndcator varable and let y d = y = = y Now Prob( ) d M 0 f h( b ) > d otherwe y = =, E( y ) =, and E( y) d or -way ndeendent random varable, the varance of ther um the um of ther varance So Var ( y) = dvar ( y ) urther, t eay to ee that Var( y ) E ( y ), o we have Var( y) E ( y) Now by the Chebychev nequalty, t follow that

11 July 4, Mave Data Samlng on the fly M d M M Prob < = Prob mn Prob ( ) mn > d = h b > d Var( y) = Prob( y = 0) Prob y E( y) E( y) ( E y ) ( ) E( y) M Snce mn > d wth robablty at mot / and M d mn < wth robablty at mot /, d M mn d wth robablty at leat /3 7 Countng the number of occurrence of a gven element Conder a trng of 0 and of length n n whch we wh to count the number of occurrence of Clearly f we had log n bt of memory we could ee trac of the exact number of However, we can aroxmate the number wth only log log n bt Let m be the number of that occur n the equence Kee a value uch that aroxmately the number of occurrence m Storng requre only log log n bt of memory he algorthm wor a follow Start wth =0 or each occurrence of a, add one to wth robablty/ At the end of the trng, the quantty the etmate of m o obtan a con that come down head wth robablty/, fl a far con, one that come down head wth robablty ½, tme and reort head f the far con come down head n all fl Gven, on average t wll tae one before ncremented hu, the exected number of to roduce the current value of = 73 Countng requent element he Majorty and requent Algorthm rt conder the very mle roblem of n eole votng here are m canddate,{,,, m} We want to determne f one canddate get a majorty vote and f o who ormally, we are gven a tream of nteger a, a,, an, each a belongng to {,,, m} and want to determne whether there ome {,,, m} whch occur more than n/ tme and f o whch It eay to ee that to olve the roblem on treamng data (read once only) exactly wth a determntc algorthm, requre Ω( n) ace Suoe n even and the frt n/ tem are all dtnct and the lat n/ tem are dentcal After readng the frt n/ tem, we need to remember exactly whch element of {,, m} have occurred If for two dfferent et of element occurrng n the frt half of the tream, the content of the memory are the ame, then a mtae would occur f the econd half cont of

12 July 4, Mave Data Samlng on the fly an element n one et, but not the other hu, log Ω ( n), are needed m n / bt of memory, whch f m>n he followng a mle low-ace algorthm whch alway fnd the majorty vote f there one If there no majorty, the outut may be arbtrary hat, there may be ``fale otve, but no ``fale negatve Majorty Algorthm: Store a and ntalzed a counter to one or each ubequent a, f a the ame a the currently tored tem, ncrement the counter by one If t dffer, and the counter zero, then tore a and et the counter to one; otherwe, decrement the counter by one o analyze the algorthm, t convenent to vew the decrement counter te a ``elmnatng two tem, the new one and the one whch caued the lat ncrement n the counter It eay to ee that f there a majorty element, t mut be tored at the end If not, each occurrence of wa elmnated; but each uch elmnaton alo caue another tem to be elmnated and o for a majorty tem not to be tored at the end, we mut have elmnated more than n tem, a contradcton Next we modfy the above algorthm o that not jut the majorty, but alo tem wth frequency above ome threhold are detected We wll alo enure (aroxmately) that there are no fale otve a well a no fale negatve Indeed the algorthm below wll fnd the frequency (number of occurrence) of each element of {,, m} to wthn an addtve term of O ( log n) ace by eeng counter ntead of jut n + ung Algorthm requent: Mantan a lt of tem beng counted Intally the lt emty or each tem, f t the ame a ome tem on the lt, ncrement t counter by one Ele, f the lt ha le than tem, add to the lt the new tem wth t counter et to 0ne Otherwe, decrement each of the current counter by one Delete an element from the lt f t count become zero heorem 7: At the end of Algorthm requent, for each {,, m}, t counter on the lt at leat the number of occurrence of n the tream mnu n/(+) In artcular f ome doe not occur on the lt, t counter zero and the theorem aert that t occur fewer than n/(+) tme n the tream Proof: Vew each decrement counter te a elmnatng ome tem An tem can be elmnated n one of two way Ether t the current a beng read and there are already ymbol on the lt n whch cae, t and other tem are beng elmnated he econd way when the tem

13 July 4, Mave Data Samlng on the fly 3 had caued an ncrement n an extng counter earler and that counter beng decremented now In th cae too, other tem are beng multaneouly elmnated hu, the elmnaton of each occurrence of an {,, m} really the elmnaton of + tem hu, no more than n/(+) occurrence of any ymbol can be elmnated Now, t clear that f an tem not elmnated, then t mut tll be on the lt at the end h rove the theorem heorem 7 mle that we can comute the true relatve frequency (number of occurrence / n) n of every {,, m} to wthn an addtve term of (hn of why thee no + contradcton n the fact that we can do t for EVERY element) Examle: 74 he Second Moment h ecton focue on comutng the econd moment, {,, m} Here m = f, of a tream wth ymbol from f denote the number of occurrence of ymbol or m, et each x to ± ndeendently wth robablty / Mantan a um by addng x to the um each tme the ymbol occur n the tream At the end the um wll equal m = x f Now m E x f = 0 = Here the exectaton over the choong of the x Alo nce the ndeendence of m m m x = x + x t t = = = = / t = E f E f E x f f f, x tell u that ( ) 0 E x x = for =/ t hu t

14 July 4, Mave Data Samlng on the fly 4 A = x f an etmator of f We now comute the varance of th etmator 4 Var ( a) E x f = E xx x x f f f f t u v t u v, t, uv, m he frt nequalty becaue the varance at mot the econd moment and the econd equalty by exanon In the econd um, nce the x are ndeendent, f any one of, u, t, or v dtnct from the other, then the exectaton of the whole term zero Note that th doe not need the full ower of mutual ndeendence of all the x, t only need what called 4-way ndeendence, that any four of the x are mutually ndeendent Contnung the calculaton, we need to deal only wth term of the form x xt for t =/ and term of the form x 4 hu, Var ( a) E x xt f ft + E t x f = f f + f = / t = / t 3 f + f = 4( E( a) ) he varance can be reduced by a factor of r by tang the average of r ndeendent tral Wth r ndeendent tral the varance would be at mot 4 ( E ( a) ), o to acheve relatve error ε n r the etmate of f, we need only O( / ε ) ndeendent tral We wll brefly dcu the ndeendent tral here, o a to undertand exactly the amount of ndeendence needed Intead of comutng A a the runnng um x f for one random vector x = ( x, x, x m ), we ndeendently generate r m-vector comute r runnng um x f, x f, x f r 3 r x, x, x,, x at the outet and r = f a = f ar = f Our etmate Let a x, x,, x he varance of th etmator ( a + a + + a r ) r

15 July 4, Mave Data Samlng on the fly 5 ( a+ a + + ar ) = ( Var a + Var a + ) = Var( a), r r r Var ( ) ( ) where we have aumed that the a, a,, ar are mutually ndeendent Now we comute the varance of a a we have done for the varance of a Note that th calculaton aume only 4- way ndeendence between the coordnate of x We wll ummarze the aumton here for future reference: o get an etmate of have r = O( / ε ) vector t () ( ) 0 f E x = for all and t wthn relatve error ε wth robablty at leat 09999, t uffce to r x, x,, x, each wth m coordnate of ± wth () r x, x,, x are mutually ndeendent h mean that for any r vector ± coordnate, r r Pr ( X v ; X v ; X v ) = = = = mr v, v r v wth () Any four coordnate of x are ndeendent Same for 3 r x, x,, x he only drawbac wth the algorthm a we have decrbed t o far that we need to ee the r r vector x, x,, x n memory o that we can do the runnng um h too aceexenve We want to do the roblem n ace deendent uon the logarthm of m, not m telf If ε n Ω (), then r n O (), o t not the r whch the roblem; t the m In the next ecton, we wll ee that we can do the comutaton n O(log m) ace by ung eudo-random vector x, x, ntead of truly random one he eudo-random vector wll atfy (), () and () and o they wll uffce h eudo-randomne and lmted ndeendence have dee connecton, o we wll go nto the connecton a well Error-Correctng code, olynomal nterolaton and lmted-way ndeendence Conder the roblem of generatng a random m-vector x of ± o that any ubet of four coordnate mutually ndeendent, e, for any dtnct, t, u, and v n{,, m} and any a, b, c, and d n {-, +}, Pr( x = ax ; t = bx ; u = cx ; v = d) =

16 July 4, Mave Data Samlng on the fly We wll ee that uch a vector may be generated from a (truly) random ``eed of only O(log m) mutually ndeendent bt he frt fact needed for th that for any, there a fnte feld wth exactly element, each of whch can be rereented wth bt and arthmetc oeraton n the feld can be carred out n O ( ) tme each We aume th here Here, wll be the celng of log m We alo aume another bac fact about olynomal nterolaton whch ay that a olynomal of degree at mot three unquely determned by t value (over any feld ) at four ont More recely, for any 4 dtnct ont a, a, a3, a4 and any 4 (obly not dtnct) value b, b, b 3, b 4, there a unque 3 olynomal f ( x) = f0 + fx+ fx + f3x of degree at mot three o that wth all comutaton done over, we have: f ( a) = b; f( a) = b; f( a3) = b3; f( a4) = b4 Now our defnton of the eudo-random vector X wth 4-way ndeendence mle: Chooe f0, f, f, f3ndeendently and unformly at random from or =,, m, let x be 3 the leadng bt of the bt rereentaton of f () = f + f + f + f Lemma 74: he X defned above ha 4-way ndeendence 0 3 Proof: Let,t,u, and v be any 4 coordnate of x and let α, βγδ,, {,} here are exactly element of whoe leadng bt α and mlarly for β, γ, and δ So, there are exactly 4( ) 4-tule of element b, b, b3, b4 o that leadng bt of b α ; the leadng bt of b β ; the leadng bt of b3 γ and the leadng bt of b4 δ or each uch b, b, b3, b 4, there recely one olynomal f o that f ( ) = b; f( t) = b ; f( u) = b ; f( v) = b a we aw above So, the robablty that we have x 3 4 = α; x = β; x = γ; x = δ t u v recely 4( ) 4( ) total number of 4 f = = a aerted he lemma tate how to get one vector X wth 4-way ndeendence We needed r = O( / ε ) of them Alo they all mut be mutually ndeendent But th eay, jut chooe r olynomal at the outet

17 July 4, Mave Data Samlng on the fly 7 o mlement the algorthm wth low ace, tore only the olynomal n memory h requre 4 = O(log m) bt er olynomal for a total of O(log m/ ε) bt When a ymbol n the tream read, comute, r x x, x But note that x jut the leadng bt of the frt olynomal evaluated at ; th calculaton n O(log m) tme hu, we reeatedly comute the x from the ``eed, namely the coeffcent of the olynomal h dea of olynomal nterolaton alo ued n everal context Error-correctng code an mortant examle Say we wh to tranmt n bt over a channel whch may ntroduce noe One can ntroduce redundancy nto the tranmon o that ome channel error can be corrected A mle way to do th to vew the n bt to be tranmtted a coeffcent of a olynomal f ( x ) of degree n Now tranmt f evaluated at ont,, 3, n+ m At the recevng end, any n correct value wll uffce to recontruct the olynomal and the true meage So u to m error can be tolerated But even f the number of error at mot m, t not a mle matter to now whch value are corruted We do not elaborate on th here Exerce Exerce 7: Gven a tream of n otve real number a, a, an, uon eeng a, a, a ee trac of the um a = a+ a + + a and a amle aj, j drawn wth robablty roortonal to a+ t value On readng a +, wth robablty relace the current amle wth a + and a+ a+ udate a Prove that the algorthm elect an a from the tream wth the robablty of cng an element beng roortonal to t value Exerce 7: Gven a tream of ymbol,,, n, gve an algorthm that wll elect one ymbol unformly at random from the tream How much memory doe your algorthm requre? Exerce 73: How would one c a random word from a very large boo where the robablty of cng a word roortonal to the number of occurrence of the word n the boo Exerce 74: or the treamng model gve an algorthm to draw ndeendent amle each wth the robablty roortonal to t value Jutfy that your algorthm wor correctly

18 July 4, Mave Data Samlng on the fly 8 Exerce 75: Suoe we want to c a row of a matrx at random where the robablty of cng row roortonal to the um of quare of the entre of that row How would we do th n the treamng model? Do not aume that the element of the matrx are gven n row order () Do the roblem when the matrx gven n column order () Do the roblem when the matrx rereented n are notaton: t jut reented a a lt of trle (, j, a j ), n arbtrary order Exerce 7: Suoe A,B are two matrce, then how that AB A( :, ) B(,: ) n = Exerce 77: Generate two 00 by 00 matrce A and B wth nteger value between and 00 Comute the roduct AB both drectly and by amlng Plot the dfference n L norm between the reult a a functon of the number of amle Exerce 77: Show that ADD B exactly A( :, ) B(,: ) A( :, ) B(,: ) A( :, ) B(,:) = Exerce 78: Suoe a, a,, am are non-negatve real Show that the mnmum of the contrant x 0; x = attaned when x are roortonal to a a m = x ubject to Exerce 79: Show that for a -unveral hah famly Pr ( hx ( ) z) x {,, m} and z {0,,, M} = = for all M + Exerce70: Let be a rme A et of hah functon H = { h { 0,,, } { 0,,, } } { 0,,, } the Prob ( ), ( ), ( ) 3-unvreal? 3-unveral f for all u,v,w,x,y, and z n ( h x u h y v h z w) = = = equal I the et of hah functon H Exerce 70: Gve an examle of a et of hah functon that not -unveral Exerce 70: (a) What the varance of the above method of countng the number of occurrence of a wth log log n memory? (b) Can the algorthm be terated to ue only log log log n memory? What haen to the varance?

19 July 4, Mave Data Samlng on the fly 9 Exerce 7: Conder a con that come down head wth robablty a Prove that the exected number of fl before a head occur /a Exerce 7: Randomly generate a trng xx xn of 0 0 and wth robablty ½ of x beng a Count the number of one n the trng and alo etmate the number of one by the aroxmate countng algorthm Reeat the roce for =/4, /8, and / How cloe the aroxmaton? Exerce 73: Contruct an examle n whch the majorty algorthm gve a fale otve, e, tore a non-majorty element at the end Exerce 74: Contruct examle where the frequent algorthm n fact doe a badly a n the theorem, e, t ``undercount ome tem by n/(+) Exerce 75: Recall bac Stattc on how an average of ndeendent tral cut down varance and comlete the argument for relatve error ε etmate of f Exerce 7: Let be a feld Prove that for any 4 dtnct ont a, a, a3, a4 and any 4 (obly not dtnct) value b, b, b3, b4, there a unque olynomal 3 f ( x) = f0 + fx+ fx + f3x of degree at mot three o that wth all comutaton done over, we have: f ( a) = b; f( a) = b; f( a3) = b3; f( a4) = b4

Improvements on Waring s Problem

Improvements on Waring s Problem Imrovement on Warng Problem L An-Png Bejng 85, PR Chna al@nacom Abtract By a new recurve algorthm for the auxlary equaton, n th aer, we wll gve ome mrovement for Warng roblem Keyword: Warng Problem, Hardy-Lttlewood

More information

Design of Recursive Digital Filters IIR

Design of Recursive Digital Filters IIR Degn of Recurve Dgtal Flter IIR The outut from a recurve dgtal flter deend on one or more revou outut value, a well a on nut t nvolve feedbac. A recurve flter ha an nfnte mule reone (IIR). The mulve reone

More information

Improvements on Waring s Problem

Improvements on Waring s Problem Improvement on Warng Problem L An-Png Bejng, PR Chna apl@nacom Abtract By a new recurve algorthm for the auxlary equaton, n th paper, we wll gve ome mprovement for Warng problem Keyword: Warng Problem,

More information

Additional File 1 - Detailed explanation of the expression level CPD

Additional File 1 - Detailed explanation of the expression level CPD Addtonal Fle - Detaled explanaton of the expreon level CPD A mentoned n the man text, the man CPD for the uterng model cont of two ndvdual factor: P( level gen P( level gen P ( level gen 2 (.).. CPD factor

More information

Chapter 11. Supplemental Text Material. The method of steepest ascent can be derived as follows. Suppose that we have fit a firstorder

Chapter 11. Supplemental Text Material. The method of steepest ascent can be derived as follows. Suppose that we have fit a firstorder S-. The Method of Steepet cent Chapter. Supplemental Text Materal The method of teepet acent can be derved a follow. Suppoe that we have ft a frtorder model y = β + β x and we wh to ue th model to determne

More information

Algorithms for factoring

Algorithms for factoring CSA E0 235: Crytograhy Arl 9,2015 Instructor: Arta Patra Algorthms for factorng Submtted by: Jay Oza, Nranjan Sngh Introducton Factorsaton of large ntegers has been a wdely studed toc manly because of

More information

a new crytoytem baed on the dea of Shmuley and roved t rovably ecure baed on ntractablty of factorng [Mc88] After that n 999 El Bham, Dan Boneh and Om

a new crytoytem baed on the dea of Shmuley and roved t rovably ecure baed on ntractablty of factorng [Mc88] After that n 999 El Bham, Dan Boneh and Om Weak Comote Dffe-Hellman not Weaker than Factorng Koohar Azman, azman@ceharfedu Javad Mohajer mohajer@harfedu Mahmoud Salmazadeh alma@harfedu Electronc Reearch Centre, Sharf Unverty of Technology Deartment

More information

Introduction. Modeling Data. Approach. Quality of Fit. Likelihood. Probabilistic Approach

Introduction. Modeling Data. Approach. Quality of Fit. Likelihood. Probabilistic Approach Introducton Modelng Data Gven a et of obervaton, we wh to ft a mathematcal model Model deend on adutable arameter traght lne: m + c n Polnomal: a + a + a + L+ a n Choce of model deend uon roblem Aroach

More information

Specification -- Assumptions of the Simple Classical Linear Regression Model (CLRM) 1. Introduction

Specification -- Assumptions of the Simple Classical Linear Regression Model (CLRM) 1. Introduction ECONOMICS 35* -- NOTE ECON 35* -- NOTE Specfcaton -- Aumpton of the Smple Clacal Lnear Regreon Model (CLRM). Introducton CLRM tand for the Clacal Lnear Regreon Model. The CLRM alo known a the tandard lnear

More information

Harmonic oscillator approximation

Harmonic oscillator approximation armonc ocllator approxmaton armonc ocllator approxmaton Euaton to be olved We are fndng a mnmum of the functon under the retrcton where W P, P,..., P, Q, Q,..., Q P, P,..., P, Q, Q,..., Q lnwgner functon

More information

Pythagorean triples. Leen Noordzij.

Pythagorean triples. Leen Noordzij. Pythagorean trple. Leen Noordz Dr.l.noordz@leennoordz.nl www.leennoordz.me Content A Roadmap for generatng Pythagorean Trple.... Pythagorean Trple.... 3 Dcuon Concluon.... 5 A Roadmap for generatng Pythagorean

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 Properties of the OLS Coefficient Estimators. 1. Introduction

Statistical Properties of the OLS Coefficient Estimators. 1. Introduction ECOOMICS 35* -- OTE 4 ECO 35* -- OTE 4 Stattcal Properte of the OLS Coeffcent Etmator Introducton We derved n ote the OLS (Ordnary Leat Square etmator ˆβ j (j, of the regreon coeffcent βj (j, n the mple

More information

CIS 700: algorithms for Big Data

CIS 700: algorithms for Big Data CIS 700: algorthms for Bg Data Lecture 5: Dmenson Reducton Sldes at htt://grgory.us/bg-data-class.html Grgory Yaroslavtsev htt://grgory.us Today Dmensonalty reducton AMS as dmensonalty reducton Johnson-Lndenstrauss

More information

Iterative Methods for Searching Optimal Classifier Combination Function

Iterative Methods for Searching Optimal Classifier Combination Function htt://www.cub.buffalo.edu Iteratve Method for Searchng Otmal Clafer Combnaton Functon Sergey Tulyakov Chaohong Wu Venu Govndaraju Unverty at Buffalo Identfcaton ytem: Alce Bob htt://www.cub.buffalo.edu

More information

Scattering of two identical particles in the center-of. of-mass frame. (b)

Scattering of two identical particles in the center-of. of-mass frame. (b) Lecture # November 5 Scatterng of two dentcal partcle Relatvtc Quantum Mechanc: The Klen-Gordon equaton Interpretaton of the Klen-Gordon equaton The Drac equaton Drac repreentaton for the matrce α and

More information

Two Approaches to Proving. Goldbach s Conjecture

Two Approaches to Proving. Goldbach s Conjecture Two Approache to Provng Goldbach Conecture By Bernard Farley Adved By Charle Parry May 3 rd 5 A Bref Introducton to Goldbach Conecture In 74 Goldbach made h mot famou contrbuton n mathematc wth the conecture

More information

Lecture Space-Bounded Derandomization

Lecture Space-Bounded Derandomization Notes on Complexty Theory Last updated: October, 2008 Jonathan Katz Lecture Space-Bounded Derandomzaton 1 Space-Bounded Derandomzaton We now dscuss derandomzaton of space-bounded algorthms. Here non-trval

More information

Chapter 6 The Effect of the GPS Systematic Errors on Deformation Parameters

Chapter 6 The Effect of the GPS Systematic Errors on Deformation Parameters Chapter 6 The Effect of the GPS Sytematc Error on Deformaton Parameter 6.. General Beutler et al., (988) dd the frt comprehenve tudy on the GPS ytematc error. Baed on a geometrc approach and aumng a unform

More information

Small signal analysis

Small signal analysis Small gnal analy. ntroducton Let u conder the crcut hown n Fg., where the nonlnear retor decrbed by the equaton g v havng graphcal repreentaton hown n Fg.. ( G (t G v(t v Fg. Fg. a D current ource wherea

More information

18.1 Introduction and Recap

18.1 Introduction and Recap CS787: Advanced Algorthms Scrbe: Pryananda Shenoy and Shjn Kong Lecturer: Shuch Chawla Topc: Streamng Algorthmscontnued) Date: 0/26/2007 We contnue talng about streamng algorthms n ths lecture, ncludng

More information

The multivariate Gaussian probability density function for random vector X (X 1,,X ) T. diagonal term of, denoted

The multivariate Gaussian probability density function for random vector X (X 1,,X ) T. diagonal term of, denoted Appendx Proof of heorem he multvarate Gauan probablty denty functon for random vector X (X,,X ) px exp / / x x mean and varance equal to the th dagonal term of, denoted he margnal dtrbuton of X Gauan wth

More information

Figure 1 Siemens PSSE Web Site

Figure 1 Siemens PSSE Web Site Stability Analyi of Dynamic Sytem. In the lat few lecture we have een how mall ignal Lalace domain model may be contructed of the dynamic erformance of ower ytem. The tability of uch ytem i a matter of

More information

Team. Outline. Statistics and Art: Sampling, Response Error, Mixed Models, Missing Data, and Inference

Team. Outline. Statistics and Art: Sampling, Response Error, Mixed Models, Missing Data, and Inference Team Stattc and Art: Samplng, Repone Error, Mxed Model, Mng Data, and nference Ed Stanek Unverty of Maachuett- Amhert, USA 9/5/8 9/5/8 Outlne. Example: Doe-repone Model n Toxcology. ow to Predct Realzed

More information

Estimation of a proportion under a certain two-stage sampling design

Estimation of a proportion under a certain two-stage sampling design Etmaton of a roorton under a certan two-tage amng degn Danutė Kraavcatė nttute of athematc and nformatc Lthuana Stattc Lthuana Lthuana e-ma: raav@tmt Abtract The am of th aer to demontrate wth exame that

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

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

( ) 2 ( ) ( ) Problem Set 4 Suggested Solutions. Problem 1

( ) 2 ( ) ( ) Problem Set 4 Suggested Solutions. Problem 1 Problem Set 4 Suggested Solutons Problem (A) The market demand functon s the soluton to the followng utlty-maxmzaton roblem (UMP): The Lagrangean: ( x, x, x ) = + max U x, x, x x x x st.. x + x + x y x,

More information

A Simple Heuristic for Reducing the Number of Scenarios in Two-stage Stochastic Programming

A Simple Heuristic for Reducing the Number of Scenarios in Two-stage Stochastic Programming A Smle Heurtc for Reducng the Number of Scenaro n wo-tage Stochatc Programmng Ramumar aruah Marano Martn and gnaco E. Gromann * Deartment of Chemcal Engneerng Carnege Mellon Unverty Pttburgh PA 5 U.S.A.

More information

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems Numercal Analyss by Dr. Anta Pal Assstant Professor Department of Mathematcs Natonal Insttute of Technology Durgapur Durgapur-713209 emal: anta.bue@gmal.com 1 . Chapter 5 Soluton of System of Lnear Equatons

More information

Mixture of Gaussians Expectation Maximization (EM) Part 2

Mixture of Gaussians Expectation Maximization (EM) Part 2 Mture of Gaussans Eectaton Mamaton EM Part 2 Most of the sldes are due to Chrstoher Bsho BCS Summer School Eeter 2003. The rest of the sldes are based on lecture notes by A. Ng Lmtatons of K-means Hard

More information

Introduction to Interfacial Segregation. Xiaozhe Zhang 10/02/2015

Introduction to Interfacial Segregation. Xiaozhe Zhang 10/02/2015 Introducton to Interfacal Segregaton Xaozhe Zhang 10/02/2015 Interfacal egregaton Segregaton n materal refer to the enrchment of a materal conttuent at a free urface or an nternal nterface of a materal.

More information

Lecture 8: S-modular Games and Power Control

Lecture 8: S-modular Games and Power Control CDS270: Otmzaton Game and Layerng n Commncaton Networ Lectre 8: S-modlar Game and Power Control Ln Chen /22/2006 Otlne S-modlar game Sermodlar game Sbmodlar game Power control Power control va rcng A general

More information

Pattern Classification

Pattern Classification attern Classfcaton All materals n these sldes were taken from attern Classfcaton nd ed by R. O. Duda,. E. Hart and D. G. Stork, John Wley & Sons, 000 wth the ermsson of the authors and the ublsher Chater

More information

EECE 301 Signals & Systems Prof. Mark Fowler

EECE 301 Signals & Systems Prof. Mark Fowler -T Sytem: Ung Bode Plot EEE 30 Sgnal & Sytem Pro. Mark Fowler Note Set #37 /3 Bode Plot Idea an Help Vualze What rcut Do Lowpa Flter Break Pont = / H ( ) j /3 Hghpa Flter c = / L Bandpa Flter n nn ( a)

More information

Variable Structure Control ~ Basics

Variable Structure Control ~ Basics Varable Structure Control ~ Bac Harry G. Kwatny Department of Mechancal Engneerng & Mechanc Drexel Unverty Outlne A prelmnary example VS ytem, ldng mode, reachng Bac of dcontnuou ytem Example: underea

More information

Expected Value and Variance

Expected Value and Variance MATH 38 Expected Value and Varance Dr. Neal, WKU We now shall dscuss how to fnd the average and standard devaton of a random varable X. Expected Value Defnton. The expected value (or average value, or

More information

Chapter 8: Fast Convolution. Keshab K. Parhi

Chapter 8: Fast Convolution. Keshab K. Parhi Cater 8: Fat Convoluton Keab K. Par Cater 8 Fat Convoluton Introducton Cook-Too Algort and Modfed Cook-Too Algort Wnograd Algort and Modfed Wnograd Algort Iterated Convoluton Cyclc Convoluton Degn of Fat

More information

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could

More information

A New Virtual Indexing Method for Measuring Host Connection Degrees

A New Virtual Indexing Method for Measuring Host Connection Degrees A New Vrtual Indexng Method for Meaurng ot Connecton Degree Pnghu Wang, Xaohong Guan,, Webo Gong 3, and Don Towley 4 SKLMS Lab and MOE KLINNS Lab, X an Jaotong Unverty, X an, Chna Department of Automaton

More information

PARTIAL QUOTIENTS AND DISTRIBUTION OF SEQUENCES. Department of Mathematics University of California Riverside, CA

PARTIAL QUOTIENTS AND DISTRIBUTION OF SEQUENCES. Department of Mathematics University of California Riverside, CA PARTIAL QUOTIETS AD DISTRIBUTIO OF SEQUECES 1 Me-Chu Chang Deartment of Mathematcs Unversty of Calforna Rversde, CA 92521 mcc@math.ucr.edu Abstract. In ths aer we establsh average bounds on the artal quotents

More information

Fall 2012 Analysis of Experimental Measurements B. Eisenstein/rev. S. Errede

Fall 2012 Analysis of Experimental Measurements B. Eisenstein/rev. S. Errede Fall 0 Analyss of Expermental easurements B. Esensten/rev. S. Errede We now reformulate the lnear Least Squares ethod n more general terms, sutable for (eventually extendng to the non-lnear case, and also

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

2-Adic Complexity of a Sequence Obtained from a Periodic Binary Sequence by Either Inserting or Deleting k Symbols within One Period

2-Adic Complexity of a Sequence Obtained from a Periodic Binary Sequence by Either Inserting or Deleting k Symbols within One Period -Adc Comlexty of a Seuence Obtaned from a Perodc Bnary Seuence by Ether Insertng or Deletng Symbols wthn One Perod ZHAO Lu, WEN Qao-yan (State Key Laboratory of Networng and Swtchng echnology, Bejng Unversty

More information

Outline and Reading. Dynamic Programming. Dynamic Programming revealed. Computing Fibonacci. The General Dynamic Programming Technique

Outline and Reading. Dynamic Programming. Dynamic Programming revealed. Computing Fibonacci. The General Dynamic Programming Technique Outlne and Readng Dynamc Programmng The General Technque ( 5.3.2) -1 Knapsac Problem ( 5.3.3) Matrx Chan-Product ( 5.3.1) Dynamc Programmng verson 1.4 1 Dynamc Programmng verson 1.4 2 Dynamc Programmng

More information

AP Statistics Ch 3 Examining Relationships

AP Statistics Ch 3 Examining Relationships Introducton To tud relatonhp between varable, we mut meaure the varable on the ame group of ndvdual. If we thnk a varable ma eplan or even caue change n another varable, then the eplanator varable and

More information

APPENDIX A Some Linear Algebra

APPENDIX A Some Linear Algebra APPENDIX A Some Lnear Algebra The collecton of m, n matrces A.1 Matrces a 1,1,..., a 1,n A = a m,1,..., a m,n wth real elements a,j s denoted by R m,n. If n = 1 then A s called a column vector. Smlarly,

More information

Eigenvalues of Random Graphs

Eigenvalues of Random Graphs Spectral Graph Theory Lecture 2 Egenvalues of Random Graphs Danel A. Spelman November 4, 202 2. Introducton In ths lecture, we consder a random graph on n vertces n whch each edge s chosen to be n the

More information

A General Class of Selection Procedures and Modified Murthy Estimator

A General Class of Selection Procedures and Modified Murthy Estimator ISS 684-8403 Journal of Statstcs Volume 4, 007,. 3-9 A General Class of Selecton Procedures and Modfed Murthy Estmator Abdul Bast and Muhammad Qasar Shahbaz Abstract A new selecton rocedure for unequal

More information

More Ramsey Pricing. (firm willing to produce) Notation: 1 of 6

More Ramsey Pricing. (firm willing to produce) Notation: 1 of 6 EP 7426, Problem Set 3 Len abrera More Ramey Prng regulated frm rodue two rodut, and, and ell them dretly to fnal utomer. onumer demand for thee erve known erfetly, a are the frm' roduton ot. Produt rodued

More information

Valores propios de la matriz de truncamiento asociados al operador de transición de la máquina sumadora en la base 2

Valores propios de la matriz de truncamiento asociados al operador de transición de la máquina sumadora en la base 2 Journal homeage: h ://revtauntruedue/ndexh/ssmm/ndex SELECCIONES MATEMÁTICAS Unverdad Naconal de Trujllo ISSN: 2411-1783 (Onlne) Vol 04(01): 59-69 (2017) Valore roo de la matrz de truncamento aocado al

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

Polynomials. 1 More properties of polynomials

Polynomials. 1 More properties of polynomials Polynomals 1 More propertes of polynomals Recall that, for R a commutatve rng wth unty (as wth all rngs n ths course unless otherwse noted), we defne R[x] to be the set of expressons n =0 a x, where a

More information

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0 MODULE 2 Topcs: Lnear ndependence, bass and dmenson We have seen that f n a set of vectors one vector s a lnear combnaton of the remanng vectors n the set then the span of the set s unchanged f that vector

More information

Linear Approximation with Regularization and Moving Least Squares

Linear Approximation with Regularization and Moving Least Squares Lnear Approxmaton wth Regularzaton and Movng Least Squares Igor Grešovn May 007 Revson 4.6 (Revson : March 004). 5 4 3 0.5 3 3.5 4 Contents: Lnear Fttng...4. Weghted Least Squares n Functon Approxmaton...

More information

CHAPTER 9 LINEAR MOMENTUM, IMPULSE AND COLLISIONS

CHAPTER 9 LINEAR MOMENTUM, IMPULSE AND COLLISIONS CHAPTER 9 LINEAR MOMENTUM, IMPULSE AND COLLISIONS 103 Phy 1 9.1 Lnear Momentum The prncple o energy conervaton can be ued to olve problem that are harder to olve jut ung Newton law. It ued to decrbe moton

More information

GenCB 511 Coarse Notes Population Genetics NONRANDOM MATING & GENETIC DRIFT

GenCB 511 Coarse Notes Population Genetics NONRANDOM MATING & GENETIC DRIFT NONRANDOM MATING & GENETIC DRIFT NONRANDOM MATING/INBREEDING READING: Hartl & Clark,. 111-159 Wll dstngush two tyes of nonrandom matng: (1) Assortatve matng: matng between ndvduals wth smlar henotyes or

More information

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture # 15 Scribe: Jieming Mao April 1, 2013

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture # 15 Scribe: Jieming Mao April 1, 2013 COS 511: heoretcal Machne Learnng Lecturer: Rob Schapre Lecture # 15 Scrbe: Jemng Mao Aprl 1, 013 1 Bref revew 1.1 Learnng wth expert advce Last tme, we started to talk about learnng wth expert advce.

More information

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur Analyss of Varance and Desgn of Exerments-I MODULE III LECTURE - 2 EXPERIMENTAL DESIGN MODELS Dr. Shalabh Deartment of Mathematcs and Statstcs Indan Insttute of Technology Kanur 2 We consder the models

More information

BULLETIN OF MATHEMATICS AND STATISTICS RESEARCH

BULLETIN OF MATHEMATICS AND STATISTICS RESEARCH Vol.6.Iue..8 (July-Set.) KY PUBLICATIONS BULLETIN OF MATHEMATICS AND STATISTICS RESEARCH A Peer Revewed Internatonal Reearch Journal htt:www.bor.co Eal:edtorbor@gal.co RESEARCH ARTICLE A GENERALISED NEGATIVE

More information

Linear Feature Engineering 11

Linear Feature Engineering 11 Lnear Feature Engneerng 11 2 Least-Squares 2.1 Smple least-squares Consder the followng dataset. We have a bunch of nputs x and correspondng outputs y. The partcular values n ths dataset are x y 0.23 0.19

More information

SMARANDACHE-GALOIS FIELDS

SMARANDACHE-GALOIS FIELDS SMARANDACHE-GALOIS FIELDS W. B. Vasantha Kandasamy Deartment of Mathematcs Indan Insttute of Technology, Madras Chenna - 600 036, Inda. E-mal: vasantak@md3.vsnl.net.n Abstract: In ths aer we study the

More information

Matrix Approximation via Sampling, Subspace Embedding. 1 Solving Linear Systems Using SVD

Matrix Approximation via Sampling, Subspace Embedding. 1 Solving Linear Systems Using SVD Matrx Approxmaton va Samplng, Subspace Embeddng Lecturer: Anup Rao Scrbe: Rashth Sharma, Peng Zhang 0/01/016 1 Solvng Lnear Systems Usng SVD Two applcatons of SVD have been covered so far. Today we loo

More information

Power-sum problem, Bernoulli Numbers and Bernoulli Polynomials.

Power-sum problem, Bernoulli Numbers and Bernoulli Polynomials. Power-sum roblem, Bernoull Numbers and Bernoull Polynomals. Arady M. Alt Defnton 1 Power um Problem Fnd the sum n : 1... n where, n N or, usng sum notaton, n n n closed form. Recurrence for n Exercse Usng

More information

On the U-WPF Acts over Monoids

On the U-WPF Acts over Monoids Journal of cence, Ilamc Republc of Iran 8(4): 33-38 (007) Unverty of Tehran, IN 06-04 http://jcence.ut.ac.r On the U-WPF ct over Monod. Golchn * and H. Mohammadzadeh Department of Mathematc, Unverty of

More information

Complete Variance Decomposition Methods. Cédric J. Sallaberry

Complete Variance Decomposition Methods. Cédric J. Sallaberry Comlete Varance Decomoston Methods Cédrc J. allaberry enstvty Analyss y y [,,, ] [ y, y,, ] y ny s a vector o uncertan nuts s a vector o results s a comle uncton successon o derent codes, systems o de,

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

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

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur

Dr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur Analyss of Varance and Desgn of Exerments-I MODULE II LECTURE - GENERAL LINEAR HYPOTHESIS AND ANALYSIS OF VARIANCE Dr. Shalabh Deartment of Mathematcs and Statstcs Indan Insttute of Technology Kanur 3.

More information

UNIT 7. THE FUNDAMENTAL EQUATIONS OF HYPERSURFACE THEORY

UNIT 7. THE FUNDAMENTAL EQUATIONS OF HYPERSURFACE THEORY UNIT 7. THE FUNDAMENTAL EQUATIONS OF HYPERSURFACE THEORY ================================================================================================================================================================================================================================================

More information

+, where 0 x N - n. k k

+, where 0 x N - n. k k CO 745, Mdterm Len Cabrera. A multle choce eam has questons, each of whch has ossble answers. A student nows the correct answer to n of these questons. For the remanng - n questons, he checs the answers

More information

Generalized Linear Methods

Generalized Linear Methods Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set

More information

1 Matrix representations of canonical matrices

1 Matrix representations of canonical matrices 1 Matrx representatons of canoncal matrces 2-d rotaton around the orgn: ( ) cos θ sn θ R 0 = sn θ cos θ 3-d rotaton around the x-axs: R x = 1 0 0 0 cos θ sn θ 0 sn θ cos θ 3-d rotaton around the y-axs:

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

Problem #1. Known: All required parameters. Schematic: Find: Depth of freezing as function of time. Strategy:

Problem #1. Known: All required parameters. Schematic: Find: Depth of freezing as function of time. Strategy: BEE 3500 013 Prelm Soluton Problem #1 Known: All requred parameter. Schematc: Fnd: Depth of freezng a functon of tme. Strategy: In thee mplfed analy for freezng tme, a wa done n cla for a lab geometry,

More information

Confidence intervals for weighted polynomial calibrations

Confidence intervals for weighted polynomial calibrations Confdence ntervals for weghted olynomal calbratons Sergey Maltsev, Amersand Ltd., Moscow, Russa; ur Kalambet, Amersand Internatonal, Inc., Beachwood, OH e-mal: kalambet@amersand-ntl.com htt://www.chromandsec.com

More information

Hidden Markov Model Cheat Sheet

Hidden Markov Model Cheat Sheet Hdden Markov Model Cheat Sheet (GIT ID: dc2f391536d67ed5847290d5250d4baae103487e) Ths document s a cheat sheet on Hdden Markov Models (HMMs). It resembles lecture notes, excet that t cuts to the chase

More information

Foundations of Arithmetic

Foundations of Arithmetic Foundatons of Arthmetc Notaton We shall denote the sum and product of numbers n the usual notaton as a 2 + a 2 + a 3 + + a = a, a 1 a 2 a 3 a = a The notaton a b means a dvdes b,.e. ac = b where c s an

More information

COS 521: Advanced Algorithms Game Theory and Linear Programming

COS 521: Advanced Algorithms Game Theory and Linear Programming COS 521: Advanced Algorthms Game Theory and Lnear Programmng Moses Charkar February 27, 2013 In these notes, we ntroduce some basc concepts n game theory and lnear programmng (LP). We show a connecton

More information

6. Hamilton s Equations

6. Hamilton s Equations 6. Hamlton s Equatons Mchael Fowler A Dynamcal System s Path n Confguraton Sace and n State Sace The story so far: For a mechancal system wth n degrees of freedom, the satal confguraton at some nstant

More information

Non-Ideality Through Fugacity and Activity

Non-Ideality Through Fugacity and Activity Non-Idealty Through Fugacty and Actvty S. Patel Deartment of Chemstry and Bochemstry, Unversty of Delaware, Newark, Delaware 19716, USA Corresondng author. E-mal: saatel@udel.edu 1 I. FUGACITY In ths dscusson,

More information

Independent Component Analysis

Independent Component Analysis Indeendent Comonent Analyss Mture Data Data that are mngled from multle sources May not now how many sources May not now the mng mechansm Good Reresentaton Uncorrelated, nformaton-bearng comonents PCA

More information

Departure Process from a M/M/m/ Queue

Departure Process from a M/M/m/ Queue Dearture rocess fro a M/M// Queue Q - (-) Q Q3 Q4 (-) Knowledge of the nature of the dearture rocess fro a queue would be useful as we can then use t to analyze sle cases of queueng networs as shown. The

More information

66 Lecture 3 Random Search Tree i unique. Lemma 3. Let X and Y be totally ordered et, and let be a function aigning a ditinct riority in Y to each ele

66 Lecture 3 Random Search Tree i unique. Lemma 3. Let X and Y be totally ordered et, and let be a function aigning a ditinct riority in Y to each ele Lecture 3 Random Search Tree In thi lecture we will decribe a very imle robabilitic data tructure that allow inert, delete, and memberhi tet (among other oeration) in exected logarithmic time. Thee reult

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

Société de Calcul Mathématique SA

Société de Calcul Mathématique SA Socété de Calcul Mathématque SA Outls d'ade à la décson Tools for decson help Probablstc Studes: Normalzng the Hstograms Bernard Beauzamy December, 202 I. General constructon of the hstogram Any probablstc

More information

9 Characteristic classes

9 Characteristic classes THEODORE VORONOV DIFFERENTIAL GEOMETRY. Sprng 2009 [under constructon] 9 Characterstc classes 9.1 The frst Chern class of a lne bundle Consder a complex vector bundle E B of rank p. We shall construct

More information

Not at Steady State! Yes! Only if reactions occur! Yes! Ideal Gas, change in temperature or pressure. Yes! Class 15. Is the following possible?

Not at Steady State! Yes! Only if reactions occur! Yes! Ideal Gas, change in temperature or pressure. Yes! Class 15. Is the following possible? Chapter 5-6 (where we are gong) Ideal gae and lqud (today) Dente Partal preure Non-deal gae (next tme) Eqn. of tate Reduced preure and temperature Compreblty chart (z) Vapor-lqud ytem (Ch. 6) Vapor preure

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

A A Non-Constructible Equilibrium 1

A A Non-Constructible Equilibrium 1 A A Non-Contructbe Equbrum 1 The eampe depct a eparabe contet wth three payer and one prze of common vaue 1 (o v ( ) =1 c ( )). I contruct an equbrum (C, G, G) of the contet, n whch payer 1 bet-repone

More information

A Result on a Cyclic Polynomials

A Result on a Cyclic Polynomials Gen. Math. Note, Vol. 6, No., Feruary 05, pp. 59-65 ISSN 9-78 Copyrght ICSRS Pulcaton, 05.-cr.org Avalale free onlne at http:.geman.n A Reult on a Cyclc Polynomal S.A. Wahd Department of Mathematc & Stattc

More information

No! Yes! Only if reactions occur! Yes! Ideal Gas, change in temperature or pressure. Survey Results. Class 15. Is the following possible?

No! Yes! Only if reactions occur! Yes! Ideal Gas, change in temperature or pressure. Survey Results. Class 15. Is the following possible? Survey Reult Chapter 5-6 (where we are gong) % of Student 45% 40% 35% 30% 25% 20% 15% 10% 5% 0% Hour Spent on ChE 273 1-2 3-4 5-6 7-8 9-10 11+ Hour/Week 2008 2009 2010 2011 2012 2013 2014 2015 2017 F17

More information

HW #3. 1. Spin Matrices. HW3-soln-improved.nb 1. We use the spin operators represented in the bases where S z is diagonal:

HW #3. 1. Spin Matrices. HW3-soln-improved.nb 1. We use the spin operators represented in the bases where S z is diagonal: HW3-oln-mproved.nb HW #3. Spn Matrce We ue the pn operator repreented n the bae where S dagonal: S x = 880,

More information

An application of generalized Tsalli s-havrda-charvat entropy in coding theory through a generalization of Kraft inequality

An application of generalized Tsalli s-havrda-charvat entropy in coding theory through a generalization of Kraft inequality Internatonal Journal of Statstcs and Aled Mathematcs 206; (4): 0-05 ISS: 2456-452 Maths 206; (4): 0-05 206 Stats & Maths wwwmathsjournalcom Receved: 0-09-206 Acceted: 02-0-206 Maharsh Markendeshwar Unversty,

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

find (x): given element x, return the canonical element of the set containing x;

find (x): given element x, return the canonical element of the set containing x; COS 43 Sprng, 009 Dsjont Set Unon Problem: Mantan a collecton of dsjont sets. Two operatons: fnd the set contanng a gven element; unte two sets nto one (destructvely). Approach: Canoncal element method:

More information

Introduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law:

Introduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law: CE304, Sprng 2004 Lecture 4 Introducton to Vapor/Lqud Equlbrum, part 2 Raoult s Law: The smplest model that allows us do VLE calculatons s obtaned when we assume that the vapor phase s an deal gas, and

More information

Digital PI Controller Equations

Digital PI Controller Equations Ver. 4, 9 th March 7 Dgtal PI Controller Equatons Probably the most common tye of controller n ndustral ower electroncs s the PI (Proortonal - Integral) controller. In feld orented motor control, PI controllers

More information

Lecture 10 Support Vector Machines II

Lecture 10 Support Vector Machines II Lecture 10 Support Vector Machnes II 22 February 2016 Taylor B. Arnold Yale Statstcs STAT 365/665 1/28 Notes: Problem 3 s posted and due ths upcomng Frday There was an early bug n the fake-test data; fxed

More information

Estimation: Part 2. Chapter GREG estimation

Estimation: Part 2. Chapter GREG estimation Chapter 9 Estmaton: Part 2 9. GREG estmaton In Chapter 8, we have seen that the regresson estmator s an effcent estmator when there s a lnear relatonshp between y and x. In ths chapter, we generalzed the

More information