Reasoning with Bayesian Networks

Size: px
Start display at page:

Download "Reasoning with Bayesian Networks"

Transcription

1 Complexity of Probbilistic Inference Compiling Byesin Networks Resoning with Byesin Networks Lecture 5: Complexity of Probbilistic Inference, Compiling Byesin Networks Jinbo Hung NICTA nd ANU Jinbo Hung Resoning with Byesin Networks

2 Complexity of Probbilistic Inference Compiling Byesin Networks Decision Versions of Queries Complexity Clsses Hrdness nd Membership D-MAR / D-PR: Pr(q e) > p? D-MPE: In there x such tht Pr(x, e) > p? D-MAP: Given vribles Q X, in there q such tht Pr(q, e) > p? Jinbo Hung Resoning with Byesin Networks

3 Complexity of Probbilistic Inference Compiling Byesin Networks Decision Versions of Queries Complexity Clsses Hrdness nd Membership D-MAR / D-PR: Pr(q e) > p? D-MPE: In there x such tht Pr(x, e) > p? D-MAP: Given vribles Q X, in there q such tht Pr(q, e) > p? D-MPE is NP-complete D-MAR / D-PR is PP-complete D-MAP is NP PP -complete Jinbo Hung Resoning with Byesin Networks

4 Complexity of Probbilistic Inference Compiling Byesin Networks NP (Nondeterministic Polynomil) Complexity Clsses Hrdness nd Membership Solvble by nondeterministic Turing mchine in polynomil time Alterntive definition: YES nswers hve proofs tht cn be verified in polynomil time Problem Q is NP-complete if every problem in NP cn be reduced to Q in polynomil time Intuitively, hrdest problems in NP; no known (deterministic) polynomil time lgorithms Jinbo Hung Resoning with Byesin Networks

5 Complexity of Probbilistic Inference Compiling Byesin Networks SAT: An NP-complete Problem Complexity Clsses Hrdness nd Membership (X 1 X 2 X 3 ) ((X 3 X 4 ) X 5 ) Is there ssignment tht stisfies Boolen formul? SAT NP: Guess ssignment nd return YES if stisfying, in polynomil time NP-complete: Reduce computtion of nondeterministic Turing mchine to SAT Jinbo Hung Resoning with Byesin Networks

6 Complexity of Probbilistic Inference Compiling Byesin Networks PP (Probbilistic Polynomil) Complexity Clsses Hrdness nd Membership Solvble in polynomil time by nondeterministic Turing mchine tht ccepts when mjority (> hlf) of pths ccept Alterntive definition: Solvble in polynomil time with correctness probbility > 1/2 on YES instnces nd 1/2 on NO instnces NP PP SAT PP: Guess ssignment, if stisfying return YES, else return YES with probbility 1/2 Jinbo Hung Resoning with Byesin Networks

7 Complexity of Probbilistic Inference Compiling Byesin Networks MAJSAT: A PP-complete Problem Complexity Clsses Hrdness nd Membership (X 1 X 2 X 3 ) ((X 3 X 4 ) X 5 ) Are mjority of ssignments stisfying? MAJSAT PP: Why? PP-complete: Estblish one-to-one correspondence between computtion pths of nondeterministic Turing mchine nd stisfying ssignments of Boolen formul Jinbo Hung Resoning with Byesin Networks

8 NP PP Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Solvble in nondeterministic polynomil time given PP orcle E-MAJSAT (NP PP -complete): Is there ssignment to X 1,..., X k such tht mjority of its completions (to full ssignments) stisfy Boolen formul? Jinbo Hung Resoning with Byesin Networks

9 Complexity of Probbilistic Inference Compiling Byesin Networks Boolen Formul to Byesin Network Complexity Clsses Hrdness nd Membership (X 1 X 2 X 3 ) ((X 3 X 4 ) X 5 ) X1 X 2 X 3 X X 4 5 S Turn Boolen formul into Byesin network with deterministic CPTs (0/1 probbilities) Jinbo Hung Resoning with Byesin Networks

10 Complexity of Probbilistic Inference Compiling Byesin Networks Boolen Formul to Byesin Network Complexity Clsses Hrdness nd Membership (X 1 X 2 X 3 ) ((X 3 X 4 ) X 5 ) X1 X 2 X 3 X X 4 5 S Pr(x 1,..., x n, S α = true) = 1/2 n if x 1,..., x n stisfying, 0 otherwise Jinbo Hung Resoning with Byesin Networks

11 Complexity of Probbilistic Inference Compiling Byesin Networks Reducing SAT to D-MPE Complexity Clsses Hrdness nd Membership ssignment x 1,..., x n stisfying formul α iff vrible instntition y of network N α such tht Pr(y, S α = true) > 0 Jinbo Hung Resoning with Byesin Networks

12 Complexity of Probbilistic Inference Compiling Byesin Networks Reducing MAJSAT to D-PR/D-MAR Complexity Clsses Hrdness nd Membership Mjority of ssignments x 1,..., x n stisfy formul α iff Pr(S α = true) > 1/2 Jinbo Hung Resoning with Byesin Networks

13 Complexity of Probbilistic Inference Compiling Byesin Networks Reducing E-MAJSAT to D-MAP Complexity Clsses Hrdness nd Membership ssignment x 1,..., x k such tht mjority of ssignments x k+1,..., x n stisfy formul α iff MAP instntition x 1,..., x k such tht Pr(x 1,..., x k, S α = true) > 1/2 k+1 Jinbo Hung Resoning with Byesin Networks

14 Hrdness Summry Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership D-MPE is NP-hrd D-MAR / D-PR is PP-hrd D-MAP is NP PP -hrd Jinbo Hung Resoning with Byesin Networks

15 D-MPE NP Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership In there x such tht Pr(x, e) > p? Guess network instntition x (liner time) Compute Pr(x, e) (liner time, by chin rule) Return YES iff Pr(x, e) > p Jinbo Hung Resoning with Byesin Networks

16 Complexity of Probbilistic Inference Compiling Byesin Networks D-MAR/D-PR PP Complexity Clsses Hrdness nd Membership Pr(q e) > p? Smple network instntition x (liner time) Instntite vribles X one t time, prents before child Smple vlue ccording to probbilities in CPT Return YES with probbility (p) = min(1, 1/2p) if x eq b(p) = mx(0, (1 2p)/(2 2p)) if x e, x q 1/2 if x e Pr(YES) > 1/2 exctly when Pr(q e) > p Jinbo Hung Resoning with Byesin Networks

