Skip to main content

4.1 Probability Space


Probability, loosely speaking, concerns the study of uncertainty. Probability can be thought of as the  fraction of times an event occurs, or as a degree of belief about an event. We then would like to use this probability to measure the chance of something occurring in an experiment.

We often quantify uncertainty in the data, uncertainty in the machine learning model, and uncertainty in the predictions produced by random variable of the model. Quantifying uncertainty requires the idea of a random variable, which is a function that maps outcomes of random experiments to a set of properties that we are interested in. Associated with the random variable is a function that measures the probability that a particular outcome (or probability set of outcomes) will occur; this is called the probability distribution.

Probability and Random Variables
Modern probability is based on a set of axioms proposed by Kolmogorov(Grinstead and Snell, 1997, Jaynes, 2003) that introduce the three concepts of sample space, event space, and probability measure. The probability space models a real-world process (referred to as an experiment) with random outcomes.

The sample space $\Omega$

The sample space is the set of all possible outcomes of the experiment,usually denoted by $\Omega$. For example, two successive coin tosses have a sample space of $\{hh, tt, ht, th\}$, where $h$ denotes “heads” and $t$ denotes “tails”.

The event space $\mathbb{A}$
The event space is the space of potential results of the experiment. A  subset $\mathbb{A}$ of the sample space $\Omega$ is in the event space $\mathbb{A}$ if at the end of the experiment we can observe whether a particular outcome $\omega \in \Omega$ is in $\mathbb{A}$. The event space $\mathbb{A}$ is obtained by considering the collection of subsets of $\Omega$, and for discrete probability distributions $\mathbb{A}$ is often the power set of $\Omega$.

The probability $P$
With each event $A \in \mathbb{A}$, we associate a number $P(A)$ that measures the probability or degree of belief that the event will occur. $P(A)$ is called the probability of $A$.

The probability of a single event must lie in the interval $[0, 1]$ and the total probability over all outcomes in the sample space   must be 1, i.e.,$P(\Omega) = 1$.

Given a probability space $(\Omega,\mathbb{A}, P)$, we want to use it to model some real-world phenomenon. In machine learning, we often avoid explicitly referring to the probability space, but instead refer to probabilities on quantities of interest, which we denote by $T$ . We refer $T$ as the target space and refer to elements of $T$ as states.

We introduce a target space function $X :\Omega \to T$, that takes an element of  $\Omega$ (an outcome) and returns a particular quantity of interest $x$, a value in $T$.This association/mapping from $\Omega$ to $T$ is called a random variable.

For example, in the case of tossing two coins and counting the number of heads, a random variable $X$ maps to the three possible outcomes: $X(hh) = 2, X(ht) = 1, X(th) = 1$, and $X(tt) = 0$. In this particular case, $T = {0, 1, 2}$, and it is the probabilities on elements of $T$ that we are interested in. For any subset $S \in T $, we associate $P_X(S) \in [0,1]$(the probability) to a particular event occurring corresponding to the random variable $X$.

$P(X=2)=P(hh)=P(h).P(h)=\frac{1}{2}.\frac{1}{2}=\frac{1}{4}$
$P(X=1)=P(ht) + P(th)= \frac{1}{2}.\frac{1}{2}+\frac{1}{2}.\frac{1}{2}=\frac{1}{4}+\frac{1}{4}=\frac{1}{2}$
$P(X=0)=P(tt)=P(t).P(t)=\frac{1}{2}.\frac{1}{2}=\frac{1}{4}$

Consider another example


Remark. The target space, that is, the range $T$ of the random variable $X$,is used to indicate the kind of probability space, i.e., a $T$ random variable.When $T$ is finite or countably infinite, this is called a discrete random variable . For continuous random variables ,we only consider $T = \mathbb{R}$ or $T = \mathbb{R}^D$.

In machine learning systems we are interested in generalization error.This means that we are actually interested in the performance of our system on instances that we will observe in future, which are not identical to the instances that we have seen so far. This analysis of future performance relies on probability and statistics.

Comments

Popular posts from this blog

Mathematics for Machine Learning- CST 284 - KTU Minor Notes - Dr Binu V P

  Introduction About Me Syllabus Course Outcomes and Model Question Paper University Question Papers and Evaluation Scheme -Mathematics for Machine learning CST 284 KTU Overview of Machine Learning What is Machine Learning (video) Learn the Seven Steps in Machine Learning (video) Linear Algebra in Machine Learning Module I- Linear Algebra 1.Geometry of Linear Equations (video-Gilbert Strang) 2.Elimination with Matrices (video-Gilbert Strang) 3.Solving System of equations using Gauss Elimination Method 4.Row Echelon form and Reduced Row Echelon Form -Python Code 5.Solving system of equations Python code 6. Practice problems Gauss Elimination ( contact) 7.Finding Inverse using Gauss Jordan Elimination  (video) 8.Finding Inverse using Gauss Jordan Elimination-Python code Vectors in Machine Learning- Basics 9.Vector spaces and sub spaces 10.Linear Independence 11.Linear Independence, Basis and Dimension (video) 12.Generating set basis and span 13.Rank of a Matrix 14.Linear Mapping...

Vectors in Machine Learning

As data scientists we work with data in various formats such as text images and numerical values We often use vectors to represent data in a structured and efficient manner especially in machine learning applications In this blog post we will explore what vectors are in terms of machine learning their significance and how they are used What is a Vector? In mathematics, a vector is a mathematical object that has both magnitude and direction. In machine learning, a vector is a mathematical representation of a set of numerical values. Vectors are usually represented as arrays or lists of numbers, and each number in the list represents a specific feature or attribute of the data. For example, suppose we have a dataset of houses, and we want to predict their prices based on their features such as the number of bedrooms, the size of the house, and the location. We can represent each house as a vector, where each element of the vector represents a specific feature of the house, such as the nu...

2.14 Singular Value Decomposition

The Singular Value Decomposition ( SVD) of a matrix is a central matrix decomposition method in linear algebra.It can be applied to all matrices,not only to square matrices and it always exists.It has been referred to as the 'fundamental theorem of linear algebra'( strang 1993). SVD Theorem: Let $A^{m \times n}$ be a rectangular matrix of rank $r \in [0,min(m,n)]$. The SVD of A is a decomposition of the form. $A= U \Sigma V^T $ with an orthogonal matrix $U \in \mathbb{R}^{m \times m}$ with column vectors $u_i, i=1,\ldots,m$ and an orthogonal matrix $V \in \mathbb{R}^{n \times n}$ with column vectors $v_j, j=1,\ldots,n$.Moreover, $\Sigma$ is an $m \times n$ matrix with $\sum_{ii} = \sigma \ge 0$ and $\sigma_{ij}=0, i \ne j$. The diagonal entries $\Sigma_i=1,\ldots,r$ of $\sigma$ are called singular values . $u_i$ are called left singular vectors , and $v_j$ are called right singular vectors .By convention singular values are ordered ie; $\sigma_1 \ge \sigma_2 \ldots \sigma_r \...