In this video, we'll look at what the overall process of supervised learning is like. Specifically, you see the first model of this course, a linear regression model. That just means fitting a straight line to your data. It's probably the most widely used learning algorithm in the world today. As you get familiar with linear regression, many of the concepts you see here will also apply to other machine learning models, models that you see later in this specialization. Let's start with a problem that you can address using linear regression. Say you want to predict the price of a house based on the size of the house. This is the example we've seen earlier this week. We're going to use the dataset on house sizes and prices from Portland, a city in the United States. Here we have a graph where the horizontal axis is the size of the house in square feet, and the vertical axis is the price of the house in thousands of dollars. Let's go ahead and plot the data points for various houses in the dataset. Here at each data point, each of these little crosses is a house with a size and a price that it most recently was sold for. Now let's say you're a real estate agent in Portland and you're helping a client sell her house and she's asking you, how much do you think you can get for this house? This data set might help you estimate the price she could get for it. You start by measuring the size of the house, and it turns out that her house is 1250 square feet. How much do you think this house could sell for? One thing you could do is, you can build a linear regression model from this dataset. Your model will fit a straight line to the data, which might look like this. And based on this straight line fit to the data, you can kind of see that if a house is 1250 square feet. It will intersect the best fit line over here. And if you trace that to the vertical axis on the left, you can see the prices may be around here, say about $220,000. So this is an example of what's called a supervised learning model. We call this supervised learning because you are first training your model by giving it data that has the right answers. Because you give the model examples of hoses with both the size of the hulls as well as the price that the model should predict for each hulls. where here the prices, that is the right answers, are given for every pulse in the dataset. This linear regression model is a particular type of supervised learning model. It's called a regression model because it predicts numbers as the output, like prices in dollars. Any supervised learning model that predicts a number such as 220,000 or 1.5 or negative 33.2 is addressing what's called a regression problem. So linear regression is one example of a regression model, but there are other models for addressing regression problems too. And we'll see some of those later in course two of this specialization. And just to remind you, in contrast with the regression model, the other most common type of supervised learning model is called a classification model. A classification model predicts categories or discrete categories, such as predicting if a picture is of a cat or a dog, or if, given the medical record, it has to predict if a patient has a particular disease. You see more about classification models later in this course as well. So as a reminder about the difference between classification and regression, in classification, there are only a small number of possible outputs. If your model is recognizing cats versus dogs, that's two possible outputs. Or maybe you're trying to recognize any of 10 possible medical conditions in a patient. So if there's a discrete finite set of possible outputs, we call it a classification problem, whereas in regression, there are infinitely many possible numbers that the model would output. In addition to visualizing this data as a plot here on the left, there's one other way of looking at the data that would be useful, and that's a data table here on the right. The data comprises a set of inputs. This would be the size of the house, which is this column here. It also has outputs. You're trying to predict the price, which is this column here. Notice that the horizontal and vertical axes respond to these two columns. the size, and the price. And so if you have, say, 47 rows in this data table, then there are 47 of these little crosses on the plot of the left, each cross corresponding to one row of the table. For example, The first row of the table is a house with size 2104 square feet. So that's around here. And this house sold for $400,000, which is around here. So this first row of the table is plotted as this data point over here. Now, let's look at some notation for describing the data. This is notation that you find useful throughout your journey in machine learning. As you increasingly get familiar with machine learning terminology, this would be terminology that you can use to talk about machine learning concepts with others as well, since a lot of this is quite standard across AI. You'll be seeing this notation multiple times in this specialization, so it's okay if you don't remember everything the first time through. It will naturally become more familiar over time. The dataset that you just saw and that is used to train the model is called a training set. Note that your client's pulse is not in this dataset because it's not yet sold, so no one knows what this price is. So to predict the price of your client's health, you first train your model to learn from the training set, and that model can then predict your client's closest price. In machine learning, the standard notation to denote the input here is lowercase x, and we call this the input variable. It's also called a feature or an input feature. For example, for the first hulls in your training set, x is the size of the hulls, so x equals 2104. The standard notation to denote the output variable, which you're trying to predict, which is also sometimes called the target variable, is lowercase y. And so here, y is the price of the house. And for the first training example, this is equal to 400. So y equals 400. So the data set has one row for each house. And in this big training set, there are 47 rows, with each row representing a different training example. We're going to use lowercase m to refer to the total number of training examples. And so here, m is equal to 47. To indicate a single training example, we're going to use the notation parentheses. So for the first training example,, this pair of numbers is 2104, 400. Now, we have a lot of different training examples. We have 47 of them in fact. So to refer to a specific training example, this will correspond to a specific row in this table on the left. I'm going to use the notation x superscript in parentheses i comma y superscript in parentheses i. The superscript tells us that this is the i-th training example. such as the first, second, or third up to the 47th chain example. I here refers to a specific row in the table. So for instance, here is the first example. when i equals 1 in the training set. And so x superscript 1 is equal to 2104, and y superscript 1 is equal to 400. And let's add the superscript 1 here as well. Just a note, this superscript i in parentheses is not exponentiation. So when I write this, This is not x squared. This is not x to the power of 2. It just refers to the second training example. So this i is just an index in the training set and refers to row i in the table. In this video, you saw what a training set is like, as well as a standard notation for describing this training set. In the next video, let's look at what it'll take to take this training set that you just saw and feed it to a learning algorithm so that the algorithm can learn from this data. We'll see that in the next video.