17 D-MAP NP PP Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Given vribles Q X, in there q such tht Pr(q, e) > p? Guess instntition q (liner time) Check if Pr(q, e) > p ( D-PR problem) using PP orcle Return YES iff Pr(q, e) > p Jinbo Hung Resoning with Byesin Networks

18 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Summry Complexity Clsses Hrdness nd Membership D-MPE is NP-complete D-MAR / D-PR is PP-complete D-MAP is NP PP -complete Jinbo Hung Resoning with Byesin Networks

19 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership D-MAP on Polytrees (with bounded # of prents / node) Given vribles Q X, in there q such tht Pr(q, e) > p? NP Guess instntition q (liner time) Check if Pr(q, e) > p by vrible elimintion (polynomil time due to bounded treewidth) Return YES iff Pr(q, e) > p NP-hrd by reduction from MAXSAT Jinbo Hung Resoning with Byesin Networks

20 Complexity of Probbilistic Inference Compiling Byesin Networks MAXSAT (decision version) Complexity Clsses Hrdness nd Membership Given cluses α 1,..., α m over vribles X 1,..., X n, is there ssignment x 1,..., x n stisfying more thn k cluses? NP: Guess ssignment, check # of stisfied cluses, return YES if > k NP-hrd: Contins SAT s specil cse (k = m 1) Jinbo Hung Resoning with Byesin Networks

21 Complexity of Probbilistic Inference Compiling Byesin Networks Reducing MAXSAT to D-MAP Complexity Clsses Hrdness nd Membership X 1 X 2 X 3 X n S 0 S 1 S 2 S 3 S n S 0 : {1,..., m}, uniform priors on S 0, X 1,..., X n For j > 0, S j = 0 if one of x 1,..., x j stisfies α i, where i = S 0 ; S j = i otherwise Jinbo Hung Resoning with Byesin Networks

22 Complexity of Probbilistic Inference Compiling Byesin Networks Reducing MAXSAT to D-MAP Complexity Clsses Hrdness nd Membership X 1 X 2 X 3 X n S 0 S 1 S 2 S 3 S n ssignment x 1,..., x n stisfying more thn k cluses iff instntition x 1,..., x n such tht Pr(x 1,..., x n, S n = 0) > k/(m2 n ) Jinbo Hung Resoning with Byesin Networks

23 Complexity of Probbilistic Inference Compiling Byesin Networks Weighted Model Counting Complexity Clsses Hrdness nd Membership of weights of models of Boolen formul Weight for literl: A (.3), A (.7), B (1), B (1) Weight of model: w(ab) =.7 1 =.7 Weight of formul: w(a B) = w(ab) + w(ab) + w(ab) = = 1.3 Jinbo Hung Resoning with Byesin Networks

24 Complexity of Probbilistic Inference Compiling Byesin Networks Weighted Model Counting Complexity Clsses Hrdness nd Membership of weights of models of Boolen formul Weight for literl: A (.3), A (.7), B (1), B (1) Weight of model: w(ab) =.7 1 =.7 Weight of formul: w(a B) = w(ab) + w(ab) + w(ab) = = 1.3 Use weighted model counters to compute Pr(e) Encode Byesin network into Boolen formul with weights Jinbo Hung Resoning with Byesin Networks

25 First Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Indictor vribles/cluses I 1 I 2 I b1 I b2 I c1 I c2 I 1 I 2 I b1 I b2 I c1 I c2 Jinbo Hung Resoning with Byesin Networks

26 First Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Prmeter vribles/cluses I 1 P 1 I 2 P 2 I 1 I b1 P b1 1 I 1 I b2 P b2 1 I 2 I b1 P b1 2 I 2 I b2 P b2 2 Jinbo Hung I 1 I c1 P c1 1 I 1 I c2 P c2 1 I 2 I c1 P c1 2 I 2 I c2 P c2 2 Resoning with Byesin Networks

27 First Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Given e = e 1,..., e k Pr(e) = w( N I e1... I ek ) where w(p x u ) = x u, w(i x ) = w( I x ) = w( P x u ) = 1 Jinbo Hung Resoning with Byesin Networks

28 First Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Pr( 1 c 2 ) = w( N I 1 I c2 ) = w(ω 1 ) + w(ω 3 ) = =.09 Jinbo Hung Resoning with Byesin Networks

29 Second Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Indictor vribles/cluses (s 1st encoding) I 1 I 2 I 3 I 1 I 2 I 1 I 3 I 2 I 3 I b1 I b2 I b1 I b2 Jinbo Hung Resoning with Byesin Networks

30 Second Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Prmeter vribles/cluses (fewer thn 1st encoding) Q 1 I 1 Q 1 Q 2 I 2 Q 1 Q 2 I 3 I 1 Q b1 1 I b1 I 1 Q b1 1 I b2 I 2 Q b1 2 I b1 I 2 Q b1 2 I b2 I 3 Q b1 3 I b1 I 3 Q b1 3 I b2 Jinbo Hung Resoning with Byesin Networks

31 Second Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Multiple models for sme instntition of I 1, I 2, I 3, I b1, I b2 Eight Models for I 1 I 2 I 3 I b1 I b2 Q 1 Q 2 Q b1 2 Q 3, Q b1 1, Q b1 3 unconstrined Given pproprite weights, Pr(x) = model x w(model) Jinbo Hung Resoning with Byesin Networks

32 Second Encoding Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Given e = e 1,..., e k Pr(e) = w( N I e1... I ek ) where w(q x u ) = x u 1 x <x x u, w( Q x u ) = 1 w(q x u ), w(i x ) = w( I x ) = 1 Jinbo Hung Resoning with Byesin Networks

33 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership (X Y Z) 3, ( X ) 10.1, (Y ).5, (Z) 2.5 Cluses hve weights W-MAXSAT: Find ssignment mximizing sum of weights of stisfied cluses Alterntively: Minimize penlty sum of weights of violted cluses Jinbo Hung Resoning with Byesin Networks

34 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Indictor cluses, ll hving weight W (some big number) I 1 I 2 I 3 I 1 I 2 I 1 I 3 I 2 I 3 I b1 I b2 I b1 I b2 These hrd cluses ensure ssignment corresponds to network instntition Jinbo Hung Resoning with Byesin Networks

35 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Prmeter cluses log.3 ( I 1 ) log.5 ( I 2 ) log.2 ( I 3 ) log.2 ( I 1 I b1 ) log.8 ( I 1 I b2 ) ( I 2 I b1 ) log 1 ( I 2 I b2 ) W log.6 ( I 3 I b1 ) log.4 ( I 3 I b2 ) Jinbo Hung Resoning with Byesin Networks

36 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership I 1 I 2 I 3 I b1 I b2 hs penlty log.3 log.8 = log(.3.8) = Pr( 1, b 2 ) Prmeter cluses log.3 ( I 1 ) log.5 ( I 2 ) log.2 ( I 3 ) log.2 ( I 1 I b1 ) log.8 ( I 1 I b2 ) ( I 2 I b1 ) log 1 ( I 2 I b2 ) W log.6 ( I 3 I b1 ) log.4 ( I 3 I b2 ) Jinbo Hung Resoning with Byesin Networks

37 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership I 1 I 2 I 3 I b1 I b2 hs penlty log.3 log.8 = log(.3.8) = Pr( 1, b 2 ) Any ssignment Γ (stisfying hrd cluses) violtes exctly one cluse from ech CPT Pn(Γ) = log x u x u x = log x u x x u = log Pr(x) Min penlty mx Pr(x) Jinbo Hung Resoning with Byesin Networks

38 Complexity of Probbilistic Inference Compiling Byesin Networks Complexity Clsses Hrdness nd Membership Complexity of Probbilistic Inference: Summry D-MPE NP-complete, D-MAR / D-PR PP-complete, D-MAP NP PP -complete D-MAP on polytrees NP-complete Two encodings for reducing Pr(e) to weighted model counting Reducing MPE to weighted MAXSAT Jinbo Hung Resoning with Byesin Networks

39 Arithmetic Circuits Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Jinbo Hung Resoning with Byesin Networks

40 Arithmetic Circuits Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion + λ λ b λb b b λ b b c λc c c λc c Jinbo Hung Resoning with Byesin Networks

41 Arithmetic Circuits Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion.1 + λ λ b λb b b λ b b c λc c c λc c Jinbo Hung Resoning with Byesin Networks

42 Complexity of Probbilistic Inference Compiling Byesin Networks Network Polynomil Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion A B Pr(A, B) b b b b b b b b Jinbo Hung Resoning with Byesin Networks

43 Complexity of Probbilistic Inference Compiling Byesin Networks Network Polynomil Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion A B Pr(A, B) b λ λ b b b λ λ b b b λ λ b b b λ λ b b Jinbo Hung Resoning with Byesin Networks

44 Complexity of Probbilistic Inference Compiling Byesin Networks Network Polynomil Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion A B Pr(A, B) b λ λ b b b λ λ b b b λ λ b b b λ λ b b f = λ λ b b + λ λ b b + λ λ b b + λ λ b b Jinbo Hung Resoning with Byesin Networks

45 Complexity of Probbilistic Inference Compiling Byesin Networks Network Polynomil Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion A B Pr(A, B) b λ λ b b b λ λ b b b λ λ b b b λ λ b b f = λ λ b b + λ λ b b + λ λ b b + λ λ b b f (e = ) = (0)(1) b (0)(1) b + (1)(1) b + (1)(1) b = b + b = Pr(e) Jinbo Hung Resoning with Byesin Networks

46 Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Network Polynomil s Arithmetic Circuit f = λ λ b λ c b c + λ λ b λ c b c λ λ b λ c b c + λ λ b λb b b λ b b c λc c c λc c Jinbo Hung Resoning with Byesin Networks

47 Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Network Polynomil s Arithmetic Circuit f = λ λ b λ c b c + λ λ b λ c b c λ λ b λ c b c + λ λ b λb b b λ b b c λc c c λc c f hs exponentil size, circuit my not Jinbo Hung Resoning with Byesin Networks

48 Prtil Derivtives Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Pr(e = c) = λ λ b λb b b λ b b c λc c c λc c Jinbo Hung Resoning with Byesin Networks

49 Prtil Derivtives Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Pr(e = c) = f is liner in every vrible f λ (e) =.4 λ b λb b b λ b b c λc c c λc c λ f will increse by.4 if λ chnges from 0 to 1 (e chnges from c to c) Pr(c) = =.5 Jinbo Hung Resoning with Byesin Networks

50 Prtil Derivtives Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Pr(e = c) = f λ x (e) = Pr(x, e X ) Flipping vrible: x e λ b λb b b λ b b c λc c c λc c λ Adding literl: x, x e Pr(e): x e Pr( c) = f λ =.4 Pr(bc) = f λ b =.1 Jinbo Hung Resoning with Byesin Networks

51 Prtil Derivtives Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Pr(e = c) = x u f x u (e) = Pr(x, u, e) Gives fmily mrginls Pr(x, u, e) xu λ b λb b b λ b b c λc c c λc c λ f x u lso useful in sensitivity nlysis nd prmeter lerning Jinbo Hung Resoning with Byesin Networks

52 Complexity of Probbilistic Inference Compiling Byesin Networks Evlution nd Differentition Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ λ b 1.1 λb 1.1 b b λ b 1 0 b c λc c c λc c Jinbo Hung Resoning with Byesin Networks

53 Complexity of Probbilistic Inference Compiling Byesin Networks Evlution nd Differentition Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Bottom-up pss evlutes circuit, computes Pr(e) Top-down pss computes ll prtil derivtives Liner in circuit size Use division insted of multipliction Hndle 0s with extr bit per node, set to 1 when exctly one child hs 0 vlue Jinbo Hung Resoning with Byesin Networks

54 Mximizer Circuits Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Turn ddition into mximiztion in both psses Bottom-up pss computes f m = MPE P (e) Cn recover MPE instntition Top-down pss computes ll prtil derivtives f m x λ x (e) = MPE P (x, e X ) f m x,u x u x u (e) = MPE P (e, x, u) f m x (f m x,u) is mx over terms x (xu) Jinbo Hung Resoning with Byesin Networks

55 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Vrible Elimintion 11 + Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ b λb b b λb b λ A B Θ B A true true n 3 = (λ b, b ) true flse n 4 = (λ b, b ) flse true n 5 = (λ b, b ) flse flse n 6 = (λ b, b ) A Θ A true n 1 = (λ, ) flse n 2 = (λ, ) Jinbo Hung Resoning with Byesin Networks

56 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Vrible Elimintion 11 + Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ b λb b b λb b λ A B Θ B A true true n 3 = (λ b, b ) true flse n 4 = (λ b, b ) flse true n 5 = (λ b, b ) flse flse n 6 = (λ b, b ) Jinbo Hung Resoning with Byesin Networks

57 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Vrible Elimintion 11 + Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ b λb b b λb b λ A B Θ B A true true n 3 = (λ b, b ) true flse n 4 = (λ b, b ) flse true n 5 = (λ b, b ) flse flse n 6 = (λ b, b ) A B Θ B A true n 7 = +(n 3, n 4 ) flse n 8 = +(n 5, n 6 ) Jinbo Hung Resoning with Byesin Networks

58 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Vrible Elimintion 11 + Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ b λb b b λb b λ A Θ A B Θ B A true n 9 = (n 1, n 7 ) flse n 10 = (n 2, n 8 ) Jinbo Hung Resoning with Byesin Networks

59 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Vrible Elimintion 11 + Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ b λb b b λb b λ A Θ A B Θ B A true n 9 = (n 1, n 7 ) flse n 10 = (n 2, n 8 ) A Θ A B Θ B A n 11 = +(n 9, n 10 ) Jinbo Hung Resoning with Byesin Networks

60 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Vrible Elimintion 11 + Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion λ b λb b b λb b λ Circuit size O(n exp(w)) s complexity of vrible elimintion Jinbo Hung Resoning with Byesin Networks

61 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits Embedded in Jointree Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion + λ A A A root λ λ A A AB AC b λb b b λ b b c λc c c λc c λ B B A λ C C A Cluster instntition to node, seprtor instntition to + node Jinbo Hung Resoning with Byesin Networks

62 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits Embedded in Jointree Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion + λ A A A root λ λ A A AB AC b λb b b λ b b c λc c c λc c λ B B A λ C C A Circuit size O(n exp(w)) s complexity of jointree propgtion Jinbo Hung Resoning with Byesin Networks

63 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Boolen Encoding Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion I I I b I b I I I b I b I P I P I I b P b I I b P b I I b P b I I b P b Jinbo Hung Resoning with Byesin Networks

64 Complexity of Probbilistic Inference Compiling Byesin Networks Circuits from Boolen Encoding Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Boolen encoding (1st version) of Byesin network encodes network polynomil Ech model corresponds to one term Convert Boolen formul to Boolen circuit stisfying four properties NNF: literls s leves,, s internl nodes Decomposble: children of node do not shre vribles Determinism: children of node mutully inconsistent Smooth: children of node hve sme vribles Conversion lgorithms studied in Knowledge Compiltion Convert Boolen circuit to rithmetic circuit Jinbo Hung Resoning with Byesin Networks

65 Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Boolen Circuit to Arithmetic Circuit I P b I P P I b I I P P I P b b P b I b I P b b λ λ P b P P b P b b b λb b b λb b to +, to, negtive literls to 1 I x to λ x, P x u to x u Jinbo Hung Resoning with Byesin Networks

66 Complexity of Probbilistic Inference Compiling Byesin Networks Arithmetic Circuits Differentil Semntics Circuit Propgtion Circuit Compiltion Compiling Byesin Networks: Summry Network polynomils nd rithmetic circuits Differentil semntics of rithmetic circuits Circuit evlution nd differentition, mximizer circuits Circuits compiled from vrible elimintion, jointree, Boolen encoding Jinbo Hung Resoning with Byesin Networks

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

Solution for Assignment 1 : Intro to Probability and Statistics, PAC learning

Solution for Assignment 1 : Intro to Probability and Statistics, PAC learning Solution for Assignment 1 : Intro to Probbility nd Sttistics, PAC lerning 10-701/15-781: Mchine Lerning (Fll 004) Due: Sept. 30th 004, Thursdy, Strt of clss Question 1. Bsic Probbility ( 18 pts) 1.1 (

More information

Bayesian Networks: Approximate Inference

Bayesian Networks: Approximate Inference pproches to inference yesin Networks: pproximte Inference xct inference Vrillimintion Join tree lgorithm pproximte inference Simplify the structure of the network to mkxct inferencfficient (vritionl methods,

More information

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility) CS5371 Theory of Computtion Lecture 20: Complexity V (Polynomil-Time Reducibility) Objectives Polynomil Time Reducibility Prove Cook-Levin Theorem Polynomil Time Reducibility Previously, we lernt tht if

More information

dt. However, we might also be curious about dy

dt. However, we might also be curious about dy Section 0. The Clculus of Prmetric Curves Even though curve defined prmetricly my not be function, we cn still consider concepts such s rtes of chnge. However, the concepts will need specil tretment. For

More information

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7 CS 188 Introduction to Artificil Intelligence Fll 2018 Note 7 These lecture notes re hevily bsed on notes originlly written by Nikhil Shrm. Decision Networks In the third note, we lerned bout gme trees

More information

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes CSE 260-002: Exm 3-ANSWERS, Spring 20 ime: 50 minutes Nme: his exm hs 4 pges nd 0 prolems totling 00 points. his exm is closed ook nd closed notes.. Wrshll s lgorithm for trnsitive closure computtion is

More information

Revision Sheet. (a) Give a regular expression for each of the following languages:

Revision Sheet. (a) Give a regular expression for each of the following languages: Theoreticl Computer Science (Bridging Course) Dr. G. D. Tipldi F. Bonirdi Winter Semester 2014/2015 Revision Sheet University of Freiurg Deprtment of Computer Science Question 1 (Finite Automt, 8 + 6 points)

More information

COMPUTER SCIENCE TRIPOS

COMPUTER SCIENCE TRIPOS CST.2011.2.1 COMPUTER SCIENCE TRIPOS Prt IA Tuesdy 7 June 2011 1.30 to 4.30 COMPUTER SCIENCE Pper 2 Answer one question from ech of Sections A, B nd C, nd two questions from Section D. Submit the nswers

More information

CSCI FOUNDATIONS OF COMPUTER SCIENCE

CSCI FOUNDATIONS OF COMPUTER SCIENCE 1 CSCI- 2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 My 7, 2015 2 Announcements Homework 9 is due now. Some finl exm review problems will be posted on the web site tody. These re prcqce problems not

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS The University of Nottinghm SCHOOL OF COMPUTER SCIENCE LEVEL 2 MODULE, SPRING SEMESTER 2016 2017 LNGUGES ND COMPUTTION NSWERS Time llowed TWO hours Cndidtes my complete the front cover of their nswer ook

More information

( dg. ) 2 dt. + dt. dt j + dh. + dt. r(t) dt. Comparing this equation with the one listed above for the length of see that

( dg. ) 2 dt. + dt. dt j + dh. + dt. r(t) dt. Comparing this equation with the one listed above for the length of see that Arc Length of Curves in Three Dimensionl Spce If the vector function r(t) f(t) i + g(t) j + h(t) k trces out the curve C s t vries, we cn mesure distnces long C using formul nerly identicl to one tht we

More information

LECTURE NOTE #12 PROF. ALAN YUILLE

LECTURE NOTE #12 PROF. ALAN YUILLE LECTURE NOTE #12 PROF. ALAN YUILLE 1. Clustering, K-mens, nd EM Tsk: set of unlbeled dt D = {x 1,..., x n } Decompose into clsses w 1,..., w M where M is unknown. Lern clss models p(x w)) Discovery of

More information

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

More information

Higher Checklist (Unit 3) Higher Checklist (Unit 3) Vectors

Higher Checklist (Unit 3) Higher Checklist (Unit 3) Vectors Vectors Skill Achieved? Know tht sclr is quntity tht hs only size (no direction) Identify rel-life exmples of sclrs such s, temperture, mss, distnce, time, speed, energy nd electric chrge Know tht vector

More information

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response

More information

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

More information

Chapter 3 Solving Nonlinear Equations

Chapter 3 Solving Nonlinear Equations Chpter 3 Solving Nonliner Equtions 3.1 Introduction The nonliner function of unknown vrible x is in the form of where n could be non-integer. Root is the numericl vlue of x tht stisfies f ( x) 0. Grphiclly,

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Lerning Tom Mitchell, Mchine Lerning, chpter 13 Outline Introduction Comprison with inductive lerning Mrkov Decision Processes: the model Optiml policy: The tsk Q Lerning: Q function Algorithm

More information

Math 31S. Rumbos Fall Solutions to Assignment #16

Math 31S. Rumbos Fall Solutions to Assignment #16 Mth 31S. Rumbos Fll 2016 1 Solutions to Assignment #16 1. Logistic Growth 1. Suppose tht the growth of certin niml popultion is governed by the differentil eqution 1000 dn N dt = 100 N, (1) where N(t)

More information

Review of Calculus, cont d

Review of Calculus, cont d Jim Lmbers MAT 460 Fll Semester 2009-10 Lecture 3 Notes These notes correspond to Section 1.1 in the text. Review of Clculus, cont d Riemnn Sums nd the Definite Integrl There re mny cses in which some

More information

How can we approximate the area of a region in the plane? What is an interpretation of the area under the graph of a velocity function?

How can we approximate the area of a region in the plane? What is an interpretation of the area under the graph of a velocity function? Mth 125 Summry Here re some thoughts I ws hving while considering wht to put on the first midterm. The core of your studying should be the ssigned homework problems: mke sure you relly understnd those

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014 CS125 Lecture 12 Fll 2014 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Part 5 out of 5. Automata & languages. A primer on the Theory of Computation. Last week was all about. a superset of Regular Languages

Part 5 out of 5. Automata & languages. A primer on the Theory of Computation. Last week was all about. a superset of Regular Languages Automt & lnguges A primer on the Theory of Computtion Lurent Vnbever www.vnbever.eu Prt 5 out of 5 ETH Zürich (D-ITET) October, 19 2017 Lst week ws ll bout Context-Free Lnguges Context-Free Lnguges superset

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as Improper Integrls Two different types of integrls cn qulify s improper. The first type of improper integrl (which we will refer to s Type I) involves evluting n integrl over n infinite region. In the grph

More information

Optimization Lecture 1 Review of Differential Calculus for Functions of Single Variable.

Optimization Lecture 1 Review of Differential Calculus for Functions of Single Variable. Optimiztion Lecture 1 Review of Differentil Clculus for Functions of Single Vrible http://users.encs.concordi.c/~luisrod, Jnury 14 Outline Optimiztion Problems Rel Numbers nd Rel Vectors Open, Closed nd

More information

Decision Networks. CS 188: Artificial Intelligence Fall Example: Decision Networks. Decision Networks. Decisions as Outcome Trees

Decision Networks. CS 188: Artificial Intelligence Fall Example: Decision Networks. Decision Networks. Decisions as Outcome Trees CS 188: Artificil Intelligence Fll 2011 Decision Networks ME: choose the ction which mximizes the expected utility given the evidence mbrell Lecture 17: Decision Digrms 10/27/2011 Cn directly opertionlize

More information

AQA Further Pure 2. Hyperbolic Functions. Section 2: The inverse hyperbolic functions

AQA Further Pure 2. Hyperbolic Functions. Section 2: The inverse hyperbolic functions Hperbolic Functions Section : The inverse hperbolic functions Notes nd Emples These notes contin subsections on The inverse hperbolic functions Integrtion using the inverse hperbolic functions Logrithmic

More information

Partial Derivatives. Limits. For a single variable function f (x), the limit lim

Partial Derivatives. Limits. For a single variable function f (x), the limit lim Limits Prtil Derivtives For single vrible function f (x), the limit lim x f (x) exists only if the right-hnd side limit equls to the left-hnd side limit, i.e., lim f (x) = lim f (x). x x + For two vribles

More information

A Differential Approach to Inference in Bayesian Networks

A Differential Approach to Inference in Bayesian Networks Dierentil pproh to Inerene in Byesin Networks esented y Ynn Shen shenyn@mi.pitt.edu Outline Introdution Oeriew o lgorithms or inerene in Byesin networks (BN) oposed new pproh How to represent BN s multi-rite

More information

ad = cb (1) cf = ed (2) adf = cbf (3) cf b = edb (4)

ad = cb (1) cf = ed (2) adf = cbf (3) cf b = edb (4) 10 Most proofs re left s reding exercises. Definition 10.1. Z = Z {0}. Definition 10.2. Let be the binry reltion defined on Z Z by, b c, d iff d = cb. Theorem 10.3. is n equivlence reltion on Z Z. Proof.

More information

1.1. Linear Constant Coefficient Equations. Remark: A differential equation is an equation

1.1. Linear Constant Coefficient Equations. Remark: A differential equation is an equation 1 1.1. Liner Constnt Coefficient Equtions Section Objective(s): Overview of Differentil Equtions. Liner Differentil Equtions. Solving Liner Differentil Equtions. The Initil Vlue Problem. 1.1.1. Overview

More information

Main topics for the Second Midterm

Main topics for the Second Midterm Min topics for the Second Midterm The Midterm will cover Sections 5.4-5.9, Sections 6.1-6.3, nd Sections 7.1-7.7 (essentilly ll of the mteril covered in clss from the First Midterm). Be sure to know the

More information

Tutorial 4. b a. h(f) = a b a ln 1. b a dx = ln(b a) nats = log(b a) bits. = ln λ + 1 nats. = log e λ bits. = ln 1 2 ln λ + 1. nats. = ln 2e. bits.

Tutorial 4. b a. h(f) = a b a ln 1. b a dx = ln(b a) nats = log(b a) bits. = ln λ + 1 nats. = log e λ bits. = ln 1 2 ln λ + 1. nats. = ln 2e. bits. Tutoril 4 Exercises on Differentil Entropy. Evlute the differentil entropy h(x) f ln f for the following: () The uniform distribution, f(x) b. (b) The exponentil density, f(x) λe λx, x 0. (c) The Lplce

More information

Math 100 Review Sheet

Math 100 Review Sheet Mth 100 Review Sheet Joseph H. Silvermn December 2010 This outline of Mth 100 is summry of the mteril covered in the course. It is designed to be study id, but it is only n outline nd should be used s

More information

1.2. Linear Variable Coefficient Equations. y + b "! = a y + b " Remark: The case b = 0 and a non-constant can be solved with the same idea as above.

1.2. Linear Variable Coefficient Equations. y + b ! = a y + b  Remark: The case b = 0 and a non-constant can be solved with the same idea as above. 1 12 Liner Vrible Coefficient Equtions Section Objective(s): Review: Constnt Coefficient Equtions Solving Vrible Coefficient Equtions The Integrting Fctor Method The Bernoulli Eqution 121 Review: Constnt

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

Learning Moore Machines from Input-Output Traces

Learning Moore Machines from Input-Output Traces Lerning Moore Mchines from Input-Output Trces Georgios Gintmidis 1 nd Stvros Tripkis 1,2 1 Alto University, Finlnd 2 UC Berkeley, USA Motivtion: lerning models from blck boxes Inputs? Lerner Forml Model

More information

Calculus of Variations

Calculus of Variations Clculus of Vritions Com S 477/577 Notes) Yn-Bin Ji Dec 4, 2017 1 Introduction A functionl ssigns rel number to ech function or curve) in some clss. One might sy tht functionl is function of nother function

