Data & statistical analysis

From messy inputs to evidence and decisions.

This collection brings together product analytics, customer and retail analysis, intervention evaluation, statistical testing in R, reusable data tooling and an employer-direct labour-market pipeline. Several of the analyses look at human behaviour: customer journeys, memory and spacing, stress and anxiety interventions, and preferences.

Product & customer analytics

Business questions translated into measurable decisions.

These studies combine data preparation, descriptive analysis, statistical reasoning, visual interpretation and recommendations that acknowledge uncertainty.

Customer analytics · Segmentation · R/Python

Retail Customer Segmentation

Analysed 264,834 cleaned retail transactions to compare customer share, sales contribution, unit pricing and brand affinity across lifestage and value segments.

8.7%sales from Budget Older Families
6.4%customer share for that segment
p < 2.2×10⁻¹⁶unit-price difference

Mainstream young and mid-age singles/couples paid about 4.05 per unit versus 3.69 for comparable Budget and Premium customers. The analysis supports targeted placement and promotion rather than one-size-fits-all marketing.

Experiment evaluation · Matched controls

Trial vs Control Store Evaluation

Matched trial store 77 with control store 233 using pre-trial performance, then assessed sales and customer uplift against control confidence ranges.

2 of 3trial months significant
7.34March t-value
12.48April t-value
The uplift was meaningful in specific periods, but not uniformly significant. Extend or replicate the trial before a full rollout.

Statistical analysis in R

Inference, effect sizes and visual interpretation.

Prepared from R Markdown files and R code. The reports show the complete reasoning: hypotheses, descriptive results, test selection, assumptions, exact statistics and limitations.

Interaction plot of spacing interval and material type on memory score
Two-way ANOVA

Memory Performance: Spacing × Material

Spacing, material and their interaction were not significant: spacing F(2,174)=0.646, p=.525; material F(1,174)=0.144, p=.705; interaction F(2,174)=0.646, p=.525.

Partial eta-squared values were below .01, so the visible line changes represented negligible practical differences rather than a reliable experimental effect.

Participant-level stress scores before and after an intervention
Paired-samples t-test

Stress Intervention Evaluation

Mean stress decreased from 7.4 to 4.2, a 3.2-point reduction. The paired result was significant, t(4)=4.00, p=.020, 95% CI [0.81, 5.59].

Every participant moved downward in the visual, but the sample contained only five people, so the effect should be treated as promising rather than broadly generalisable.

Adjusted residuals identifying cells driving a categorical association
Chi-square methods

Categorical Preference Analysis

A goodness-of-fit test found 54 versus 46 preferences did not differ from a 50/50 expectation, χ²(1)=0.64, p=.424. A separate independence test found a gender–preference association, χ²(1)=4.74, p=.030.

Adjusted residuals of approximately ±2.38 identified which cells drove the overall association, moving the interpretation beyond a single p-value.

Interaction plot showing fasting type, exercise frequency and heart-health improvement
t-tests · Chi-square · One-way and factorial ANOVA

Applied Statistical Analysis in R

Four studies examined anxiety interventions, personality and film preference, weight-loss programmes, and fasting–exercise interactions in heart health.

StudyResultInterpretation
Anxietyt(18)=-2.51, p=.022, d=-1.12Exercise scored 2.9 points lower than meditation.
Film preferenceχ²(2)=13.19, p=.0014, V=.33Moderate association driven by action and romantic preferences.
Diet programmesF(3,36)=16.87, p<.001, η²=.58All diets beat control; low calorie had the highest mean.
Heart healthFasting × exercise F(3,32)=13.40, p<.001The effect of exercise depended on fasting programme.
The 48-hour fasting plus frequent-exercise combination produced no advantage over control and performed worse than 5/2 or 16/8 with frequent exercise. This is a caution signal, not proof that fasting generally harms heart health.

Data workflows

Analysis supported by reusable engineering.

The supporting tools reduce repetitive preparation and preserve a clear path from raw evidence to analysis-ready outputs.

Python utility · Pandas · OpenPyXL · PyArrow

Data Cleaning & Format Conversion Utility

Built while working with Kaggle datasets for customer churn, product drop-off and other analyses. It removes repeated manual cleaning and makes it easy to continue work in Excel with PivotTables.

Raw dataCleaning profileValidation + logCSV/XLSX/ParquetAnalysis

The cleaner preserves true missing values, handles duplicate and empty records, and applies standard or aggressive rules. Runtime parameters select conversions between CSV, Excel and Parquet, including Excel sheet selection and overwrite protection.

Analytics engineering · Python · Parquet

South African Technology Job Market Analysis

Builds a unified employer-direct dataset by collecting public vacancies from Greenhouse, Lever, Workday, SuccessFactors, Oracle HCM, WordPress and custom sources.

6+provider families
Skillsnormalised extraction
Parquetanalytical contract

The operational pipeline preserves immutable raw snapshots, standardises fields, tracks vacancy observations, extracts skills and requirements, classifies roles and produces a quality-controlled dataset. Current work focuses on provider reliability before dashboards and published market insights.