Subjective logic

From HandWiki

Subjective logic is a type of probabilistic logic that explicitly takes epistemic uncertainty and source trust into account. In general, subjective logic is suitable for modeling and analysing situations involving uncertainty and relatively unreliable sources.[1][2][3] For example, it can be used for modeling and analysing trust networks and Bayesian networks. Arguments in subjective logic are subjective opinions about state variables which can take values from a domain (aka state space), where a state value can be thought of as a proposition which can be true or false. A binomial opinion applies to a binary state variable, and can be represented as a Beta PDF (Probability Density Function). A multinomial opinion applies to a state variable of multiple possible values, and can be represented as a Dirichlet PDF (Probability Density Function). Through the correspondence between opinions and Beta/Dirichlet distributions, subjective logic provides an algebra for these functions. Opinions are also related to the belief representation in Dempster–Shafer belief theory.

A fundamental aspect of the human condition is that nobody can ever determine with absolute certainty whether a proposition about the world is true or false. In addition, whenever the truth of a proposition is expressed, it is always done by an individual, and it can never be considered to represent a general and objective belief. These philosophical ideas are directly reflected in the mathematical formalism of subjective logic.

Subjective opinions

Subjective opinions express subjective beliefs about the truth of state values/propositions with degrees of epistemic uncertainty, and can explicitly indicate the source of belief whenever required. An opinion is usually denoted as [math]\displaystyle{ \omega^{A}_{X} }[/math] where [math]\displaystyle{ A\,\! }[/math] is the source of the opinion, and [math]\displaystyle{ X\,\! }[/math] is the state variable to which the opinion applies. The variable [math]\displaystyle{ X\,\! }[/math] can take values from a domain (also called state space) e.g. denoted as [math]\displaystyle{ \mathbb{X} }[/math]. The values of a domain are assumed to be exhaustive and mutually disjoint, and sources are assumed to have a common semantic interpretation of a domain. The source and variable are attributes of an opinion. Indication of the source can be omitted whenever irrelevant.

Binomial opinions

Let [math]\displaystyle{ x\,\! }[/math] be a state value in a binary domain. A binomial opinion about the truth of state value [math]\displaystyle{ x\,\! }[/math] is the ordered quadruple [math]\displaystyle{ \omega_{x} = (b_x,d_x,u_x,a_x)\,\! }[/math] where:

[math]\displaystyle{ b_x\,\! }[/math]: belief mass is the belief that [math]\displaystyle{ x\,\! }[/math] is true.
[math]\displaystyle{ d_x\,\! }[/math]: disbelief mass is the belief that [math]\displaystyle{ x\,\! }[/math] is false.
[math]\displaystyle{ u_x\,\! }[/math]: uncertainty mass is the amount of uncommitted belief, also interpreted as epistemic uncertainty.
[math]\displaystyle{ a_x\,\! }[/math]: base rate is the prior probability in the absence of belief or disbelief.

These components satisfy [math]\displaystyle{ b_x+d_x+u_x=1\,\! }[/math] and [math]\displaystyle{ b_x,d_x,u_x,a_x \in [0,1]\,\! }[/math]. The characteristics of various opinion classes are listed below.

An opinion where [math]\displaystyle{ b_x=1\,\! }[/math] is an absolute opinion which is equivalent to Boolean TRUE,
where [math]\displaystyle{ d_x=1\,\! }[/math] is an absolute opinion which is equivalent to Boolean FALSE,
where [math]\displaystyle{ b_x + d_x =1\,\! }[/math] is a dogmatic opinion which is equivalent to a traditional probability,
where [math]\displaystyle{ b_x + d_x \lt 1\,\! }[/math] is an uncertain opinion which expresses degrees of epistemic uncertainty, and
where [math]\displaystyle{ b_x + d_x = 0\,\! }[/math] is a vacuous opinion which expresses total epistemic uncertainty or total vacuity of belief.

