Data Analysis and Machine Learning Using R Training Course

Duration 10 days 18 modules · 65 contact hours
Level Intermediate Certificate on completion
Who attends Statistician, Data Analyst and others
Fee from USD 2,200 KSh 190,000 for Kenyan organisations
Where 52 cities + online See dates by city
Next start 16 Nov 2026 Course code SD-DS-058

Before you join: Participants should understand basic descriptive statistics, including distributions, averages, variation, correlation and sampling.

Dates & prices

Two start dates a month in every city, and live online on weekdays or weekends. Fees are per participant; classroom fees include tuition, materials, lunch and refreshments, and the certificate.

Suggest a date or city

Showing the next six months. Later dates, other cities and private deliveries for your team are available on request.

Course overview

Data teams often have access to transaction, operational, customer and survey data but struggle to turn it into defensible analysis or deployable predictive models. Common failures include poorly specified questions, inconsistent data preparation, unsuitable validation methods, misleading performance measures and results that cannot be reproduced by another analyst. Statisticians and analysts need an R-based workflow that joins sound statistical reasoning with practical machine learning.

This course develops that workflow from importing and reshaping data through exploratory analysis, statistical inference, predictive modelling and model communication. Participants use R, tidyverse and tidymodels to prepare data, create features, fit regression, classification, tree-based and clustering models, and compare alternatives using resampling. The course addresses missing data, imbalance, leakage, uncertainty, fairness considerations, model interpretation and reproducible reporting. Participants learn to select methods according to the decision problem, data structure, operational constraints and cost of errors.

Instruction combines concise technical briefings with guided analysis of realistic banking, public-sector, retail and service-delivery cases. Participants work with data from the first week, building scripts, visualisations, models and reports progressively. By the end of the course, each participant has produced a documented R analysis containing a defined problem statement, data-preparation pipeline, exploratory findings, validated model comparison, interpretation and recommendations for use.

The course is designed for statisticians, data analysts, quantitative researchers and technically confident professionals who need to analyse structured data and build machine learning models in R. It is delivered over 10 instructor-led days in a classroom in 50+ cities or live online. Training runs from 08:30 to 16:30 each day, with approximately 6.5 contact hours, and participants receive a certificate of completion.

What you will be able to do

  • Formulate analytical questions, target variables and success measures from business requirements
  • Prepare reproducible R data pipelines using tidyverse data manipulation functions
  • Conduct exploratory analysis using statistical summaries, visual diagnostics and grouped comparisons
  • Fit and interpret regression and classification models with appropriate assumptions
  • Evaluate competing machine learning models using cross-validation and relevant performance metrics
  • Engineer predictors while controlling data leakage, missingness and class imbalance
  • Explain model predictions using coefficients, variable importance and partial dependence plots
  • Produce a reproducible R report containing findings, model evidence and recommendations

Benefits of attending

For you

  • Build statistically defensible machine learning models in R
  • Interpret model performance beyond a single accuracy measure
  • Create reusable analysis scripts and parameterised reports
  • Discuss model limitations confidently with technical and non-technical stakeholders
  • Develop a portfolio-quality predictive modelling case study

For your organisation

  • Improves consistency of data preparation and analytical documentation
  • Reduces unsupported model selection based on apparent training performance
  • Produces clearer evidence for risk, customer and operational decisions
  • Strengthens internal capability for reproducible R-based analysis
  • Identifies model limitations before recommendations reach decision makers

Course modules

18 modules over 10 days

Participants can structure an R project around a decision question, target variable and measurable success criteria.

  • Analytical problem statements linking decisions, outcomes, users and constraints
  • Target variables, prediction horizons and units of analysis defined
  • RStudio projects, scripts and relative paths for reproducible work
  • Tidy data principles for rows, columns and observational units
  • Data dictionaries recording source fields, definitions and permitted values
  • Success metrics aligned with financial, service or risk decisions

Participants can import structured data into R and diagnose material quality issues before analysis.

  • CSV, Excel and database extracts imported with explicit data types
  • Inspecting dimensions, variable classes, unique values and duplicate records
  • Missingness profiles separated by variable, record and source system
  • Range checks identify impossible dates, amounts, codes and categories
  • Reconciling record counts against source extracts and control totals
  • Quality findings documented in an auditable data assessment log

Participants can transform and combine raw data into analysis-ready tables using tidyverse functions.

  • filter, select and mutate operations create scoped analytical datasets
  • Grouped summaries calculate counts, rates, totals and distribution statistics
  • Joining tables with primary keys, foreign keys and match checks
  • pivot_longer and pivot_wider reshape repeated measurement data correctly
  • String and date transformations standardise categories and time fields
  • Pipeline scripts separate raw, intermediate and curated data outputs

Participants can investigate distributions, relationships and anomalies using targeted statistical graphics.

  • Histograms, density plots and boxplots assess continuous variable distributions
  • Bar charts and proportion tables examine categorical variable composition
  • Scatterplots reveal nonlinear relationships, outliers and heteroscedasticity patterns
  • Faceting compares distributions across regions, products or customer segments
  • Correlation matrices screen associations among numeric predictor variables
  • ggplot2 scales, labels and themes produce readable analytical graphics

