Skip to content

Harden credibility of the analytics layer - #1

Open
holco-apps wants to merge 1 commit into
mainfrom
harden/credibility-analytics
Open

Harden credibility of the analytics layer#1
holco-apps wants to merge 1 commit into
mainfrom
harden/credibility-analytics

Conversation

@holco-apps

Copy link
Copy Markdown
Owner

Durcit les 3 points de crédibilité du cœur analytique avant tout lancement public.

Ce qui change

  • Double-comptage borné : double_counting_audit renvoie une fourchette (estimated_real_low=max(ventes), estimated_real_high=somme) + un point estimé + un pire cas (overlap_amount_max/overlap_pct_max), au lieu d'un max × 1.1 unique. Estimateur partagé _estimate_real_sales.
  • Trust score : cross_network_convergence compare la part de ventes à la part de clics (proxy d'exposition), au lieu d'un 1/N qui pénalisait un réseau réellement plus performant.
  • Réconciliation : product_detail et l'audit portefeuille partagent le même estimateur, les chiffres concordent.
  • README : méthodologie honnête + périmètre incrémentalité clarifié.
  • Tests : 8 tests unitaires sur agent.py (0 auparavant), verts.

Compatibilité

Additif : les clés JSON lues par le front sont conservées.

Vérif

pytest tests/test_agent.py = 8 passed. Smoke mock OK (fourchette monotone, réconciliation exacte).

- Bound the double-counting estimate: report the range max(sales) <= real <=
  sum(sales) plus a point estimate and worst-case overlap, instead of an
  arbitrary max*1.1 single figure. Shared estimator (_estimate_real_sales).
- Trust-score cross_network_convergence now benchmarks each network's
  sales-share against its click-share (proxy for real exposure), not an
  arbitrary 1/N "fair share" that penalised genuinely higher performers.
- Reconcile the per-product drill-down with the portfolio audit via the
  shared estimator so figures match across endpoints.
- Honest README methodology and incrementality scope.
- Add unit tests for the deterministic layer (agent.py).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant