Salta al contenuto
Note per Studenti Introduction to Probability Theory Report

Introduction to Probability Theory

In questa pagina 4

Where the course sits in the degree

The Laurea degree in Information Engineering takes six semesters. The first year was mostly basic mathematics, physics and computer science, common to all STEM programmes. From the second year the focus shifts to topics specific to Information Engineering, and the mathematics taught becomes directly useful in applications.

The core of information-engineering mathematics is made of three courses:

  • Signals and Systems (this semester);
  • Probability Theory (this semester);
  • Systems and Models (third year, second semester).

They all present techniques for the mathematical modelling of natural and man-made phenomena. Signals and Systems deals with deterministic models. Probability Theory is devoted to modelling techniques particularly useful in the presence of uncertainty. Systems and Models blends the techniques learned in the two courses of this semester.

A common misconception

Laymen often think that probability and uncertainty are of no interest to the engineer. The prejudice runs: "a well designed system operating correctly is well known and must behave in a completely deterministic fashion": a system made of hardware and code, fed 1000 times with the same input, gives 1000 times the same output, so probability has no role.

The notes give several reasons why this is wrong:

  1. There are sources of uncertainty already at the physical level, for instance thermal noise in electrical circuits. It is usually negligible, being of very low level, but in critical situations such as deep-space communications, where the signals of interest and the thermal noise have comparable levels, good mathematical models of the noise become essential.
  2. Probabilistic models can also help solve problems that are inherently deterministic (see Example 6 below).

Probability theory is a mathematical tool well suited to describe (model) experiments and phenomena with uncertain outcomes: it gives a quantitative description of uncertainty.

Motivating examples

Example 1 - Data compression. Storage of huge databases (e.g. meteo data). The goal is to code the data with an invertible binary code of minimal length. The theoretical limit of compression is a probabilistic parameter: the entropy of the data.

Example 2 - Software performance. A sorting algorithm receives a long sequence of words to order alphabetically. To measure its running time one can look at the worst-case analysis, but it is more meaningful to study the average running time, and this requires a probabilistic description of the possible input sequences.

Example 3 - Data sheet. The data sheet of a hard disk says something like MTBF 100,000 hours, the mean time between failures. Nobody kept the disk running for about 11 years to obtain this number: it comes from a probabilistic model.

Example 4 - Empirical studies. Probability theory provides the theoretical framework for the design and interpretation of empirical studies in hard sciences (physics, chemistry, biology) and soft sciences (social studies, economics). Properly interpreting probabilities helps to evaluate risks and take decisions for individuals and communities in health, environment, weather, economy.

Example 5 - Reliability analysis. A network of four computers A,B,C,DA,B,C,D (vertices) is joined by directed links. Each number on a link (0.70.7, 0.80.8, 0.90.9) is the fraction of total time during which the link is functioning (11 means always). Clearly readable links in the figure: A→CA \to C with 0.90.9, A→BA \to B with 0.80.8, B→AB \to A with 0.70.7, B→DB \to D with 0.80.8. Between BB and CC and between CC and DD there are further arrows in both directions labelled 0.80.8, 0.70.7, 0.70.7; the sketch is crowded there and the exact assignment of these labels to individual arrows is not legible, so it is not reproduced.

Three questions, all probabilistic:

  1. What fraction of the total time can AA and DD communicate (reliability of the connection AA to DD)?
  2. If the link B→CB \to C fails completely, by how much is the connection of AA with DD worsened?
  3. If it is possible to improve by 0.10.1 the reliability of one link, which one is convenient to improve in order to maximise the reliability of the connection AA to DD?

Example 6 - Numerical integration (a deterministic problem solved probabilistically). Compute ∫01f(x) dx\int_0^1 f(x)\,dx where ff has no primitive expressible in closed form. This problem is completely deterministic.

  • Classical approach, Riemann approximation: split [0,1][0,1] into nn intervals of width 1/n1/n and approximate the integral by the area of the rectangles, ∫01f(x) dx≈∑i=0n−1f ⁣(in)1n.\int_0^1 f(x)\,dx \approx \sum_{i=0}^{n-1} f\!\left(\frac{i}{n}\right)\frac{1}{n}.
  • Alternative scheme: ∫01f(x) dx≈1n∑i=1nf(xi),\int_0^1 f(x)\,dx \approx \frac{1}{n}\sum_{i=1}^{n} f(x_i), the arithmetic mean of the areas of the horizontal rectangles, where x1,…,xnx_1,\dots,x_n are nn points chosen "randomly" in [0,1][0,1].

By the mean value theorem there exists x∗∈[0,1]x^* \in [0,1] such that ∫01f(x) dx=f(x∗)\int_0^1 f(x)\,dx = f(x^*). It will be shown that 1n∑if(xi)→n→∞f(x∗)=∫01f(x) dx.\frac{1}{n}\sum_{i} f(x_i) \xrightarrow[n\to\infty]{} f(x^*) = \int_0^1 f(x)\,dx . How to choose nn points randomly in [0,1][0,1]? By throwing coins (explained in class). A completely deterministic problem is solved probabilistically.

Probability theory as an axiomatic theory

Probability theory (PT) is an axiomatic theory like geometry. There is nothing uncertain about the theory itself: it proceeds from axioms to definitions, lemmas, propositions, theorems, more definitions, and so on. This "modern" approach dates back to the 1933 work of Kolmogorov. The starting point is the concept of probability space, introduced in Sample Spaces and EventsThe sample space collects all possible outcomes of an experiment, events are its subsets, and set operations (complement, union, intersection, difference, partitions) translate into statements about what occurs.Sample Spaces and Events →, Sigma-AlgebrasA sigma-algebra is the family of events to which probabilities are assigned; it must be closed under complements and countable intersections (hence unions), and the Borel sigma-algebra on the real line is generated by half-lines.Sigma-Algebras → and Probability Measures and AxiomsA probability measure is a non-negative, normalised, sigma-additive map on the sigma-algebra of events; from the three axioms follow the complement rule, monotonicity, subadditivity and inclusion-exclusion, while the axioms do not determine P uniquely.Probability Measures and Axioms →.

One can develop the theory without any connection to the physical world: the probability space is then a completely abstract construction. In engineering, PT is used to model experiments or phenomena whose behaviour is uncertain, and the probability space acquires a concrete meaning.

Versione ripasso

  • PT models experiments with uncertain outcomes and gives a quantitative description of uncertainty. It is useful for noise (thermal noise in deep-space links), average-case performance (algorithms), reliability (MTBF, networks), empirical studies (health, weather, economy).
  • Probabilistic methods can solve deterministic problems: Monte Carlo integration ∫01f(x) dx≈1n∑i=1nf(xi),xi random in [0,1].\int_0^1 f(x)\,dx \approx \frac1n \sum_{i=1}^n f(x_i),\quad x_i \text{ random in } [0,1].
  • PT is axiomatic (Kolmogorov, 1933): axioms, definitions, lemmas, theorems. The basic object is the probability space (Ω,F,P)(\Omega,\mathcal F,P).
  • Typical mistake: believing that a correctly designed deterministic system makes probability irrelevant.