More information

Numerical Linear Algebra Assignment 008

Numerical Linear Algebra Assignment 008 Numericl Liner Algebr Assignment 008 Nguyen Qun B Hong Students t Fculty of Mth nd Computer Science, Ho Chi Minh University of Science, Vietnm emil. nguyenqunbhong@gmil.com blog. http://hongnguyenqunb.wordpress.com

More information

Construction of Gauss Quadrature Rules

Construction of Gauss Quadrature Rules Jim Lmbers MAT 772 Fll Semester 2010-11 Lecture 15 Notes These notes correspond to Sections 10.2 nd 10.3 in the text. Construction of Guss Qudrture Rules Previously, we lerned tht Newton-Cotes qudrture

More information

A sequence is a list of numbers in a specific order. A series is a sum of the terms of a sequence.

A sequence is a list of numbers in a specific order. A series is a sum of the terms of a sequence. Core Module Revision Sheet The C exm is hour 30 minutes long nd is in two sections. Section A (36 mrks) 8 0 short questions worth no more thn 5 mrks ech. Section B (36 mrks) 3 questions worth mrks ech.

More information

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

SUMMER KNOWHOW STUDY AND LEARNING CENTRE SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18

More information

Math 113 Fall Final Exam Review. 2. Applications of Integration Chapter 6 including sections and section 6.8