The projected probability of a binomial opinion is defined as [math]\displaystyle{ \mathrm{P}_{x}=b_{x} + a_{x} u_{x}\,\! }[/math].

Binomial opinions can be represented on an equilateral triangle as shown below. A point inside the triangle represents a [math]\displaystyle{ (b_x,d_x,u_x)\,\! }[/math] triple. The b,d,u-axes run from one edge to the opposite vertex indicated by the Belief, Disbelief or Uncertainty label. For example, a strong positive opinion is represented by a point towards the bottom right Belief vertex. The base rate, also called the prior probability, is shown as a red pointer along the base line, and the projected probability, [math]\displaystyle{ \mathrm{P}_{x}\,\! }[/math], is formed by projecting the opinion onto the base, parallel to the base rate projector line. Opinions about three values/propositions X, Y and Z are visualized on the triangle to the left, and their equivalent Beta PDFs (Probability Density Functions) are visualized on the plots to the right. The numerical values and verbal qualitative descriptions of each opinion are also shown. Example binomial opinions with corresponding Beta PDFs

The Beta PDF is normally denoted as [math]\displaystyle{ \mathrm{Beta}(p(x);\alpha,\beta)\,\! }[/math] where [math]\displaystyle{ \alpha\,\! }[/math] and [math]\displaystyle{ \beta\,\! }[/math] are its two strength parameters. The Beta PDF of a binomial opinion [math]\displaystyle{ \omega_x = (b_x,d_x,u_x,a_x)\,\! }[/math] is the function [math]\displaystyle{ \mathrm{Beta}(p(x);\alpha,\beta) \mbox{ where } \begin{cases} \alpha &= \frac{Wb_x}{u_x}+Wa_x\\ \beta &= \frac{Wd_x}{u_x}+W(1-a_x) \end{cases} \,\! }[/math] where [math]\displaystyle{ W }[/math] is the non-informative prior weight, also called a unit of evidence,[4] normally set to [math]\displaystyle{ W=2 }[/math].

Multinomial opinions

Let [math]\displaystyle{ X\,\! }[/math] be a state variable which can take state values [math]\displaystyle{ x\in\mathbb{X}\,\! }[/math]. A multinomial opinion over [math]\displaystyle{ X\,\! }[/math] is the composite tuple [math]\displaystyle{ \omega_{X}=(b_{X}, u_{X}, a_{X})\,\! }[/math], where [math]\displaystyle{ b_{X}\,\! }[/math] is a belief mass distribution over the possible state values of [math]\displaystyle{ X\,\! }[/math], [math]\displaystyle{ u_{X}\,\! }[/math] is the uncertainty mass, and [math]\displaystyle{ a_{X}\,\! }[/math] is the prior (base rate) probability distribution over the possible state values of [math]\displaystyle{ X\,\! }[/math]. These parameters satisfy [math]\displaystyle{ u_{X}+\sum b_{X}(x) = 1\,\! }[/math] and [math]\displaystyle{ \sum a_{X}(x) = 1\,\! }[/math] as well as [math]\displaystyle{ b_{X}(x),u_{X},a_{X}(x) \in [0,1]\,\! }[/math].

Trinomial opinions can be simply visualised as points inside a tetrahedron, but opinions with dimensions larger than trinomial do not lend themselves to simple visualisation.

Dirichlet PDFs are normally denoted as [math]\displaystyle{ \mathrm{Dir}(p_{X};\alpha_{X})\,\! }[/math] where [math]\displaystyle{ p_{X}\,\! }[/math] is a probability distribution over the state values of [math]\displaystyle{ X }[/math], and [math]\displaystyle{ \alpha_{X}\,\! }[/math] are the strength parameters. The Dirichlet PDF of a multinomial opinion [math]\displaystyle{ \omega_{X} = (b_{X},u_{X},a_{X})\,\! }[/math] is the function [math]\displaystyle{ \mathrm{Dir}(p_{X};\alpha_{X}) }[/math] where the strength parameters are given by [math]\displaystyle{ \alpha_{X}(x) = \frac{Wb_{X}(x)}{u_{X}}+Wa_{X}(x)\,\! }[/math], where [math]\displaystyle{ W }[/math] is the non-informative prior weight, also called a unit of evidence,[4] normally set to the number of classes.

