Hello in this lecture we're going to learn how to compute the main statistical indicators for a numeric
variable in base or for example we will use this data.
Graeme D-MA that contains information about a sample of car owners and will compute the statistical
indicators for the variable income.
So let's get started.
In order to compute the mean we use the mean function.
The argument at this concert is of course the variable income.
So the man is shown here in the console it's seventy eight point fifty nine or of course we can't draw
these men in a variable called M for example and then present the variable to see the mean
in order to compute the standard deviation and variance.
We will use the functions as D and var respectively.
So the standard deviation of the income is one hundred and twelve point thirty and the variance of the
variable income is twelve thousand six hundred twelve.
Now let's see how to compute the minimum Max the maximum and the range of our variable to compute the
minimum.
We use the main function.
So the minimum income is equal to 9 to compute the maximum we use the max function.
So the maximum income is one thousand one hundred and sixty.
If we want to get the minimum and the maximum value at the same time we can use the range function that's
try it.
So here is the line we get both the minimum and the maximum value is and to compute the range the difference
between the math between the maximum and the minimum value.
Sorry we just write this.
Perhaps the difference between Max and mean maximum income and minimum income.
And here we get the range of the variable income 1100 and staff on
the median function is available to compute the media.
So the median income in our case is 45 and you want to get that quartal for the distribution of income.
You will you will use that quantize function.
So here you have the three quantified they are twenty eight forty five and eighty six that are now in
the next laughter's we're going to learn some more advanced methods to compute the statistical indicators
for a quantitative variable.
Thank you.