1
00:00:04,250 --> 00:00:09,740
Now that we've been talking about multiple random variable is happening at the same time, we can generalize

2
00:00:09,740 --> 00:00:12,350
the single random variable into a vector form.

3
00:00:12,560 --> 00:00:19,670
So now we have a random vector and a basically a random vector is just a vector where each element inside

4
00:00:19,670 --> 00:00:21,890
the vector is its own random variable.

5
00:00:22,280 --> 00:00:29,930
So, for example, here we have a random vector X and we have random X1 x2 all the way up to X and all.

6
00:00:29,930 --> 00:00:36,790
We have this random vector here Y and that has random variable is Y one y two all the way down to Y.

7
00:00:36,980 --> 00:00:42,740
And so this is just a mathematical way of writing groups of random variables together in vector form.

8
00:00:44,410 --> 00:00:50,200
Now, the main of the random vectors can be calculated in the same way as a single random variable,

9
00:00:50,200 --> 00:00:52,510
but it's done on per element basis.

10
00:00:52,810 --> 00:00:59,470
So if we have a random vector X here, the main vector or the expected value of this random vector X

11
00:00:59,710 --> 00:01:04,390
is simply just the expected value of each of the different random variables individually.

12
00:01:06,610 --> 00:01:12,820
We can also work out the covariance so the covariance between two random variable vectors can be calculated,

13
00:01:12,820 --> 00:01:15,200
which forms a covariance matrix.

14
00:01:15,220 --> 00:01:17,740
So instead of a single value is now a matrix.

15
00:01:18,160 --> 00:01:25,570
So let's say we have a random variable vector X and Y where we have the random variables X one all the

16
00:01:25,570 --> 00:01:32,980
way to the end and Y one all the way to Y, and we can work out the covariance matrix using the expected

17
00:01:32,980 --> 00:01:41,230
value of our X random variable vector minus the X main multiplied by Y random variable minus Y mean

18
00:01:41,230 --> 00:01:42,180
transpose.

19
00:01:42,730 --> 00:01:46,330
And again we can simplify this down into this equation here.

20
00:01:46,810 --> 00:01:51,150
So when we do this operation here, we end up with a covariance matrix.

21
00:01:51,580 --> 00:01:58,510
So each element inside this covariance matrix is a covariance value for each of us ran a very, very

22
00:01:58,810 --> 00:02:01,900
each of those random variables with respect to a different random variable.

23
00:02:02,350 --> 00:02:06,580
So this term here is a covariance or random variable, X one with Y one.

24
00:02:06,910 --> 00:02:16,030
Here is a variance on X one with Y two, likewise over across four X one all the way up to M and down.

25
00:02:16,030 --> 00:02:20,160
The Matrix is similar all the way down to extend and Y m.

26
00:02:22,370 --> 00:02:28,820
Since each element in the random variable Vector X itself is a random variable, it is possible to calculate

27
00:02:28,820 --> 00:02:33,150
the covariance of each element in the vector with respect to each other element in the vector.

28
00:02:33,530 --> 00:02:36,550
And when we do this, we get the autocorrelation matrix.

29
00:02:36,560 --> 00:02:40,520
So this is just the covariance matrix for the random vector and itself.

30
00:02:41,000 --> 00:02:47,390
So here we are working out the expected value of our X random variable vector minus its main multiplied

31
00:02:47,390 --> 00:02:48,990
by the same thing transpose.

32
00:02:49,010 --> 00:02:53,210
And this gives us the covariance matrix of our random variable vector X.

33
00:02:53,700 --> 00:02:58,580
And if you have a look at what's contained inside this covariance matrix, it becomes a variance and

34
00:02:58,580 --> 00:03:01,730
cross covariance, which described the probability density function.

35
00:03:02,240 --> 00:03:05,120
So on the diagonal here we have the variances.

36
00:03:05,120 --> 00:03:10,470
So Sigma squared for X1 all the way down to our sigma squared X.

37
00:03:10,490 --> 00:03:15,530
And so these are the variances for the different random variables and our of diagonal terms.

38
00:03:15,530 --> 00:03:18,170
Here are the code, the crosscourt variances.

39
00:03:18,440 --> 00:03:24,080
So these turn to these talk about how correlated the different variables are with respect to each other.

40
00:03:24,440 --> 00:03:30,320
So here we have the cross covariance between random variable X1 and random variable x2.

41
00:03:31,130 --> 00:03:33,680
And down here you can see that we have a mirror image.

42
00:03:33,680 --> 00:03:40,940
We have the cross covariance of random variable x2 with respect to x1 the of diagonal terms, you are

43
00:03:40,940 --> 00:03:43,470
going to be symmetrical and are going to be replicated.

44
00:03:44,420 --> 00:03:49,940
Now if we look at the properties of the covariance matrix, all the autocorrelation matrix, the covariance

45
00:03:49,940 --> 00:03:51,400
matrix is symmetrical.

46
00:03:51,410 --> 00:03:57,710
So this is basically because our correlation or across the variances for IJA is the same as the variance

47
00:03:57,710 --> 00:04:00,470
for Ajai because it's the same random variables.

48
00:04:00,920 --> 00:04:07,760
This means that overall our covariance matrix, our C X is equal to, say, X transpose, because if

49
00:04:07,760 --> 00:04:12,990
we transpose this matrix, the diagonal matrix stays the same and the terms flip around.

50
00:04:13,010 --> 00:04:14,440
It become the mirror image of each other.

51
00:04:14,810 --> 00:04:17,750
But we know that this time here is equal to this time here.

52
00:04:18,110 --> 00:04:20,460
Likewise, this time here is equal to this time here.

53
00:04:20,520 --> 00:04:24,290
So we flip around the diagonal, we end up with the same matrix.

54
00:04:25,520 --> 00:04:31,420
And we also know that our covariance matrixes square because it is and by n matrix.

55
00:04:32,180 --> 00:04:37,010
Now, for a convergence matrix to be valid, it also has to be positive, semi definite.

56
00:04:37,340 --> 00:04:44,120
So this just means that if we multiply our variance matrix by any vectors that here transpose times

57
00:04:44,120 --> 00:04:49,380
by Z, the resulting operation is always going to be greater than or equal to zero.

58
00:04:49,520 --> 00:04:51,680
And this means the matrix is positive.

59
00:04:52,820 --> 00:04:54,590
So this is important later on.

60
00:04:54,770 --> 00:04:59,630
So any probability distribution that has a covariance magic that's positive, some definite is valid.

61
00:04:59,840 --> 00:05:05,030
If it's not positive, something definite and it's not symmetrical, it's not a valid distribution for

62
00:05:05,030 --> 00:05:06,350
probability density function.