Math 113 Fall Final Exam Review. 2. Applications of Integration Chapter 6 including sections and section 6.8 Mth 3 Fll 0 The scope of the finl exm will include: Finl Exm Review. Integrls Chpter 5 including sections 5. 5.7, 5.0. Applictions of Integrtion Chpter 6 including sections 6. 6.5 nd section 6.8 3. Infinite

More information

DISCRETE MATHEMATICS HOMEWORK 3 SOLUTIONS

DISCRETE MATHEMATICS HOMEWORK 3 SOLUTIONS DISCRETE MATHEMATICS 21228 HOMEWORK 3 SOLUTIONS JC Due in clss Wednesdy September 17. You my collborte but must write up your solutions by yourself. Lte homework will not be ccepted. Homework must either

More information

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral Improper Integrls Every time tht we hve evluted definite integrl such s f(x) dx, we hve mde two implicit ssumptions bout the integrl:. The intervl [, b] is finite, nd. f(x) is continuous on [, b]. If one

More information

5.2 Exponent Properties Involving Quotients

5.2 Exponent Properties Involving Quotients 5. Eponent Properties Involving Quotients Lerning Objectives Use the quotient of powers property. Use the power of quotient property. Simplify epressions involving quotient properties of eponents. Use

More information

Lecture 14: Quadrature