Operators

Most operators in the table below are generalisations of binary logic and probability operators. For example addition is simply a generalisation of addition of probabilities. Some operators are only meaningful for combining binomial opinions, and some also apply to multinomial opinion.[5] Most operators are binary, but complement is unary, and abduction is ternary. See the referenced publications for mathematical details of each operator.

Subjective logic operators, notations, and corresponding propositional/binary logic operators
Subjective logic operator Operator notation Propositional/binary logic operator
Addition[6] [math]\displaystyle{ \omega^{A}_{x\cup y}=\omega^{A}_{x}+\omega^{A}_{y}\,\! }[/math] Union
Subtraction[6] [math]\displaystyle{ \omega^{A}_{x\backslash y}=\omega^{A}_{x}-\omega^{A}_{y}\,\! }[/math] Difference
Multiplication[7] [math]\displaystyle{ \omega^A_{x\land y}=\omega^A_x \cdot \omega^A_y\,\! }[/math] Conjunction / AND
Division[7] [math]\displaystyle{ \omega^A_{x\overline{\land} y}=\omega^A_x/\omega^A_y\,\! }[/math] Unconjunction / UN-AND
Comultiplication[7] [math]\displaystyle{ \omega^{A}_{x\lor y}=\omega^{A}_{x}\sqcup \omega^{A}_{y}\,\! }[/math] Disjunction / OR
Codivision[7] [math]\displaystyle{ \omega^{A}_{x\overline{\lor} y}=\omega^{A}_{x}\;\overline{\sqcup}\;\omega^{A}_{y}\,\! }[/math] Undisjunction / UN-OR
Complement[2][3] [math]\displaystyle{ \omega^{A}_{\overline{x}}\;\;=\lnot\omega^{A}_{x}\,\! }[/math] NOT
Deduction[1] [math]\displaystyle{ \omega^{A}_{Y\|X}= \omega^{A}_{Y|X}\circledcirc \omega^{A}_{X}\,\! }[/math] Modus ponens
Subjective Bayes' theorem[1][8] [math]\displaystyle{ \omega^{A}_{X\tilde{|}Y}=\omega^{A}_{Y|X}\;\widetilde{\phi\,}\;a_{X}\,\! }[/math] Contraposition
Abduction[1] [math]\displaystyle{ \omega^{A}_{X\widetilde{\|}Y}=\omega^{A}_{Y|X}\;\widetilde{\circledcirc}\;(a_{X},\omega^{A}_{Y})\,\! }[/math] Modus tollens
Transitivity / discounting[1] [math]\displaystyle{ \omega^{A;B}_{X}=\omega^{A}_{B}\otimes\omega^{B}_{X}\,\! }[/math] n.a.
Cumulative fusion [1] [math]\displaystyle{ \omega^{A\diamond B}_{X}=\omega^{A}_{X}\oplus \omega^{B}_{X}\,\! }[/math] n.a.
Constraint fusion[1] [math]\displaystyle{ \omega^{A\& B}_{X}=\omega^{A}_{X}\;\odot\; \omega^{B}_{X}\,\! }[/math] n.a.

Transitive source combination can be denoted in a compact or expanded form. For example, the transitive trust path from analyst/source [math]\displaystyle{ A\,\! }[/math] via source [math]\displaystyle{ B\,\! }[/math] to the variable [math]\displaystyle{ X\,\! }[/math] can be denoted as [math]\displaystyle{ [A;B,X]\,\! }[/math] in compact form, or as [math]\displaystyle{ [A;B]:[B,X]\,\! }[/math] in expanded form. Here, [math]\displaystyle{ [A;B]\,\! }[/math] expresses that [math]\displaystyle{ A }[/math] has some trust/distrust in source [math]\displaystyle{ B }[/math], whereas [math]\displaystyle{ [B,X]\,\! }[/math] expresses that [math]\displaystyle{ B }[/math] has an opinion about the state of variable [math]\displaystyle{ X }[/math] which is given as an advice to [math]\displaystyle{ A }[/math]. The expanded form is the most general, and corresponds directly to the way subjective logic expressions are formed with operators.

