Lesson 1
Data Processing Cycle and ETL Explained
The data processing cycle turns raw data into useful information through a sequence of stages. ETL (Extract, Transform, Load) is the standard process for moving data from source systems into a data warehouse for analysis.
Data Processing Cycle
- Collection: gather raw data from sources.
- Preparation: clean and organise the data by removing errors and duplicates.
- Input: convert the data into machine-readable form and enter it.
- Processing: compute, sort, classify and summarise the data.
- Output: present the results as information (reports, charts).
- Storage: save the data and results for future use; the cycle repeats as feedback drives new collection.
Processing Types
- Batch processing: transactions are grouped and processed periodically (e.g. payroll).
- Real-time or online processing: each transaction is processed immediately (e.g. ATM withdrawals).
- Distributed processing: work is spread across multiple computers.
ETL
- Extract: pull data from heterogeneous sources such as databases, spreadsheets and APIs.
- Transform: clean, standardise formats, deduplicate, join, aggregate and apply business rules.
- Load: write the result into the target warehouse, either as a full load or an incremental load.
- ELT is a variant that loads first and then transforms inside the warehouse; it is common in cloud systems.
- Examples of ETL tools: Informatica, Talend, SSIS and Power Query.
Key terms
- Data processing cycle
- The sequence of stages that converts raw data into information.
- ETL
- Extract, Transform, Load: the process of integrating source data into a warehouse.
- Data warehouse
- A central repository of integrated data built for analysis.
- Batch processing
- Processing accumulated data in groups at intervals.
- Incremental load
- Loading only new or changed records.
Lesson 2
Excel Solver for Business Optimisation
Excel Solver is an add-in that finds the optimal value of an objective cell by changing decision variable cells while respecting constraints. It is used for business problems such as product mix, cost minimisation, scheduling and transportation.
Setting Up Solver
- Enable it via File > Options > Add-ins > Excel Add-ins > Solver Add-in; it then appears under the Data tab.
- Objective cell: a formula, such as total profit, set to Max, Min or Value Of.
- Variable cells: the decision variables Solver changes, such as the units of each product.
- Constraints: limits such as resources <= capacity, integer requirements (int), binary requirements (bin), and minimum or maximum values.
- Tick 'Make Unconstrained Variables Non-Negative' when negative values make no sense.
Solving Methods
- Simplex LP: for linear models; fast and gives a global optimum.
- GRG Nonlinear: for smooth nonlinear models; it may find a local optimum.
- Evolutionary: for non-smooth problems, e.g. those using IF or VLOOKUP.
Example and Reports
- Product mix: maximise Profit = 40x + 30y subject to 2x + y <= 100 (machine hours), x + y <= 80 (labour), and x, y >= 0.
- The constraint boundaries meet at x = 20, y = 60, giving a profit of 2600.
- Reports: the Answer report shows the final values and binding constraints; the Sensitivity report shows shadow prices and reduced costs; the Limits report is also available.
- A shadow price is the change in the objective per one-unit increase in a constraint's right-hand side.
Key terms
- Objective cell
- The cell Solver maximises, minimises or sets to a target value.
- Decision variables
- The changing cells Solver adjusts.
- Constraint
- A restriction the solution must satisfy.
- Simplex LP
- The Solver method for linear programming problems.
- Shadow price
- The marginal value of one extra unit of a constrained resource.
- Binding constraint
- A constraint that is fully used at the optimum.
Lesson 3
Monte Carlo Simulation in Excel
Monte Carlo simulation models uncertainty by replacing fixed inputs with random variables and recalculating a model thousands of times. In Excel this uses functions such as RAND, NORM.INV and Data Tables to produce a distribution of outcomes instead of a single estimate.
Concept
- Deterministic models give one answer; Monte Carlo gives a range of possible outcomes with probabilities.
- Uncertain inputs (demand, price, cost) are drawn from probability distributions.
- Many iterations (e.g. 1,000-10,000) approximate the output distribution.
Building it in Excel
- RAND() returns a uniform random number between 0 and 1.
- Normal input: =NORM.INV(RAND(), mean, sd).
- Uniform between a and b: =a + (b-a)*RAND(), or RANDBETWEEN(a,b) for integers.
- Discrete distributions: use VLOOKUP/XLOOKUP on cumulative probabilities with RAND().
- Repeat the model with a one-variable Data Table (blank column input cell) to record each iteration's output.
Analysing results
- Summarise with AVERAGE, STDEV.S, MIN, MAX, PERCENTILE.INC.
- Probability of an event = COUNTIF(results, condition)/number of trials.
- Plot a histogram to view the distribution of outcomes.
- Press F9 to recalculate; more trials give more stable estimates.
Key terms
- Monte Carlo simulation
- Repeated random sampling of uncertain inputs to estimate the distribution of a model's output.
- RAND()
- Excel function returning a uniform random number in [0,1).
- NORM.INV
- Inverse normal function; with RAND() it generates normally distributed random values.
- Iteration (trial)
- One recalculation of the model with a fresh set of random inputs.
- Data Table
- What-If Analysis tool used to run and store many recalculations.
