basically points that were selected at random from the original complete dataset have been plotted it has basically the same shapeso that' good thing it' representative of our data that' importantnow let' plot the remaining points that we reserved as test data tdbuufs uftu uftuherewe see our remaining for testing also has the same general shape as our original data so think that' representative test set too it' little bit smaller than you would like to see in the real worldfor sure you probably get little bit of better result if you had , points instead of for exampleto choose from and reserved instead of now we're going to try to fit an th degree polynomial to this dataand we'll just pick the number at random because know it' really high order and is probably overfitting let' go ahead and fit our th degree polynomial using oqqpmz oqqpmzgju zwhere is an array of the training data onlyand is an array of the training data only we are finding our model using only those points that we reserved for training now we have this qfunction that results that we can use to predict new valuesy oqbssbz usbjo oqbssbz usbjoqoqqpmz oqqpmzgju  