# Subjective logic

Jump to navigation Jump to search

Subjective logic is a type of probabilistic logic that explicitly takes 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 uncertainty, and can explicitly indicate the source of belief whenever required. An opinion is usually denoted as ${\displaystyle \omega _{X}^{A}}$ where ${\displaystyle A\,\!}$ is the source of the opinion, and ${\displaystyle X\,\!}$ is the state variable to which the opinion applies. The variable ${\displaystyle X\,\!}$ can take values from a domain (also called state space) e.g. denoted as ${\displaystyle \mathbb {X} }$. 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 ${\displaystyle x\,\!}$ be a value in a binary domain. A binomial opinion about the truth of value ${\displaystyle x\,\!}$ is the ordered quadruple ${\displaystyle \omega _{x}=(b_{x},d_{x},u_{x},a_{x})\,\!}$ where:

 ${\displaystyle b_{x}\,\!}$: belief mass is the belief that ${\displaystyle x\,\!}$ is true. ${\displaystyle d_{x}\,\!}$: disbelief mass is the belief that ${\displaystyle x\,\!}$ is false. ${\displaystyle u_{x}\,\!}$: uncertainty mass is the amount of uncommitted belief. ${\displaystyle a_{x}\,\!}$: base rate is the prior probability in the absence of belief or disbelief.

These components satisfy ${\displaystyle b_{x}+d_{x}+u_{x}=1\,\!}$ and ${\displaystyle b_{x},d_{x},u_{x},a_{x}\in [0,1]\,\!}$. The characteristics of various opinion classes are listed below.

 An opinion where ${\displaystyle b_{x}=1\,\!}$ is an absolute opinion that is equivalent to Boolean TRUE, where ${\displaystyle d_{x}=1\,\!}$ is an absolute opinion that is equivalent to Boolean FALSE, where ${\displaystyle b_{x}+d_{x}=1\,\!}$ is a dogmatic opinion which is equivalent to a traditional probability, where ${\displaystyle b_{x}+d_{x}<1\,\!}$ is an uncertain opinion which expresses degrees of uncertainty, and where ${\displaystyle b_{x}+d_{x}=0\,\!}$ is a vacuous opinion which expresses total uncertainty.

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

Binomial opinions can be represented on an equilateral triangle as shown below. A point inside the triangle represents a ${\displaystyle (b_{x},d_{x},u_{x})\,\!}$ 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, ${\displaystyle \mathrm {P} _{x}\,\!}$, 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.

The Beta PDF is normally denoted as ${\displaystyle \mathrm {Beta} (p(x);\alpha ,\beta )\,\!}$ where ${\displaystyle \alpha \,\!}$ and ${\displaystyle \beta \,\!}$ are its two strength parameters. The Beta PDF of a binomial opinion ${\displaystyle \omega _{x}=(b_{x},d_{x},u_{x},a_{x})\,\!}$ is the function ${\displaystyle \mathrm {Beta} (p(x);\alpha ,\beta ){\mbox{ where }}{\begin{cases}\alpha &={\frac {2b_{x}}{u_{x}}}+2a_{x}\\\beta &={\frac {2d_{x}}{u_{x}}}+2(1-a_{x})\end{cases}}\,\!}$

### Multinomial opinions

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

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

Dirichlet PDFs are normally denoted as ${\displaystyle \mathrm {Dir} (p_{X};\alpha _{X})\,\!}$ where ${\displaystyle p_{X}\,\!}$ is a probability distribution over the values of ${\displaystyle X}$, and ${\displaystyle \alpha _{X}\,\!}$ are the strength parameters. The Dirichlet PDF of a multinomial opinion ${\displaystyle \omega _{X}=(b_{X},u_{X},a_{X})\,\!}$ is the function ${\displaystyle \mathrm {Dir} (p_{X};\alpha _{X})}$ where the strength parameters are given by ${\displaystyle \alpha _{X}(x)={\frac {2b_{X}(x)}{u_{X}}}+2a_{X}(x)\,\!}$.