Lecture 14: Quadrature Lecture 14: Qudrture This lecture is concerned with the evlution of integrls fx)dx 1) over finite intervl [, b] The integrnd fx) is ssumed to be rel-vlues nd smooth The pproximtion of n integrl by numericl

More information

Review of basic calculus

Review of basic calculus Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below

More information

CS/CE/SE 6367 Software Testing, Validation and Verification. Lecture 4 Code Coverage (II)

CS/CE/SE 6367 Software Testing, Validation and Verification. Lecture 4 Code Coverage (II) CS/CE/SE 6367 Softwre Testing, Vlidtion nd Verifiction Lecture 4 Code Coverge (II) 2/54 Lst Clss Code coverge Control-flow coverge Sttement coverge Brnch coverge Pth coverge Coverge Collection Tools EclEmm

More information

Disclaimer: This Final Exam Study Guide is meant to help you start studying. It is not necessarily a complete list of everything you need to know.

Disclaimer: This Final Exam Study Guide is meant to help you start studying. It is not necessarily a complete list of everything you need to know. Disclimer: This is ment to help you strt studying. It is not necessrily complete list of everything you need to know. The MTH 33 finl exm minly consists of stndrd response questions where students must

More information

Nenofex: Expanding NNF for QBF Solving

Nenofex: Expanding NNF for QBF Solving Institute for Forml Models nd Verifiction (FMV) Johnnes Kepler University, Linz, Austri Nenofex Negtion Norml Form Expnsion Solver for Quntified Boolen Formule (QBF) propositionl formul + quntified vribles

