00:01
Hi, for this problem we're going to be solving, we're going to be figuring out what the sample standard deviation and mean is for each of these sample data sets.
00:09
They're very small.
00:10
And we're just going to create, so we kind of have a reusable function.
00:15
I'm going to call this sample std, so standard deviation.
00:19
We're going to pass in our data.
00:21
For this, we're going to figure out what our length of our data is.
00:24
So we're going to equal length of our data, right? perfect.
00:28
And to find the mean, we're going to do sum of the data divided by n, right? we want to calculate the variance, because that's essential when calculating the standard deviation.
00:37
And this is going to be the sum, right? and it already has it laid out for us, 4x in data divided by n minus 1, right, is what we want to do here.
00:49
So this essentially is the formula for calculating variance.
00:51
And then at the end, we're going to return the variance to the power of 1 half, which is essentially the square root of the variance.
00:57
Perfect.
00:58
And now we're going to use all of this to find the mean for all of our mean and standard deviation.
01:04
So we're going to do this for our mean of a.
01:06
For our standard deviation of a, we're going to use our sample standard deviation function.
01:16
And we'll just repeat this all for the other two.
01:20
And let me just have this with a space...