## 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. [4] Most operators are binary, but complement is unary, and abduction is ternary. See the referenced puplications 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[5] ${\displaystyle \omega _{x\cup y}^{A}=\omega _{x}^{A}+\omega _{y}^{A}\,\!}$ Union
Subtraction[5] ${\displaystyle \omega _{x\backslash y}^{A}=\omega _{x}^{A}-\omega _{y}^{A}\,\!}$ Difference
Multiplication[6] ${\displaystyle \omega _{x\land y}^{A}=\omega _{x}^{A}\cdot \omega _{y}^{A}\,\!}$ Conjunction / AND
Division[6] ${\displaystyle \omega _{x{\overline {\land }}y}^{A}=\omega _{x}^{A}/\omega _{y}^{A}\,\!}$ Unconjunction / UN-AND
Comultiplication[6] ${\displaystyle \omega _{x\lor y}^{A}=\omega _{x}^{A}\sqcup \omega _{y}^{A}\,\!}$ Disjunction / OR
Codivision[6] ${\displaystyle \omega _{x{\overline {\lor }}y}^{A}=\omega _{x}^{A}\;{\overline {\sqcup }}\;\omega _{y}^{A}\,\!}$ Undisjunction / UN-OR
Complement[2][3] ${\displaystyle \omega _{\overline {x}}^{A}\;\;=\lnot \omega _{x}^{A}\,\!}$ NOT
Deduction[1] ${\displaystyle \omega _{Y\|X}^{A}=\omega _{Y|X}^{A}\circledcirc \omega _{X}^{A}\,\!}$ Modus ponens
Subjective Bayes' theorem[1] [7] ${\displaystyle \omega _{X{\tilde {|}}Y}^{A}=\omega _{Y|X}^{A}\;{\widetilde {\phi \,}}\;a_{X}\,\!}$ Contraposition
Abduction[1] ${\displaystyle \omega _{X{\widetilde {\|}}Y}^{A}=\omega _{Y|X}^{A}\;{\widetilde {\circledcirc }}\;(a_{X},\omega _{Y}^{A})\,\!}$ Modus tollens
Transitivity / discounting[1] ${\displaystyle \omega _{X}^{A;B}=\omega _{B}^{A}\otimes \omega _{X}^{B}\,\!}$ n.a.
Cumulative fusion [1] ${\displaystyle \omega _{X}^{A\diamond B}=\omega _{X}^{A}\oplus \omega _{X}^{B}\,\!}$ n.a.
Constraint fusion[1] ${\displaystyle \omega _{X}^{A\&B}=\omega _{X}^{A}\;\odot \;\omega _{X}^{B}\,\!}$ n.a.

Transitive source combination can be denoted in a compact or expanded form. For example, the transitive trust path from analyst/source ${\displaystyle A\,\!}$ via source ${\displaystyle B\,\!}$ to the variable ${\displaystyle X\,\!}$ can be denoted as ${\displaystyle [A;B,X]\,\!}$ in compact form, or as ${\displaystyle [A;B]:[B,X]\,\!}$ in expanded form. Here, ${\displaystyle [A;B]\,\!}$ expresses that ${\displaystyle A}$ has some trust/distrust in source ${\displaystyle B}$, whereas ${\displaystyle [B,X]\,\!}$ expresses that ${\displaystyle B}$ has an opinion about the state of variable ${\displaystyle X}$ which is given as an advice to ${\displaystyle A}$. 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 ${\displaystyle \omega _{x\land (y\lor z)}\neq \omega _{(x\land y)\lor (x\land z)}\,\!}$ in general although the distributivity of conjunction over disjunction, expressed as ${\displaystyle x\land (y\lor z)\Leftrightarrow (x\land y)\lor (x\land z)\,\!}$, 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 ${\displaystyle \omega _{x\land (y\cup z)}=\omega _{(x\land y)\cup (x\land z)}\,\!}$. De Morgan's laws are also satisfied as e.g. expressed by ${\displaystyle \omega _{\overline {x\land y}}=\omega _{{\overline {x}}\lor {\overline {y}}}\,\!}$.

Subjective logic gives very efficient computation of mathematically complex models. This is possible by approximating the analytically correct functions whenever needed. 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 uncertainty and incomplete knowledge. In this way, subjective logic becomes a probabilistic logic for 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 ${\displaystyle [A;B]\,\!}$ express the referral trust edge from ${\displaystyle A\,\!}$ to ${\displaystyle B\,\!}$, and let ${\displaystyle [B,X]\,\!}$ express the belief edge from ${\displaystyle B\,\!}$ to ${\displaystyle X\,\!}$. A subjective trust network can for example be expressed as ${\displaystyle ([A;B]:[B,X])\diamond ([A;C]:[C,X])\,\!}$ as illustrated in the figure below.

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

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.

### Subjective Bayesian networks

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

The deduced opinion is computed as ${\displaystyle \omega _{Z\|XY}=\omega _{Z|XY}\circledcirc \omega _{XY}}$. The joint evidence opinion ${\displaystyle \omega _{XY}}$ can be computed as the product of independent evidence opinions on ${\displaystyle X\,\!}$ and ${\displaystyle Y\,\!}$, 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.

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. A. Jøsang. Subjective Logic: A formalism for reasoning under uncertainty. Springer Verlag, 2016
2. ^ a b A. Jøsang. Artificial Reasoning with Subjective Logic. Proceedings of the Second Australian Workshop on Commonsense Reasoning, Perth 1997. PDF
3. ^ a b 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. ^ A. Jøsang. Probabilistic Logic Under Uncertainty. Proceedings of Computing: The Australian Theory Symposium (CATS'07), Ballarat, January 2007. PDF
5. ^ a b 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.
6. ^ a b c d A. Jøsang, and D. McAnally. Multiplication and Comultiplication of Beliefs. International Journal of Approximate Reasoning, 38/1, pp. 19–51, 2004.
7. ^ 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.