Participants can apply confidence intervals and hypothesis tests while stating their assumptions and limitations.

  • Sampling distributions explain uncertainty in estimated means and proportions
  • Confidence intervals communicate plausible ranges around sample estimates
  • Two-sample tests compare groups using appropriate assumptions and alternatives
  • Chi-square tests assess association between categorical variables and outcomes
  • Effect sizes distinguish practical significance from small p-values
  • Multiple testing risks considered when screening many variables simultaneously

Participants can fit, diagnose and interpret linear regression models for continuous targets.

  • Ordinary least squares estimates relationships between predictors and outcomes
  • Coefficient interpretation distinguishes units, reference categories and conditional effects
  • Residual plots assess linearity, constant variance and influential observations
  • Variance inflation factors identify problematic multicollinearity among predictors
  • Interaction terms represent conditional relationships between explanatory variables
  • Prediction intervals distinguish individual forecasts from mean response estimates

Participants can build and interpret logistic regression models for binary decision outcomes.

  • Binary target encoding defines positive classes and event direction
  • Logistic regression models log-odds for observed binary outcomes
  • Odds ratios communicate predictor effects with suitable reference categories
  • Predicted probabilities support threshold-based operational decision rules
  • Confusion matrices separate true positives, false positives and misses
  • ROC curves and AUC compare discrimination across classification models

Participants can create, transform and select predictors without contaminating model evaluation.

  • Derived ratios, lags and aggregates encode operational behaviour patterns
  • Log transformations reduce skewness in monetary and count variables
  • Dummy variables represent nominal categories for regression-based models
  • Scaling and centring prepare numeric predictors for distance-based methods
  • Missing-value imputation fitted within training data prevents information leakage
  • Feature recipes document repeatable preprocessing steps for new records

Participants can estimate out-of-sample model performance using appropriate resampling designs.

  • Training, validation and test sets preserve an unbiased final assessment
  • K-fold cross-validation estimates performance across repeated data partitions
  • Stratified sampling preserves event prevalence in classification partitions
  • Time-based splits respect temporal ordering in forecasting and risk data
  • Hyperparameter tuning compares candidate settings without using test data
  • Selection criteria balance predictive performance, stability and operational usability

Participants can train and tune tree-based models for nonlinear prediction problems.

  • Recursive partitioning creates interpretable decision rules from predictor splits
  • Tree depth and minimum node size control model complexity
  • Random forests reduce variance through bootstrap aggregation and feature sampling
  • Gradient boosting improves predictions through sequential residual fitting
  • Variable importance ranks predictors while recognising correlated-feature limitations
  • Partial dependence plots show average predictor effects on predictions

Participants can assess distance-based and margin-based classifiers against baseline models.

  • k-nearest neighbours classify records using local feature-space proximity
  • Distance metrics require scaled predictors and meaningful feature selection
  • Support vector machines maximise class separation using decision margins
  • Kernel functions represent nonlinear boundaries without explicit transformations
  • Tuning neighbour counts, cost and kernels uses cross-validation results
  • Benchmark comparisons identify when simpler models remain preferable

Participants can design classification evaluation and threshold rules for rare-event outcomes.

  • Prevalence establishes the baseline difficulty of rare-event prediction
  • Precision, recall and F1 score assess minority-class model performance
  • Precision-recall curves provide clearer evidence than ROC under imbalance
  • Class weights alter training loss for unequal error consequences
  • Oversampling and undersampling applied only within resampling partitions
  • Decision thresholds reflect investigation capacity and false-positive costs

Participants can create and assess useful clusters when no labelled outcome is available.

  • Standardised features prepare mixed-scale data for clustering algorithms
  • K-means clustering partitions observations around within-cluster similarity
  • Hierarchical clustering displays nested groups through dendrogram structures
  • Silhouette scores assess cohesion and separation among candidate clusters
  • Cluster profiles compare behaviours, needs and value measures
  • Segmentation labels translated into actionable service or treatment strategies

Participants can build baseline forecasts and validate them using time-respecting evaluation methods.

  • Trend, seasonality and calendar effects identified through time plots
  • Lagged predictors capture persistence in operational and financial series
  • Moving averages provide transparent baseline forecasting methods
  • ARIMA models represent autoregressive, differencing and moving-average components
  • Rolling-origin resampling evaluates forecasts across successive time periods
  • MAE, RMSE and MAPE compared against business forecasting requirements

Participants can explain model behaviour, identify material risks and document responsible-use controls.

  • Coefficient tables and marginal effects explain regression model behaviour
  • Permutation importance tests sensitivity of predictions to each feature
  • Individual conditional expectation plots show case-level prediction variation
  • Proxy variables assessed for potential protected-group discrimination risks
  • Subgroup performance checks reveal unequal error rates across populations
  • Model cards record purpose, data, metrics, limits and approvals

