One of the most asked questions is How can a Machine Learn? Actually it can.
How does it learn? How do we teach a machine to learn? We give it examples.

We give many examples to the Machine.
We take training data to teach a machine or an algorithm to do prediction accurately

E.g. we take a new data sample and the machine should Predict Y.
We take a Predictive model, which takes the Training Data which are historical data and produces the Output.
We create mathematical Model with Training set and then we give the model a new example which is not in training set and the model give the output y.
A model is characterized by a set of parameters and the Goal is to learn those parameters and after learning is done, we take new data and Predict the Outcome.