This lesson outlines many of the key statistical concepts needed in geomatics networks applications.

## Random variables

If an event has several possible outcomes, we associate it with a random variable (or variate), which we’ll refer to as . Such an event could be the result of rolling dice, or counting defective products, or measuring the distance between two points in a survey. Either way, the idea is usually that we seek to understand the behavior of a system or situation by characterizing the behavior of a subset, or sample, of observations of the entire system, or population. This is done through mathematical modeling based on as large a random sample as is reasonably possible to get our hands on, for reasons you will have studied before.

## Probability distribution functions

A key mathematical model is called the probability distribution function which describes the various probabilities related to possible values of a random variable. The probability distribution function, , of a random variable, , is the function whose integral gives the probability of lying in the range from to :

Note that in this figure:

• is the probability corresponding to the ratio of the yellow region to the white region
• Not all of the white region is shown here – it’s cut off at either end by the edges of the image
• is shown here to look like a normal distribution, with which you are likely already familiar, but it could take any shape (and the shape it takes will depend on the nature of the underlying phenomena)

And the following properties hold:

1. i.e. the sum of the area under a probability distribution function is 1, or, put another way, a probability of 1 means an event is certain to occur.

2. for all .

3. is continuous and represents the whole population by a number of variables known as parameters that represent it completely. Whereas values drawn from a sample are used to compute variables known as statistics which together do their best to estimate the population parameters, e.g. think of a population mean vs. a calculated sample mean.

When dealing with more than one random variable – which we will do often in geomatics – we get something like the following (for two random variables and , and their PDFs):

which can be drawn as the volume under a surface between the vertical planes , and .

And in the n-dimensional case we collect the variables in a random vector:

and the probability that the random vector takes on values in the range between and  is given by:

or, more simply:

## Expected value and mean

As we have said, the distributions and density functions of random variables are characterized by parameters that define their behavior. The first of these is referred to as expectation, expected value, mean, or average.

The expected value of a function, , is the arithmetic average of according to its probability distribution function, i.e.:

so the mean, , is the expected value of the function itself:

which makes sense if you recall that .

And for the multivariate case:

and the mean is as follows:

## The variance-covariance matrix

The variance-covariance matrix of is and it is defined as follows:

which is written as follows:

(1)

## Key parameters

From the above we define the following key parameters:

is called the variance of – an expression of the variation of the distribution

is called the covariance of and – an expression of the mutual variation of the two random variables, reflecting their interrelationship or mutual correlation

the square root of the variance is called the standard error or standard deviation of

And, finally, we define the coefficient of correlation between and to be:

about which we note that:

and that:

As outlined here: “If the correlation coefficient is close to 1, it would indicate that the variables are positively linearly related and the scatter plot falls almost along a straight line with positive slope. For -1, it indicates that the variables are negatively linearly related and the scatter plot almost falls along a straight line with negative slope. And for zero, it would indicate a weak linear relationship between the variables.”

and that:

Correlation between two random variables describes interdependence between them, but does not describe a stochastic dependence (or independence) which would come from a conditional distribution.

## Propagation of covariances

It is incredibly useful to be able to propagate the parameters that define a stochastic model. For variances and covariances we’ll use the general law of propagation of covariances which says that if a second random variable is related to our first random variable as follows:

where is a deterministic non-stochastic function, then:

This is incredibly powerful.

### Example 1: Error propagation for simple linear relationships

For example, if you have a simple linear model that relates your observations,, to your desired parameters, , e.g.:

then the covariance matrix of the parameters can be propagated from that of the observations as follows:

### Example 2: Error propagation for general nonlinear relationships

As another example, think of the observation equations we’ve been using, and of our simplified observation model in vector form:

where in the parametric case we know that which means that:

In other words, our familiar observation equations are in exactly the form mentioned above, which means the law of propagation of covariances applies. Of course, as we have seen, this relationship is not a simple linear relationship.

However, if you linearize and follow through, you can show that the following holds, which should be familiar to you by now:

This means that you can propagate the errors if you know the design matrix .

### Example 3: Preanalysis by propagating the variance-covariance matrix

And this can also be used to show that the following is true:

which you should recognize as one of our parametric least squares estimation equations.

Again, you don’t need anything more than the matrix relating them to each other – the design matrix – in order to relate the errors in the measurements to those in the estimated parameters.

I hope you can see the power of this!

If you can’t yet, you will when you get to Lab 3 in which you’ll do a full preanalysis of a network without ever setting foot in the field. In other words, you’ll be able to use the above equation to calculate the stochastic model of the estimated parameters, , based only on the stochastic model of the measurements, and the design matrix . No measurements needed!

## Propagation of variances

The law of propagation of variances follows from the the above in the case where the variables are independent, i.e. where the off-diagonals are zero.

For example, for

where the off-diagonal elements of are zero and where the relationship is of the form

it’s easy to show that:

which we often shorten to the following:

In the next lesson we will look at the basic equations for calculating the key population parameters and the sample statistics.

Lesson Assessments