Welcome to the lesson on Statistical Analysis in MATLAB. During this lesson, I'm gonna go over two main categories that are important to Statistics, which are Measures of Centrality and Measures of Spread. To get started, we're gonna load a data set, and the data set that we're gonna be working with is the car data set. So to get that loaded, just run the load carbig command. And if you check your workspace, you should see a series of variables. And so, now I'm just going to go over the primary measures of centrality, which are the mean, median, and mode. The mean, which is also referred to as the arithmetic mean or the average, is a common measure of centrality. The mean is useful for symmetric distributions, but notoriously sensitive to outliers. If your data set's not distributed symmetrically, or has extreme outliers, you'll need to consider how these factors will affect the calculation of the mean. And so now in order to calculate the mean, the function is simple. We just use mean, and the variable. So, right now I'm just gonna calculate the mean of acceleration. And as you can see here, the mean is 15.5197. You can also calculate the mean of, let's say, cylinders, and you'll get 5.4754. And so, the mean by itself is an important metric or value, but it's often needed to be viewed with other measures such as the median, which gives the midpoint of the sorted data. So, half the data is greater than the median, and half the data's smaller. The median is much more resistant than the mean to changes in a few data values, and is an especially useful center for non-symmetric or skewed distributions. And to get your median, you simply use the median function, and will pass in acceleration. And you can see here, the median is 15.5. And we'll do the same for cylinders, which is four. So as you can see here, if we look at the mean of acceleration and compare it to the median of acceleration, there's only a 0.0197 difference in the two. And because the mean and median are so similar, you can assume that the distribution is nearly perfectly symmetrical. However, when we look at the mean of cylinders, we can see that the mean is 5.47, and the median is four. And so this is pretty much telling us that those distributions are not symmetrical. Next up, we have the mode, which is simply the most frequent value in an array. And if there are multiple modes, it takes the smallest. And just like the mean and median, the mode function is simple. And we'll look at the mode for acceleration, and the mode for cylinders. And we have 14.5 and four. So, this just means that a majority, or rather, the most common acceleration, is 14.5, and the most common number of cylinders is four. Next up, I'm gonna go over measures of spread, and start with the standard deviation, which like the main is typically used to measure the spread of symmetric distributions that follow a normal distribution. Because the standard deviation is the square root of the variance, the sum of the squares of the distances of data values from the mean, the standard deviation tends to amplify the effect of outliers. And so to compute the standard deviation, you use the std function, and we'll compute this for acceleration, which will give you 2.8034, and we'll compute it for cylinders, which gives us 1.7122. And the standard deviation, because they are relatively small, it shows that the data isn't widely spread in terms of distance from the mean. And the final measure that I want to discuss is the interquartile range, which is based on the median. And it gives the distance between the 25th and 75th percentile in the data. Or in other words, it gives you the width of the region that contains the middle 50% of your data values. And to compute this, we just use the iqr function, and we're going to compute it for acceleration, which gives us 3.5. And lastly, we're gonna compute it for cylinders, which gives us four. And because these values are relatively low or small, this tells you that your data doesn't deviate or spread too much from the median of the data set. This concludes this lesson. Thank you.