Supervised learning is a type of machine learning algorithm that uses a known dataset (labeled data) to predict outcomes. It uses input variables (x) to predict an output variable (y). Examples of supervised learning include linear regression, logistic regression, and support vector machines.
Unsupervised learning is a type of machine learning algorithm that draws inferences from datasets consisting of input data without labeled responses. It is used to cluster data into groups and identify patterns or relationships. Examples of unsupervised learning include clustering, dimensionality reduction, and anomaly detection.