Lesson 1
Descriptive, Predictive and Prescriptive Analytics
Business analytics has three main types. Descriptive analytics explains what happened, predictive analytics forecasts what is likely to happen, and prescriptive analytics recommends what to do. Each type adds complexity and value.
Descriptive analytics
- Answers the question: what happened?
- Summarises historical data.
- Tools include reports, dashboards, summary statistics, data visualisation and OLAP.
- Example: last quarter's sales by region.
- Diagnostic analytics (why did it happen?) is often treated as an extension of descriptive analytics.
Predictive analytics
- Answers the question: what will or could happen?
- Uses historical patterns to forecast future outcomes.
- Techniques include regression, time-series forecasting, classification, machine learning and data mining.
- Example: predicting customer churn or next month's demand.
- Outputs are probabilities or estimates, not certainties.
Prescriptive analytics
- Answers the question: what should we do?
- Recommends actions using optimisation, simulation and decision analysis.
- Examples include linear programming for production planning, pricing optimisation and route planning.
- Often builds on predictive outputs.
Relationship between the types
- Moving from descriptive to predictive to prescriptive increases difficulty and business value.
- Organisations usually progress through the types in that order.
- The types are complementary and used together.
Key terms
- Descriptive analytics
- Analysis that summarises past data to show what happened.
- Predictive analytics
- Analysis that uses models to forecast future outcomes.
- Prescriptive analytics
- Analysis that recommends optimal actions using optimisation or simulation.
- Optimisation
- Finding the best decision subject to constraints.
- Forecasting
- Estimating future values from historical data.
Lesson 2
CRISP-DM Process Explained
CRISP-DM (Cross-Industry Standard Process for Data Mining) is a widely used, iterative framework for running analytics and data mining projects. It has six phases, from understanding the business problem through to deploying the solution, and work often loops back to earlier phases.
The Six Phases
- 1. Business Understanding: define objectives, success criteria, constraints and the analytics goal.
- 2. Data Understanding: collect initial data, describe and explore it, check data quality.
- 3. Data Preparation: clean, select, integrate, format and engineer features; usually the most time-consuming phase.
- 4. Modeling: select techniques, build and tune models, design the test approach.
- 5. Evaluation: check results against the business objectives, review the process, decide next steps.
- 6. Deployment: put results into use (reports, dashboards, production models), plan monitoring and maintenance.
Iterative Nature
- The phases are not strictly linear; arrows link Business Understanding and Data Understanding, and Data Preparation and Modeling.
- Evaluation may send the project back to Business Understanding.
- The outer cycle shows that projects lead to new questions and further projects.
Why Use CRISP-DM
- It is industry-, tool- and technology-neutral.
- It keeps analytics tied to business value instead of only model accuracy.
- It gives a shared vocabulary and structure for teams.
Key terms
- CRISP-DM
- Cross-Industry Standard Process for Data Mining, a six-phase framework for analytics projects.
- Business Understanding
- Phase that defines the business objectives and turns them into an analytics problem.
- Data Preparation
- Phase that cleans and transforms raw data into a modeling-ready dataset.
- Evaluation
- Phase that judges whether model results meet the business objectives.
- Deployment
- Phase that puts results into operational use.
Lesson 3
SQL Queries for Business Data
SQL (Structured Query Language) is used to retrieve and summarize business data stored in relational databases. The core queries combine SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY and JOINs to answer business questions.
Basic Query Structure
- SELECT columns FROM table chooses which data to return.
- WHERE filters rows, e.g. WHERE region = 'East' AND sales > 1000.
- ORDER BY column ASC/DESC sorts the results; LIMIT restricts the number of rows returned.
- DISTINCT removes duplicate rows.
Aggregation
- Aggregate functions: COUNT, SUM, AVG, MIN, MAX.
- GROUP BY produces one summary row per group, e.g. SELECT region, SUM(sales) FROM orders GROUP BY region.
- HAVING filters groups after aggregation; WHERE filters rows before aggregation.
Joins
- INNER JOIN returns only rows that match in both tables.
- LEFT JOIN returns all rows from the left table plus any matches; unmatched columns are NULL.
- Tables are joined on keys, e.g. orders.customer_id = customers.id.
Logical Execution Order
- FROM/JOIN, then WHERE, then GROUP BY, then HAVING, then SELECT, then ORDER BY, then LIMIT.
Key terms
- SELECT
- Clause that specifies which columns or expressions to return.
- WHERE
- Clause that filters individual rows before grouping.
- GROUP BY
- Clause that groups rows so aggregates are calculated per group.
- HAVING
- Clause that filters groups based on aggregate values.
- JOIN
- Operation that combines rows from tables using related key columns.
- Primary/Foreign Key
- A unique row identifier, and a column referencing that identifier in another table.
Lesson 4
Python Basics for Beginners
Python is a readable, general-purpose language widely used in business analytics. The basics are variables and data types, operators, collections, control flow, functions, and libraries such as pandas.
Variables and Data Types
- Variables are assigned with =, e.g. price = 19.99; no type declaration is needed.
- Core types: int (5), float (3.14), str ('text'), bool (True/False).
- type(x) shows a value's type; int(), float() and str() convert between types.
Operators and Collections
- Arithmetic operators: + - * /, plus // (floor division), % (remainder) and ** (power).
- list: ordered and mutable, e.g. [1, 2, 3]; indexing starts at 0.
- tuple: ordered and immutable; dict: key-value pairs, e.g. {'region': 'East'}; set: unique values.
Control Flow and Functions
- if / elif / else for decisions; indentation defines code blocks.
- for loops iterate over sequences; while loops repeat while a condition is true.
- Functions are defined with def name(params): and return values with return.
Libraries for Analytics
- import pandas as pd for tabular data (DataFrames); numpy for numerical work.
- matplotlib and seaborn for charts.
Key terms
- Variable
- A name that refers to a stored value.
- List
- An ordered, mutable collection of items.
- Dictionary
- A collection of key-value pairs.
- Function
- A reusable block of code defined with def.
- pandas
- A Python library for working with tabular data in DataFrames.