More information

A recursive construction of efficiently decodable list-disjunct matrices

A recursive construction of efficiently decodable list-disjunct matrices CSE 709: Compressed Sensing nd Group Testing. Prt I Lecturers: Hung Q. Ngo nd Atri Rudr SUNY t Bufflo, Fll 2011 Lst updte: October 13, 2011 A recursive construction of efficiently decodble list-disjunct

More information

On Odd and Even Cycles in Normal Logic Programs

On Odd and Even Cycles in Normal Logic Programs On Odd nd Even Cycles in Norml Logic Progrms Fngzhen Lin Deprtment of Computer Science Hong Kong University of Science nd Technology Cler Wter By, Kowloon, Hong Kong flin@cs.hst.hk Xishun Zho Institute

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

More information

COT4501 Spring Homework VII

COT4501 Spring Homework VII COT451 Spring 1 Homework VII The ssignment is due in clss on Thursdy, April 19, 1. There re five regulr problems nd one computer problem (using MATLAB). For written problems, you need to show your work

More information

Math 115 ( ) Yum-Tong Siu 1. Lagrange Multipliers and Variational Problems with Constraints. F (x,y,y )dx

Math 115 ( ) Yum-Tong Siu 1. Lagrange Multipliers and Variational Problems with Constraints. F (x,y,y )dx Mth 5 2006-2007) Yum-Tong Siu Lgrnge Multipliers nd Vritionl Problems with Constrints Integrl Constrints. Consider the vritionl problem of finding the extremls for the functionl J[y] = F x,y,y )dx with