Properties

In case the argument opinions are equivalent to Boolean TRUE or FALSE, the result of any subjective logic operator is always equal to that of the corresponding propositional/binary logic operator. Similarly, when the argument opinions are equivalent to traditional probabilities, the result of any subjective logic operator is always equal to that of the corresponding probability operator (when it exists).

In case the argument opinions contain degrees of uncertainty, the operators involving multiplication and division (including deduction, abduction and Bayes' theorem) will produce derived opinions that always have correct projected probability but possibly with approximate variance when seen as Beta/Dirichlet PDFs.[1] All other operators produce opinions where the projected probabilities and the variance are always analytically correct.

Different logic formulas that traditionally are equivalent in propositional logic do not necessarily have equal opinions. For example [math]\displaystyle{ \omega_{x\land (y\lor z)} \neq \omega_{(x \land y)\lor (x\land z)}\,\! }[/math] in general although the distributivity of conjunction over disjunction, expressed as [math]\displaystyle{ x\land (y\lor z) \Leftrightarrow (x \land y)\lor (x\land z)\,\! }[/math], holds in binary propositional logic. This is no surprise as the corresponding probability operators are also non-distributive. However, multiplication is distributive over addition, as expressed by [math]\displaystyle{ \omega_{x\land (y\cup z)} = \omega_{(x \land y)\cup (x\land z)}\,\! }[/math]. De Morgan's laws are also satisfied as e.g. expressed by [math]\displaystyle{ \omega_{\overline{x\land y}} = \omega_{\overline{x} \lor \overline{y}}\,\! }[/math].

Subjective logic allows very efficient computation of mathematically complex models. This is possible by approximation of the analytically correct functions. While it is relatively simple to analytically multiply two Beta PDFs in the form of a joint Beta PDF, anything more complex than that quickly becomes intractable. When combining two Beta PDFs with some operator/connective, the analytical result is not always a Beta PDF and can involve hypergeometric series. In such cases, subjective logic always approximates the result as an opinion that is equivalent to a Beta PDF.

Applications

Subjective logic is applicable when the situation to be analysed is characterised by considerable epistemic uncertainty due to incomplete knowledge. In this way, subjective logic becomes a probabilistic logic for epistemic-uncertain probabilities. The advantage is that uncertainty is preserved throughout the analysis and is made explicit in the results so that it is possible to distinguish between certain and uncertain conclusions.

The modelling of trust networks and Bayesian networks are typical applications of subjective logic.

Subjective trust networks

Subjective trust networks can be modelled with a combination of the transitivity and fusion operators. Let [math]\displaystyle{ [A;B]\,\! }[/math] express the referral trust edge from [math]\displaystyle{ A\,\! }[/math] to [math]\displaystyle{ B\,\! }[/math], and let [math]\displaystyle{ [B,X]\,\! }[/math] express the belief edge from [math]\displaystyle{ B\,\! }[/math] to [math]\displaystyle{ X\,\! }[/math]. A subjective trust network can for example be expressed as [math]\displaystyle{ ([A;B]:[B,X])\diamond([A;C]:[C,X])\,\! }[/math] as illustrated in the figure below.

Subjective trust network

The indices 1, 2 and 3 indicate the chronological order in which the trust edges and advice are formed. Thus, given the set of trust edges with index 1, the origin trustor [math]\displaystyle{ A\,\! }[/math] receives advice from [math]\displaystyle{ B\,\! }[/math] and [math]\displaystyle{ C\,\! }[/math], and is thereby able to derive belief in variable [math]\displaystyle{ X\,\! }[/math]. By expressing each trust edge and belief edge as an opinion, it is possible for [math]\displaystyle{ A\,\! }[/math] to derive belief in [math]\displaystyle{ X\,\! }[/math] expressed as [math]\displaystyle{ \omega^{A}_{X} = \omega^{[A;B]\diamond[A;C]}_{X} = (\omega^{A}_{B}\otimes \omega^{B}_{X}) \oplus (\omega^{A}_{C}\otimes \omega^{C}_{X})\,\! }[/math].

Trust networks can express the reliability of information sources, and can be used to determine subjective opinions about variables that the sources provide information about.

Evidence-based subjective logic (EBSL)[4] describes an alternative trust-network computation, where the transitivity of opinions (discounting) is handled by applying weights to the evidence underlying the opinions.

Subjective Bayesian networks

In the Bayesian network below, [math]\displaystyle{ X\,\! }[/math] and [math]\displaystyle{ Y\,\! }[/math] are parent variables and [math]\displaystyle{ Z\,\! }[/math] is the child variable. The analyst must learn the set of joint conditional opinions [math]\displaystyle{ \omega_{Z|XY} }[/math] in order to apply the deduction operator and derive the marginal opinion [math]\displaystyle{ \omega_{Z\|XY} }[/math] on the variable [math]\displaystyle{ Z }[/math]. The conditional opinions express a conditional relationship between the parent variables and the child variable.

Subjective Bayesian network

The deduced opinion is computed as [math]\displaystyle{ \omega_{Z\|XY} = \omega_{Z|XY} \circledcirc \omega_{XY} }[/math]. The joint evidence opinion [math]\displaystyle{ \omega_{XY} }[/math] can be computed as the product of independent evidence opinions on [math]\displaystyle{ X\,\! }[/math] and [math]\displaystyle{ Y\,\! }[/math], or as the joint product of partially dependent evidence opinions.

Subjective networks

The combination of a subjective trust network and a subjective Bayesian network is a subjective network. The subjective trust network can be used to obtain from various sources the opinions to be used as input opinions to the subjective Bayesian network, as illustrated in the figure below.

Subjective network

Traditional Bayesian network typically do not take into account the reliability of the sources. In subjective networks, the trust in sources is explicitly taken into account.

References

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 A. Jøsang. Subjective Logic: A formalism for reasoning under uncertainty. Springer Verlag, 2016
  2. 2.0 2.1 A. Jøsang. Artificial Reasoning with Subjective Logic. Proceedings of the Second Australian Workshop on Commonsense Reasoning, Perth 1997. PDF
  3. 3.0 3.1 A. Jøsang. A Logic for Uncertain Probabilities. International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems. 9(3), pp. 279–311, June 2001. PDF
  4. 4.0 4.1 4.2 Skoric, B.; Zannone, N. (2016). "Flow-based reputation with uncertainty: Evidence-Based Subjective Logic". International Journal of Information Security 15 (4): 381–402. doi:10.1007/s10207-015-0298-5. 
  5. A. Jøsang. Probabilistic Logic Under Uncertainty. Proceedings of Computing: The Australian Theory Symposium (CATS'07), Ballarat, January 2007. PDF
  6. 6.0 6.1 D. McAnally and A. Jøsang. Addition and Subtraction of Beliefs. Proceedings of the conference on Information Processing and Management of Uncertainty in Knowledge-Based Systems (IPMU2004), Perugia, July, 2004.
  7. 7.0 7.1 7.2 7.3 A. Jøsang, and D. McAnally. Multiplication and Comultiplication of Beliefs. International Journal of Approximate Reasoning, 38/1, pp. 19–51, 2004.
  8. A. Jøsang. Generalising Bayes' Theorem in Subjective Logic. 2016 IEEE International Conference on Multisensor Fusion and Integration for Intelligent Systems (MFI 2016), Baden-Baden, Germany, 2016.

External links