← All projects

PROJECT 066 / 102 · Commerce

Completed-session purchase classification.

How well can a model classify purchase sessions without PageValues?

Focused analytical studyOnline shoppersExecuted notebook

THE RESULT

What the data shows

The largest computed metric is 0.3645 for Random forest; the smallest is 0.1495 for Prior baseline. Metric: average_precision (Average precision).

This is completed-session classification, not real-time conversion forecasting. Exact input duplicates are grouped.

Completed-session purchase classification — chart from the computed study output
Computed study output. Full values and units are available in the results download.
Computed results · 3 of 3 rows. Values rounded for display; source units and raw column names are retained in the download.
modelaccuracybalanced accuracymacro f1roc aucaverage precisionbrier
Prior baseline0.85050.50.45960.50.14950.1272
Logistic regression0.84930.50380.46980.73420.28810.1171
Random forest0.85050.52250.50840.77480.36450.1109
Download the complete result table ↓

THE METHOD

From source to answer

Fixed grouped-input train/test benchmark with a prior baseline.

The Python source exposes this study’s transformations. The complete project download includes shared preparation and evaluation routines.

EVALUATION

How the result was checked

Fixed 80/20 split of unique input groups (seed 42); exact input duplicates stay together.

9,875Training observations
2,455Test observations

Fixed models; default decision threshold; no holdout tuning.

Target and input features

Target: revenue

Inputs: administrative, administrative_duration, informational, informational_duration, productrelated, productrelated_duration, bouncerates, exitrates, specialday, month, operatingsystems, browser, region, traffictype, visitortype, weekend

Download evaluation record ↓

THE NEXT DECISION

What follows from the finding

Use the benchmark to study session behavior; obtain time-stamped partial-session data for any earlier intervention.

Where the conclusion stops

One observation is a completed session. End-of-session behavior cannot support an early-session prediction claim. PageValues is excluded from purchase models because it can encode downstream purchase information. Associations are not experiment results.

Related studies may reuse observations or holdouts. These are historical analyses; associations and backtests do not demonstrate commercial impact. Further model tuning needs new, untouched evaluation data.