Participants can produce an auditable analytical report combining R code, outputs and recommendations.

  • Quarto documents combine narrative, code, tables and graphics
  • Chunk options control code visibility, warnings and figure presentation
  • Parameters support repeatable reports for different periods or regions
  • Versioned inputs and package dependencies support reproducible reruns
  • Executive summaries state findings, uncertainty and decision implications
  • Technical appendices preserve methods, assumptions and validation evidence

Participants can prepare a model handover plan covering scoring, monitoring and ownership.

  • Scoring specifications define required inputs, transformations and prediction outputs
  • Data refresh schedules identify timing, ownership and quality controls
  • Performance monitoring tracks drift, calibration and outcome availability
  • Champion-challenger comparisons support controlled model replacement decisions
  • Approval records document accountable owners, review dates and restrictions
  • Implementation plans distinguish analytical prototypes from production services

Participants can build, review and present a complete R-based analysis with validated model recommendations.

  • Decision brief defines stakeholders, target outcome and measurable success criteria
  • Data pipeline imports, validates and transforms source records reproducibly
  • Exploratory findings identify patterns, anomalies and candidate predictor variables
  • Competing models compared through appropriate resampling and performance metrics
  • Interpretation addresses drivers, uncertainty, fairness and operational constraints
  • Quarto report presents recommendations, monitoring requirements and implementation actions

Exercises and examples are adapted to each cohort's sectors and roles.

What you take back to work

  1. R project and data dictionary template
  2. Tidyverse data-preparation pipeline
  3. Exploratory analysis and visual diagnostics pack
  4. Tidymodels validation and model-comparison template
  5. Model card and monitoring checklist
  6. Quarto analytical report template

Who should attend

  • Statistician — needs reproducible R workflows for modern predictive modelling
  • Data Analyst — needs to progress from reporting to validated machine learning models
  • Quantitative Researcher — needs stronger methods for analysing observational and survey data
  • Risk Analyst — needs defensible classification and forecasting models for decision support
  • Business Intelligence Analyst — needs to build predictive insights from operational datasets
  • Research Officer — needs R methods for evidence-based programme and policy analysis

Skills and tools covered

R data wranglingExploratory data analysisPredictive modellingModel validationFeature engineeringReproducible reporting

Tools and standards

R, RStudio, tidyverse, tidymodels

How the course runs

Training methodology

The instructor introduces each method through short technical briefings, then guides participants through structured R analysis using realistic datasets. Case work covers problem framing, data quality, exploratory analysis, modelling choices and communication of findings. Individual and small-group activities use scripts, visual diagnostics and model comparison outputs rather than slide-based answers. Simulated stakeholder reviews test whether conclusions are supported by evidence. Participants maintain an application plan that identifies a suitable workplace dataset, decision question, success measure and governance considerations.

Requirements and prerequisites

Participants should understand basic descriptive statistics, including distributions, averages, variation, correlation and sampling. They should be comfortable working with spreadsheet-style datasets containing rows, columns and common data types. Some prior programming experience is helpful, ideally in R, Python, SQL or another analytical language; participants should be able to read simple code and diagnose straightforward errors. Familiarity with linear regression is useful but not essential. Advanced calculus, matrix algebra, prior machine learning study and production software engineering experience are not required.

A typical training day

08:30 – 10:30First session
10:30 – 10:45Refreshment break
10:45 – 12:30Second session
12:30 – 13:30Lunch and networking
13:30 – 15:00Third session
15:00 – 15:15Refreshment break
15:15 – 16:30Workshop and daily review

Live online deliveries follow the same structure in East Africa Time, with shorter screen blocks and longer breaks.

What the fee includes

  • Instruction by a practitioner facilitator
  • Full course workbook and materials
  • Exercise files, templates and case studies
  • Refreshments and lunch on classroom deliveries
  • Certificate of completion
  • Post-course application plan

Frequently asked questions

Participants should be able to work with data tables and understand basic statistical concepts. Prior R experience is helpful but not mandatory; those new to R should complete introductory R practice before the course or allow extra preparation time.

Bring a laptop capable of running a current version of R and RStudio, with permission to install packages if required. Course datasets and setup guidance are provided, and participants may discuss suitable workplace data without sharing confidential records.

It is best suited to statisticians, analysts, researchers and quantitative professionals who work with structured datasets. It is particularly relevant for people moving from descriptive reporting or classical statistics into predictive modelling.

The course assumes familiarity with data concepts and concentrates on analytical judgement, statistical modelling and machine learning validation. It gives substantial attention to leakage, resampling, model comparison, interpretation and reporting rather than only teaching R syntax.

Participants leave with reusable R project structures, preprocessing patterns, model-validation templates and report formats. The methods apply directly to tasks such as customer attrition prediction, credit-risk screening, service demand forecasting and programme segmentation.

The first part establishes R workflows, data preparation, exploratory analysis and statistical models while participants begin building analysis outputs. The later sessions focus on machine learning, validation, governance, reporting and a complete capstone analysis; each day runs 08:30-16:30 with about 6.5 contact hours.

Questions about this course?

Ask about dates, fees, group bookings or running it for your team. Our training team replies by email.