More information

f(a+h) f(a) x a h 0. This is the rate at which

f(a+h) f(a) x a h 0. This is the rate at which M408S Concept Inventory smple nswers These questions re open-ended, nd re intended to cover the min topics tht we lerned in M408S. These re not crnk-out-n-nswer problems! (There re plenty of those in the

More information

Joint distribution. Joint distribution. Marginal distributions. Joint distribution

Joint distribution. Joint distribution. Marginal distributions. Joint distribution Joint distribution To specify the joint distribution of n rndom vribles X 1,...,X n tht tke vlues in the smple spces E 1,...,E n we need probbility mesure, P, on E 1... E n = {(x 1,...,x n ) x i E i, i

More information

Theorems Solutions. Multiple Choice Solutions

Theorems Solutions. Multiple Choice Solutions Solutions We hve intentionlly included more mteril thn cn be covered in most Student Study Sessions to ccount for groups tht re ble to nswer the questions t fster rte. Use your own judgment, bsed on the

More information

Recitation 3: More Applications of the Derivative

Recitation 3: More Applications of the Derivative Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech

More information

LECTURE. INTEGRATION AND ANTIDERIVATIVE.

LECTURE. INTEGRATION AND ANTIDERIVATIVE. ANALYSIS FOR HIGH SCHOOL TEACHERS LECTURE. INTEGRATION AND ANTIDERIVATIVE. ROTHSCHILD CAESARIA COURSE, 2015/6 1. Integrtion Historiclly, it ws the problem of computing res nd volumes, tht triggered development

More information

IST 4 Information and Logic

IST 4 Information and Logic IST 4 Informtion nd Logic T = tody x= hw#x out x= hw#x due mon tue wed thr fri 31 M1 1 7 oh M1 14 oh 1 oh 2M2 21 oh oh 2 oh Mx= MQx out Mx= MQx due 28 oh M2 oh oh = office hours 5 3 12 oh 3 T 4 oh oh 19

More information

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)

More information

Recursively Enumerable and Recursive. Languages

Recursively Enumerable and Recursive. Languages Recursively Enumerble nd Recursive nguges 1 Recll Definition (clss 19.pdf) Definition 10.4, inz, 6 th, pge 279 et S be set of strings. An enumertion procedure for Turing Mchine tht genertes ll strings

More information

Jim Lambers MAT 280 Spring Semester Lecture 26 and 27 Notes

Jim Lambers MAT 280 Spring Semester Lecture 26 and 27 Notes Jim Lmbers MAT 280 pring emester 2009-10 Lecture 26 nd 27 Notes These notes correspond to ection 8.6 in Mrsden nd Tromb. ifferentil Forms To dte, we hve lerned the following theorems concerning the evlution

More information

Balanced binary search trees

Balanced binary search trees 02110 Inge Li Gørtz Overview Blnced binry serch trees: Red-blck trees nd 2-3-4 trees Amortized nlysis Dynmic progrmming Network flows String mtching String indexing Computtionl geometry Introduction to

More information

Overview of Calculus I

Overview of Calculus I Overview of Clculus I Prof. Jim Swift Northern Arizon University There re three key concepts in clculus: The limit, the derivtive, nd the integrl. You need to understnd the definitions of these three things,

More information

September 13 Homework Solutions

September 13 Homework Solutions College of Engineering nd Computer Science Mechnicl Engineering Deprtment Mechnicl Engineering 5A Seminr in Engineering Anlysis Fll Ticket: 5966 Instructor: Lrry Cretto Septemer Homework Solutions. Are

More information

REVIEW Chapter 1 The Real Number System

REVIEW Chapter 1 The Real Number System Mth 7 REVIEW Chpter The Rel Number System In clss work: Solve ll exercises. (Sections. &. Definition A set is collection of objects (elements. The Set of Nturl Numbers N N = {,,,, 5, } The Set of Whole

More information

1B40 Practical Skills

1B40 Practical Skills B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need

More information

Lecture 4: Piecewise Cubic Interpolation

Lecture 4: Piecewise Cubic Interpolation Lecture notes on Vritionl nd Approximte Methods in Applied Mthemtics - A Peirce UBC Lecture 4: Piecewise Cubic Interpoltion Compiled 5 September In this lecture we consider piecewise cubic interpoltion

More information

Math 426: Probability Final Exam Practice

Math 426: Probability Final Exam Practice Mth 46: Probbility Finl Exm Prctice. Computtionl problems 4. Let T k (n) denote the number of prtitions of the set {,..., n} into k nonempty subsets, where k n. Argue tht T k (n) kt k (n ) + T k (n ) by

More information

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007 A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H Thoms Shores Deprtment of Mthemtics University of Nebrsk Spring 2007 Contents Rtes of Chnge nd Derivtives 1 Dierentils 4 Are nd Integrls 5 Multivrite Clculus

More information

N 0 completions on partial matrices

N 0 completions on partial matrices N 0 completions on prtil mtrices C. Jordán C. Mendes Arújo Jun R. Torregros Instituto de Mtemátic Multidisciplinr / Centro de Mtemátic Universidd Politécnic de Vlenci / Universidde do Minho Cmino de Ver

More information

3.4 Numerical integration

3.4 Numerical integration 3.4. Numericl integrtion 63 3.4 Numericl integrtion In mny economic pplictions it is necessry to compute the definite integrl of relvlued function f with respect to "weight" function w over n intervl [,

More information

First midterm topics Second midterm topics End of quarter topics. Math 3B Review. Steve. 18 March 2009

First midterm topics Second midterm topics End of quarter topics. Math 3B Review. Steve. 18 March 2009 Mth 3B Review Steve 18 Mrch 2009 About the finl Fridy Mrch 20, 3pm-6pm, Lkretz 110 No notes, no book, no clcultor Ten questions Five review questions (Chpters 6,7,8) Five new questions (Chpters 9,10) No

More information

X Z Y Table 1: Possibles values for Y = XZ. 1, p

X Z Y Table 1: Possibles values for Y = XZ. 1, p ECE 534: Elements of Informtion Theory, Fll 00 Homework 7 Solutions ll by Kenneth Plcio Bus October 4, 00. Problem 7.3. Binry multiplier chnnel () Consider the chnnel Y = XZ, where X nd Z re independent

More information

Complexity of Query Answering in Logic. Databases with Complex Values. Evgeny Dantsin. Steklov Institute of Mathematics at St.

Complexity of Query Answering in Logic. Databases with Complex Values. Evgeny Dantsin. Steklov Institute of Mathematics at St. UPMAIL Technicl Report No. 149 November 27, 1997 Revised Februry 16, 1998 ISSN 1100-0686 Complexity of Query Answering in Logic Dtbses with Complex Vlues Evgeny Dntsin Steklov Institute of Mthemtics t

More information

This lecture covers Chapter 8 of HMU: Properties of CFLs

This lecture covers Chapter 8 of HMU: Properties of CFLs This lecture covers Chpter 8 of HMU: Properties of CFLs Turing Mchine Extensions of Turing Mchines Restrictions of Turing Mchines Additionl Reding: Chpter 8 of HMU. Turing Mchine: Informl Definition B

More information

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim Mth 9 Course Summry/Study Guide Fll, 2005 [1] Limits Definition of Limit: We sy tht L is the limit of f(x) s x pproches if f(x) gets closer nd closer to L s x gets closer nd closer to. We write lim f(x)

More information

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by. NUMERICAL INTEGRATION 1 Introduction The inverse process to differentition in clculus is integrtion. Mthemticlly, integrtion is represented by f(x) dx which stnds for the integrl of the function f(x) with

More information

Bernoulli Numbers Jeff Morton

Bernoulli Numbers Jeff Morton Bernoulli Numbers Jeff Morton. We re interested in the opertor e t k d k t k, which is to sy k tk. Applying this to some function f E to get e t f d k k tk d k f f + d k k tk dk f, we note tht since f

More information

KNOWLEDGE-BASED AGENTS INFERENCE

KNOWLEDGE-BASED AGENTS INFERENCE AGENTS THAT REASON LOGICALLY KNOWLEDGE-BASED AGENTS Two components: knowledge bse, nd n inference engine. Declrtive pproch to building n gent. We tell it wht it needs to know, nd It cn sk itself wht to

More information

1 Techniques of Integration

1 Techniques of Integration November 8, 8 MAT86 Week Justin Ko Techniques of Integrtion. Integrtion By Substitution (Chnge of Vribles) We cn think of integrtion by substitution s the counterprt of the chin rule for differentition.

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

ntegration (p3) Integration by Inspection When differentiating using function of a function or the chain rule: If y = f(u), where in turn u = f(x)

ntegration (p3) Integration by Inspection When differentiating using function of a function or the chain rule: If y = f(u), where in turn u = f(x) ntegrtion (p) Integrtion by Inspection When differentiting using function of function or the chin rule: If y f(u), where in turn u f( y y So, to differentite u where u +, we write ( + ) nd get ( + ) (.

More information

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Riemann is the Mann! (But Lebesgue may besgue to differ.) Riemnn is the Mnn! (But Lebesgue my besgue to differ.) Leo Livshits My 2, 2008 1 For finite intervls in R We hve seen in clss tht every continuous function f : [, b] R hs the property tht for every ɛ >

More information

Chapter 6 Techniques of Integration

Chapter 6 Techniques of Integration MA Techniques of Integrtion Asst.Prof.Dr.Suprnee Liswdi Chpter 6 Techniques of Integrtion Recll: Some importnt integrls tht we hve lernt so fr. Tle of Integrls n+ n d = + C n + e d = e + C ( n ) d = ln

More information

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature CMDA 4604: Intermedite Topics in Mthemticl Modeling Lecture 19: Interpoltion nd Qudrture In this lecture we mke brief diversion into the res of interpoltion nd qudrture. Given function f C[, b], we sy

More information

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014 CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA

More information

Kinematic Waves. These are waves which result from the conservation equation. t + I = 0. (2)

Kinematic Waves. These are waves which result from the conservation equation. t + I = 0. (2) Introduction Kinemtic Wves These re wves which result from the conservtion eqution E t + I = 0 (1) where E represents sclr density field nd I, its outer flux. The one-dimensionl form of (1) is E t + I

More information

2D1431 Machine Learning Lab 3: Reinforcement Learning

2D1431 Machine Learning Lab 3: Reinforcement Learning 2D1431 Mchine Lerning Lb 3: Reinforcement Lerning Frnk Hoffmnn modified by Örjn Ekeberg December 7, 2004 1 Introduction In this lb you will lern bout dynmic progrmming nd reinforcement lerning. It is ssumed

More information

Complexity Results and Approximation Strategies for MAP Explanations

Complexity Results and Approximation Strategies for MAP Explanations Journal of Artificial Intelligence Research 21 (2004) 101-133 Submitted 3/03; published 2/04 Complexity Results and Approximation Strategies for MAP Explanations James D. Park Adnan Darwiche Computer Science

More information

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1 AMSC/CMSC 46/466 T. von Petersdorff 1 umericl Integrtion 1 Introduction We wnt to pproximte the integrl I := f xdx where we re given, b nd the function f s subroutine. We evlute f t points x 1,...,x n

More information

Calculus 2: Integration. Differentiation. Integration

Calculus 2: Integration. Differentiation. Integration Clculus 2: Integrtion The reverse process to differentition is known s integrtion. Differentition f() f () Integrtion As it is the opposite of finding the derivtive, the function obtined b integrtion is

More information