Probability for a First-Order Language Ken Presting University of North Carolina at Chapel Hill.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Path-Sensitive Analysis for Linear Arithmetic and Uninterpreted Functions SAS 2004 Sumit Gulwani George Necula EECS Department University of California,
Mathematical Preliminaries
Substitution.
Warm up Translate following expression a. three less than x. b. Product of a number and 4 2. a. -24+(-13) b. 34 – 42 3.a. -3/7 + 2/3 b. 2/3.
Inference in First-Order Logic
Advanced Piloting Cruise Plot.
Extension Principle Adriano Cruz ©2002 NCE e IM/UFRJ
Chapter 1 The Study of Body Function Image PowerPoint
Finite Element Method CHAPTER 4: FEM FOR TRUSSES
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
ALGEBRAIC EXPRESSIONS
Points, Vectors, Lines, Spheres and Matrices
Vector Spaces A set V is called a vector space over a set K denoted V(K) if is an Abelian group, is a field, and For every element vV and K there exists.
ZMQS ZMQS
Introduction A function is called higher-order if it takes a function as an argument or returns a function as a result. twice :: (a  a)  a  a twice.
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
PARIXIT PRASAD December 4, 2013 Parixit Prasad | CSA - IISC 1 Deciding Presburger Arithmetic Using Automata Department of Computer Science and Automaton.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Meta Predicate Abstraction for Hierarchical Symbolic Heaps Josh Berdine Microsoft Research, Cambridge joint with Mike Emmi University of California, Los.
ABC Technology Project
3 Logic The Study of What’s True or False or Somewhere in Between.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
VOORBLAD.
Linear Representation of Relational Operations Kenneth A. Presting University of North Carolina at Chapel Hill.
Part 3: Least Squares Algebra 3-1/27 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Squares and Square Root WALK. Solve each problem REVIEW:
Traditional IR models Jian-Yun Nie.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
5.4 Basis And Dimension.
6.4 Best Approximation; Least Squares
Chapter 5 Test Review Sections 5-1 through 5-4.
SIMOCODE-DP Software.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Copyright © Cengage Learning. All rights reserved.
Test B, 100 Subtraction Facts
U1A L1 Examples FACTORING REVIEW EXAMPLES.
Week 1.
TRIANGULAR MATRICES A square matrix in which all the entries above the main diagonal are zero is called lower triangular, and a square matrix in which.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Relational Algebra and Relational Calculus
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
1 Unit 1 Kinematics Chapter 1 Day
PSSA Preparation.
IP, IST, José Bioucas, Probability The mathematical language to quantify uncertainty  Observation mechanism:  Priors:  Parameters Role in inverse.
How Cells Obtain Energy from Food
1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
Chapter 5 Relations and Functions
Equivalence Relations
The Logic of Quantified Statements
Discrete Structures Chapter 6: Set Theory
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
Presentation transcript:

Probability for a First-Order Language Ken Presting University of North Carolina at Chapel Hill

2 A qualified homomorphism If A, B disjoint P(A ∪ B) = P(A) + P(B) If A, B independent P(A ∩ B) = P(A) · P(B)

3 Quotient by a Subalgebra Let x, y, ~x, ~y be pairwise independent Direct product of factors = {x, ~x} x {y, ~y} Probability is area of rectangles in unit square x ~x y ~y ~x · y x·y x · ~y~x · ~y

4 Probability on Extensions A predicate is true-of an individual –Set of individuals is the extension –Measure of that set is probability A generalization is true-in a domain –Set of domains is the extension –Measure of that set is the probability

5 Quotient by an Ideal If Fx is a predicate in L, then every sample is a disjoint union, split by [Fx] and [~Fx] Sample space Σ is a direct sum of principal ideals, Σ = ⊕ = [∀ xFx] ⊕ [∀ x~Fx] Conditional [ ∀ x(Fx  Gx)] = [ ∀ x(Fx&Gx)] ⊕ [∀ x~Fx] [ ∀ x(Fx  Gx)] [ ∀ x~Fx] [ ∀ xFx] [ ∀ x(Fx&Gx)]

6 Definitions The Domain space - –Ω is a domain of interpretation for L (with N members) –Σ is generated by predicates of L –For any S in Σ, we set P 0 (S) = |S|/N The Sample Space - –Σ is the field of subsets from the space above –Ψ is generated by closed sentences of L –For any C in Ψ, we set P(C) = |C|/2 N

7 Sentences and Extensions Extensions of Formulas –(only one free variable) –[Fx] = { s in Ω | ‘Fs’ is true in L } Extensions of Sentences –[  x(Fx)] = { S in Σ | ‘  x(Fx)’ is “true in S” } – = { S in Σ | S is a subset of [Fx] }

