Find a course
Age level: University students (18–25)IntermediateData & AI

Machine Learning Fundamentals

Regression, classification, evaluation and clustering, explained with live models and code

⏱ 2 h 50 min5 modules · 11 lessons72 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 11 lessons (about 2 h 50 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons11 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Frame a problem as regression, classification or clustering and lay out the full machine learning workflow
  • Prepare data by handling missing values, encoding categories, scaling features and avoiding data leakage
  • Fit a linear regression model by minimizing mean squared error and explain how gradient descent works
  • Apply logistic regression, decision trees, k-nearest neighbors and ensembles, and explain how each makes predictions
  • Evaluate classifiers with confusion matrices, precision, recall, F1, ROC curves and AUC, and choose a threshold
  • Diagnose underfitting and overfitting using the bias-variance trade-off, and fix them with regularization and more data
  • Use k-fold cross-validation and hyperparameter search without contaminating the test set
  • Run k-means clustering, describe PCA, and plan monitoring for drift and fairness after deployment

About this course

Machine learning is the engine behind recommendation systems, fraud detection, medical image analysis and modern AI assistants. Many courses either stay at the level of buzzwords or jump straight into heavy math and libraries. This free course sits in between: it explains how the core algorithms actually work, with formulas you can see and change, small code challenges you solve in the browser, and worked numeric examples.

You'll start with the machine learning workflow and the unglamorous step that decides most projects: preparing data. You'll handle missing values, encode categories, scale features and split data without leaking the answer. Then you'll build up regression from a straight line, define a loss function, and train it with gradient descent, watching the learning rate make or break convergence.

The classification module covers logistic regression, decision trees, k-nearest neighbors and ensembles, then the metrics that matter: precision, recall, F1 and ROC curves. Next you'll tackle generalization head-on with the bias-variance trade-off, regularization, cross-validation and hyperparameter tuning. Finally, you'll explore unsupervised learning with k-means and PCA, see how neural networks extend everything you've learned, and look at what it takes to deploy models responsibly: monitoring, data drift and fairness.

The course is written for university students, bootcamp learners and self-taught developers who know basic algebra and a little programming. Code challenges use short JavaScript functions, and every formula is explained in words before it appears. Pass the final exam to earn a free certificate of completion.

Syllabus

  1. The Machine Learning Workflow and Data

    Frame problems for machine learning, follow the workflow from question to deployment, and prepare data without fooling yourself.

    1. What Machine Learning Is and How Projects Work14 min
    2. Preparing Data: Cleaning, Encoding, Scaling and Splitting15 min
  2. Regression and Gradient Descent

    Build linear regression from the ground up, measure error with a loss function, and train models with gradient descent.

    1. Linear Regression and the Loss Function15 min
    2. Gradient Descent: How Models Learn15 min
  3. Classification Models and Metrics

    Predict categories with logistic regression, decision trees, nearest neighbors and ensembles, then measure classifiers properly.

    1. Logistic Regression and Probabilities14 min
    2. Decision Trees, Nearest Neighbors and Ensembles16 min
    3. Evaluating Classifiers: Precision, Recall, F1 and ROC15 min
  4. Generalization: Overfitting, Regularization and Validation

    Understand the bias-variance trade-off, control complexity with regularization, and measure performance honestly with cross-validation.

    1. The Bias-Variance Trade-off and Regularization15 min
    2. Cross-Validation and Hyperparameter Tuning14 min
  5. Unsupervised Learning, Neural Networks and Deployment

    Find structure in unlabeled data with clustering and PCA, see how neural networks extend these ideas, and take models responsibly into production.

    1. Unsupervised Learning: k-Means Clustering and PCA15 min
    2. Neural Networks, Deployment and Responsible ML15 min
  6. Final exam and certificate

    20 questions drawn from a pool of 38. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

Your new model predicts daily website visitors with an MAE of 300. Simply predicting yesterday's visitor count gives an MAE of 310. What is the best conclusion?

  1. The model is excellent because 300 is a low error
  2. MAE is the wrong metric for visitor counts
  3. The model adds little over a trivial baseline, so it needs better features or may not be worth its complexity
  4. The baseline must have a bug, since simple methods cannot be that good
Show the answer

Answer: C. The model adds little over a trivial baseline, so it needs better features or may not be worth its complexity

An error number means little in isolation; it must be compared with a baseline. A 10-visitor improvement over "same as yesterday" is tiny. Simple baselines are often strong for time series, so their good performance is a real result, not a bug.

Feature
An input variable used by a model, such as age or the number of rooms in a house.
Label (target)
The value a supervised model learns to predict.
Regression
A supervised task that predicts a continuous number.
Classification
A supervised task that predicts a category.
Clustering
An unsupervised task that groups similar data points together.
Training set
The data a model learns its parameters from.

Frequently asked questions

How much math do I need for machine learning?

To understand and apply the core ideas, algebra and basic statistics are enough, and this course explains each formula in words. To go deeper, for example to read research papers or design new models, you will want linear algebra (vectors and matrices), calculus (derivatives) and probability.

Which programming language is best for machine learning?

Python is the standard for most machine learning work because of libraries such as NumPy, pandas, scikit-learn, PyTorch and TensorFlow. This course uses short JavaScript functions only because they run directly in your browser; the concepts transfer directly to Python.

What is the difference between supervised and unsupervised learning?

Supervised learning trains on examples with known answers, called labels, to predict those answers for new data, as in regression and classification. Unsupervised learning works with unlabeled data and finds structure on its own, such as clusters of similar customers or a compressed set of features.

Why not just use accuracy to evaluate every model?

Accuracy hides which mistakes a model makes and can be very misleading when classes are imbalanced. A model that always predicts "no fraud" is 99% accurate if fraud is 1% of cases, yet useless. Precision, recall, F1 and ROC curves show the trade-offs that matter.

How do I know if my model is overfitting?

Compare performance on training data with performance on validation data the model did not train on. A model that is much better on training data than on validation data is overfitting. Learning curves and cross-validation make this comparison more reliable.

Is deep learning always better than classical machine learning?

No. For tabular business data such as spreadsheets of customer records, tree-based ensembles like gradient boosting are often as accurate as or more accurate than neural networks, and they are faster and easier to explain. Deep learning shines on images, audio, text and very large datasets.

Is the certificate an accredited qualification?

No. It is a certificate of completion showing you finished the lessons and passed the exam. It demonstrates initiative and foundational knowledge, but it is not an academic or professional credential.

Sources and further reading

Related courses

University studentsIntermediate

Neural Networks Explained

From a single neuron to transformers, with the math made visual

Data & AI
2 h 45 min11 lessonsCertificate
University studentsIntermediate

Python for Data Science

NumPy, pandas, data cleaning, charts and a first model with scikit-learn

Data & AI
2 h 50 min12 lessonsCertificate
Adults & professionalsBeginner

SQL for Beginners

Query, filter, summarize and join data with confidence

Data & AI
2 h 10 min11 lessonsCertificate
Adults & professionalsIntermediate

Statistics for Data Analysis

The statistics analysts use every day, from skewed averages to A/B tests

Data & AI
2 h 20 min11 lessonsCertificate
Adults & professionalsBeginner

Data Analysis Fundamentals

Ask good questions, clean data, summarize it honestly and turn numbers into decisions

Data & AI
2 h 20 min12 lessonsCertificate