8 Theorem Let L be a first-order language Probability P and P 0 as above If ‘Fx’, ‘Gx’ are open formulas of L, then P[  x(Fx  Gx)] = P[  x(Gx) |  x(Fx)].

9 Proof Define values for predicate extensions N f = |[Fx]| N g = |[Gx]| N fg = |[Fx & Gx]| Calculate sentence extensions |[  x(Fx)]| = 2 Nf |[  x(Gx)]| = 2 Ng |[  x(Fx & Gx)]| = 2 Nfg

10 Conditional Probability P[  x(Gx) |  x(Fx)] = P[  x(Fx & Gx)] P[  x(Fx)] =

11 Probability of the Conditional Extension of open material conditional |[Fx  Gx]| = |[~Fx] v [Fx & Gx]| = (N-N f ) + N fg Extension of its generalization |[  x(Fx  Gx)]| = = Probability

12 Relations on a Domain Domain is an arbitrary set, Ω Relations are subsets of Ω n All examples used today take Ω n as ordered tuples of natural numbers, Ω n = {(a i ) 1≤i≤n | a i  N } All definitions and proofs today can extend to arbitrary domains, indexed by ordinals

13 Hyperplanes and Lines Take an n-dimensional Cartesian product, Ω n, as an abstract coordinate space. Then an n-1 dimensional subspace, Ω n-1, is an abstract hyperplane in Ω n. For each point (a 1,…,a n-1 ) in the hyperplane Ω n-1, there is an abstract “perpendicular line,” Ω x {(a 1,…,a n-1 )}

14 Decomposition of a Relation Hyperplane, Perpendicular Line, Graph and Slice

15 Slices of the Graph Let F(x 1,…,x n ) be an n-ary relation Let the plain symbol F denote its graph: F = {(x 1,…,x n )| F(x 1,…,x n )} Let a 1,…,a n-1 be n-1 elements of Ω Then for each variable x i there is a set F x i |a1,…,an-1 = { ω  Ω | F(a 1,…,a i-1,ω,a i,…, a n-1 } This set is the x i ’s which satisfy F(…x i …) when all the other variables are fixed

16 The Matrix of Slices Every n-ary relation defines n set-valued functions on n-1 variables: F x i (v 1,…,v n-1 ) = { ω  Ω | F(v 1,…,v i-1,ω,v i,…,v n-1) } The n-tuple of these functions is called the “matrix of slices” of the relation F

17 Example: x 2 < x 3 IndexValue of x 1 Value of x 2 Value of x 3 Value of x 4 0,0,0ΩØ{1,2,3,…}Ω 0,0,1ΩØ{1,2,3,…}Ω 0,0, …ΩØ{1,2,3,…}Ω 0,1,0Ω{0}{2,3,4,…}Ω 0,1,1Ω{0}{2,3,4,…}Ω …Ω……Ω

18 Boolean Operations on Matrices Matrices treated as vectors –direct product of Boolean algebras –Component-wise conjunction, disjunction, etc. Matrix rows are indexed by n-1 tuples from Ω n Matrix columns are indexed by variables in the relation

19 Cylindrical Algebra Operations Diagonal Elements –Images of identity relations: x = y –Operate by logical conjunction with operand relation Cylindrifications –Binding a variable with existential quantifier Substitutions –Exchange of variables in relational expression

20 The Diagonal Relations Matrix images of an identity relation, x i = x j Example. In four dimensions, x 2 = x 3 maps to: IndexValue of x 1 Value of x 2 Value of x 3 Value of x 4 0,0,0Ω{0} Ω 0,0,1Ω{0} Ω 0,0, …Ω{0} Ω 0,1,0Ω{1} Ω 0,1,1Ω{1} Ω …Ω……Ω

21 Cylindrical Identity Elements 1 is the matrix with all components Ω, i.e. the image of a universal relation such as x i =x i 0 is the matrix with all components Ø, i.e. the image of the empty relation

22 Diagonal Operations Boolean conjunction of relation matrix with diagonal relation matrix Reduces number of free variables in expression, ‘x + y > z’ & ‘x = y’ Constructs higher-order relations from low order predicates

23 Instantiation Take an n-ary relation, F = F(x 1,…,x n ) Fix x i = a, that is, consider the n-1-ary relation F |x i =a = F(x 1,…,x i-1,a,x i+1,…,x n ) Each column in the matrix of F |x i =a is: F x j |x i =a (v 1,…,v n-2 ) = F(v 1,…,v j-1,x j,v j,…,v i-1,a,v i+1,…,v n )

24 Cylindrification as Union Cylindrification affects all slices in every non-maximal column Each slice in F |x i is a union of slices from instantiations: F x j |x i (v 1,…,v n-2 ) = U F x j |x i =a (v 1,…,v n-2 ) a  Ω Component-wise operation