probative-labs 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- probative_labs-0.1.0/LICENSE +202 -0
- probative_labs-0.1.0/NOTICE +9 -0
- probative_labs-0.1.0/PKG-INFO +146 -0
- probative_labs-0.1.0/README.md +116 -0
- probative_labs-0.1.0/pyproject.toml +83 -0
- probative_labs-0.1.0/pyproject.toml.orig +68 -0
- probative_labs-0.1.0/src/probative/__init__.py +8 -0
- probative_labs-0.1.0/src/probative/cli.py +431 -0
- probative_labs-0.1.0/src/probative/config.py +239 -0
- probative_labs-0.1.0/src/probative/engine/__init__.py +23 -0
- probative_labs-0.1.0/src/probative/engine/design.py +171 -0
- probative_labs-0.1.0/src/probative/engine/diagnostics.py +188 -0
- probative_labs-0.1.0/src/probative/engine/fe.py +85 -0
- probative_labs-0.1.0/src/probative/engine/imputation.py +413 -0
- probative_labs-0.1.0/src/probative/engine/panel.py +158 -0
- probative_labs-0.1.0/src/probative/governance.py +25 -0
- probative_labs-0.1.0/src/probative/guardrails.py +139 -0
- probative_labs-0.1.0/src/probative/ingest/__init__.py +20 -0
- probative_labs-0.1.0/src/probative/ingest/files.py +87 -0
- probative_labs-0.1.0/src/probative/ingest/health.py +169 -0
- probative_labs-0.1.0/src/probative/ingest/mapping.py +369 -0
- probative_labs-0.1.0/src/probative/ingest/pseudonymize.py +61 -0
- probative_labs-0.1.0/src/probative/lineage.py +44 -0
- probative_labs-0.1.0/src/probative/pipeline.py +816 -0
- probative_labs-0.1.0/src/probative/playbooks/__init__.py +20 -0
- probative_labs-0.1.0/src/probative/playbooks/base.py +30 -0
- probative_labs-0.1.0/src/probative/playbooks/service_desk.py +61 -0
- probative_labs-0.1.0/src/probative/report/__init__.py +5 -0
- probative_labs-0.1.0/src/probative/report/appendix.py +150 -0
- probative_labs-0.1.0/src/probative/report/pack.py +119 -0
- probative_labs-0.1.0/src/probative/report/svg.py +94 -0
- probative_labs-0.1.0/src/probative/report/templates/evidence_pack.html.j2 +278 -0
- probative_labs-0.1.0/src/probative/report/templates/evidence_pack.md.j2 +186 -0
- probative_labs-0.1.0/src/probative/report/templates/method_appendix.md.j2 +16 -0
- probative_labs-0.1.0/src/probative/rollout/__init__.py +26 -0
- probative_labs-0.1.0/src/probative/rollout/power.py +214 -0
- probative_labs-0.1.0/src/probative/rollout/prereg.py +145 -0
- probative_labs-0.1.0/src/probative/rollout/waves.py +83 -0
- probative_labs-0.1.0/src/probative/schema.py +114 -0
- probative_labs-0.1.0/src/probative/simulate.py +625 -0
- probative_labs-0.1.0/src/probative/validation.py +107 -0
- probative_labs-0.1.0/src/probative/value/__init__.py +13 -0
- probative_labs-0.1.0/src/probative/value/deflection.py +103 -0
- probative_labs-0.1.0/src/probative/value/roi.py +175 -0
- probative_labs-0.1.0/src/probative/worktypes/__init__.py +26 -0
- probative_labs-0.1.0/src/probative/worktypes/drift.py +93 -0
- probative_labs-0.1.0/src/probative/worktypes/mix.py +81 -0
- probative_labs-0.1.0/src/probative/worktypes/rules.py +67 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Probative Labs
|
|
2
|
+
Copyright 2026 Vivek Reddy Gaddam
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Vivek Reddy Gaddam and contributors,
|
|
5
|
+
licensed under the Apache License, Version 2.0.
|
|
6
|
+
|
|
7
|
+
"Probative Labs" is a trademark of Vivek Reddy Gaddam. The Apache License does not grant
|
|
8
|
+
permission to use the name or logo except as required to describe the origin of
|
|
9
|
+
the work.
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: probative-labs
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Measure what AI actually changed: causal, graded, reproducible ROI evidence for enterprise AI programs.
|
|
5
|
+
Keywords: ai-roi,causal-inference,difference-in-differences,itsm,evidence
|
|
6
|
+
Author: Vivek Reddy Gaddam
|
|
7
|
+
Author-email: Vivek Reddy Gaddam <vivekreddyvicky143@gmail.com>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
17
|
+
Requires-Dist: jinja2>=3.1
|
|
18
|
+
Requires-Dist: numpy>=2.0
|
|
19
|
+
Requires-Dist: pandas>=2.2
|
|
20
|
+
Requires-Dist: pydantic>=2.7
|
|
21
|
+
Requires-Dist: pyyaml>=6.0
|
|
22
|
+
Requires-Dist: scipy>=1.11
|
|
23
|
+
Requires-Dist: typer>=0.12
|
|
24
|
+
Requires-Dist: pyarrow>=15 ; extra == 'parquet'
|
|
25
|
+
Requires-Python: >=3.12
|
|
26
|
+
Project-URL: Homepage, https://github.com/VivekReddyGaddam/probative-labs
|
|
27
|
+
Project-URL: Methodology, https://github.com/VivekReddyGaddam/probative-labs/blob/main/docs/methodology.md
|
|
28
|
+
Provides-Extra: parquet
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# Probative Labs
|
|
32
|
+
|
|
33
|
+
**Measure what AI actually changed.** Probative Labs compares real work outcomes with what would have happened without the AI, checks that quality held, and turns the difference into an ROI *range* with an evidence grade that a CFO can defend.
|
|
34
|
+
|
|
35
|
+
This repository is the open-source measurement engine. v1 covers the IT service desk.
|
|
36
|
+
|
|
37
|
+
**[Website](https://vivekreddygaddam.github.io/probative-labs/)** · **[Sample evidence pack](https://vivekreddygaddam.github.io/probative-labs/sample/evidence-pack.html)** · **[Run a pilot on your own data](docs/pilot-guide.md)**
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
$ probative demo
|
|
41
|
+
AI agent assist (simulated) changed agent hours per ticket by -0.11 h per ticket (-12%; 95% range -0.13
|
|
42
|
+
to -0.09 h, -14% to -11%). Evidence grade B. Guardrails: all pass. Cash ROI 7% to 79% (P10 to P90).
|
|
43
|
+
|
|
44
|
+
Planted truth: -0.111 h per ticket (-12.3% after the learning curve). Estimate: -0.110 h [-0.126, -0.093].
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Why
|
|
48
|
+
|
|
49
|
+
Most AI ROI figures are estimates: usage × assumed minutes saved × an hourly rate. Careful studies show the same kind of tool can be strongly positive, zero or negative, and people cannot tell which by feel. In [METR's randomized trial](https://arxiv.org/abs/2507.09089), experienced developers took 19% longer with AI while believing they were 20% faster.
|
|
50
|
+
|
|
51
|
+
Probative Labs answers four questions for every AI program, the same way every time:
|
|
52
|
+
|
|
53
|
+
1. **Did it change outcomes?** A comparison-group design estimates what would have happened anyway.
|
|
54
|
+
2. **By how much, and how sure are we?** Every effect has a range from resampling whole teams, plus diagnostics and an evidence grade (A to E).
|
|
55
|
+
3. **Did quality hold?** Guardrails (reopens, escalations, satisfaction, false deflection) can block the value entirely.
|
|
56
|
+
4. **Was it worth what it cost?** Capacity ROI and cash ROI are reported separately, as P10/P50/P90 ranges.
|
|
57
|
+
|
|
58
|
+
## Quickstart
|
|
59
|
+
|
|
60
|
+
Probative Labs needs Python 3.12 or newer.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install probative-labs # or: uv tool install probative-labs
|
|
64
|
+
probative demo --open
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`probative demo` simulates a 40-team service desk with a known, planted AI effect. The data includes deflection, seasonality, a staggered randomized rollout and messy records. The demo then measures it end to end and opens the evidence pack, so you can check the estimate against the truth.
|
|
68
|
+
|
|
69
|
+
## Measure your own program
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
probative init # writes probative.yaml (ServiceNow field mapping by default)
|
|
73
|
+
probative health # data quality and field mapping report
|
|
74
|
+
probative plan power -c probative.yaml --effect -0.10 # is the rollout big enough to measure?
|
|
75
|
+
probative plan waves teams.csv --waves 3 --start 2026-11-02 --holdout 0.2
|
|
76
|
+
probative register # lock hypothesis, metrics and guardrails before results exist
|
|
77
|
+
probative analyze --open # evidence pack: HTML, Markdown and JSON
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
You need two files:
|
|
81
|
+
|
|
82
|
+
- **Work units:** a ticket export with ID, assignment group, opened and resolved timestamps, and ideally time worked, category, reopen count and survey score. Exports from ServiceNow, Jira Service Management, Zendesk, Freshservice, BMC Helix and Ivanti work as-is with a built-in preset (`probative presets`); anything else needs a short column mapping.
|
|
83
|
+
- **Exposure:** which team got the AI on which date. A spreadsheet is fine; `probative plan waves` writes one for you.
|
|
84
|
+
|
|
85
|
+
Virtual-agent sessions are optional and enable verified deflection. See [docs/data-model.md](docs/data-model.md) and [docs/configuration.md](docs/configuration.md).
|
|
86
|
+
|
|
87
|
+
## What you get: the evidence pack
|
|
88
|
+
|
|
89
|
+

|
|
90
|
+
|
|
91
|
+
Open the [full sample evidence pack](https://vivekreddygaddam.github.io/probative-labs/sample/evidence-pack.html) (simulated data) or its [Markdown version](docs/sample/evidence-pack.md). Make your own with `probative demo --open`.
|
|
92
|
+
|
|
93
|
+
One pack per program, in the twelve sections a finance or audit reviewer expects:
|
|
94
|
+
|
|
95
|
+
1. Headline: effect, range, grade, guardrail status, cash ROI range
|
|
96
|
+
2. The question as registered, and any deviations
|
|
97
|
+
3. Design: which comparison was used, and why stronger ones were not possible
|
|
98
|
+
4. Effects: headline and mix-adjusted side by side, by work type
|
|
99
|
+
5. Effect over time: an event-study chart, including the weeks before rollout
|
|
100
|
+
6. Quality guardrails
|
|
101
|
+
7. Diagnostics: pre-trend, placebo dates, placebo outcomes, leave-one-team-out, category drift, power
|
|
102
|
+
8. Value and ROI: capacity and cash, P10/P50/P90, payback, cost per hour released
|
|
103
|
+
9. Claimed versus proven: the vendor's number beside the measured one
|
|
104
|
+
10. Assumptions, with owner and date
|
|
105
|
+
11. Data lineage: file hashes, row counts, every exclusion and why
|
|
106
|
+
12. Recommendation: renew, expand, fix or stop, and the reason
|
|
107
|
+
|
|
108
|
+
## The method, briefly
|
|
109
|
+
|
|
110
|
+
- **Compare like with like.** Every ticket is typed. When AI absorbs the easy tickets, the average human ticket gets harder and headline resolution time rises even if every type got faster. Probative Labs reports the mix-adjusted effect beside the headline.
|
|
111
|
+
- **Compare against the right group.** Staggered rollouts are estimated with the imputation estimator (Borusyak, Jaravel and Spiess, 2024). Each AI team-week is compared only with data that had no AI, which avoids the known bias of ordinary two-way fixed effects.
|
|
112
|
+
- **Teams, not tickets, are the unit of uncertainty.** Ranges come from a bootstrap of whole teams, stratified by rollout wave, widened by a small-sample correction and a delete-one-team jackknife.
|
|
113
|
+
- **Check before you believe.** The pre-trend test, placebo rollout dates and placebo outcomes share a 5% family-wise error budget. Any failure drops the result to grade D: shown, never added to totals.
|
|
114
|
+
- **No design, no number.** If everyone got the AI on the same day and nobody was held back, Probative Labs says so instead of producing a figure.
|
|
115
|
+
|
|
116
|
+
Full method: [docs/methodology.md](docs/methodology.md). Evidence grades: [docs/evidence-grades.md](docs/evidence-grades.md). Validation on planted effects, including zero: [docs/validation.md](docs/validation.md).
|
|
117
|
+
|
|
118
|
+
## Privacy by design
|
|
119
|
+
|
|
120
|
+
- Person and record identifiers are replaced with keyed HMAC-SHA256 pseudonyms at ingest.
|
|
121
|
+
- Free text is used only to type work, then dropped.
|
|
122
|
+
- Results are team-level only, and teams below a minimum group size are left out. Probative Labs evaluates AI programs, never people.
|
|
123
|
+
- Everything runs locally. No data leaves your machine.
|
|
124
|
+
|
|
125
|
+
## Open source and Probative Labs Cloud
|
|
126
|
+
|
|
127
|
+
The measurement method and this engine are open source under Apache-2.0, so your data team or auditor can read, rerun and challenge any result. Probative Labs Cloud is the commercial product built on the same engine. It adds what an enterprise needs to run measurement across a whole AI portfolio: live connectors, a hosted portfolio view, the cost ledger, single sign-on and audit logs, renewal memos and board reports. See [OPEN_CORE.md](OPEN_CORE.md) for exactly what is where and why.
|
|
128
|
+
|
|
129
|
+
## Status and roadmap
|
|
130
|
+
|
|
131
|
+
v0.1 is alpha. It covers the IT service desk with staggered and two-group designs. Planned next:
|
|
132
|
+
|
|
133
|
+
- Randomized holdout analysis
|
|
134
|
+
- Synthetic control and interrupted time series
|
|
135
|
+
- Effect breakdowns by tenure
|
|
136
|
+
- Software engineering, customer service, security and finance playbooks
|
|
137
|
+
|
|
138
|
+
Breaking changes are possible before 1.0.
|
|
139
|
+
|
|
140
|
+
## Contributing
|
|
141
|
+
|
|
142
|
+
Issues and pull requests are welcome. Method changes must come with validation on simulated data; see [CONTRIBUTING.md](CONTRIBUTING.md). To report a security issue, see [SECURITY.md](SECURITY.md).
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). "Probative Labs" is a trademark of its author; the license does not grant rights to the name.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Probative Labs
|
|
2
|
+
|
|
3
|
+
**Measure what AI actually changed.** Probative Labs compares real work outcomes with what would have happened without the AI, checks that quality held, and turns the difference into an ROI *range* with an evidence grade that a CFO can defend.
|
|
4
|
+
|
|
5
|
+
This repository is the open-source measurement engine. v1 covers the IT service desk.
|
|
6
|
+
|
|
7
|
+
**[Website](https://vivekreddygaddam.github.io/probative-labs/)** · **[Sample evidence pack](https://vivekreddygaddam.github.io/probative-labs/sample/evidence-pack.html)** · **[Run a pilot on your own data](docs/pilot-guide.md)**
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ probative demo
|
|
11
|
+
AI agent assist (simulated) changed agent hours per ticket by -0.11 h per ticket (-12%; 95% range -0.13
|
|
12
|
+
to -0.09 h, -14% to -11%). Evidence grade B. Guardrails: all pass. Cash ROI 7% to 79% (P10 to P90).
|
|
13
|
+
|
|
14
|
+
Planted truth: -0.111 h per ticket (-12.3% after the learning curve). Estimate: -0.110 h [-0.126, -0.093].
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Why
|
|
18
|
+
|
|
19
|
+
Most AI ROI figures are estimates: usage × assumed minutes saved × an hourly rate. Careful studies show the same kind of tool can be strongly positive, zero or negative, and people cannot tell which by feel. In [METR's randomized trial](https://arxiv.org/abs/2507.09089), experienced developers took 19% longer with AI while believing they were 20% faster.
|
|
20
|
+
|
|
21
|
+
Probative Labs answers four questions for every AI program, the same way every time:
|
|
22
|
+
|
|
23
|
+
1. **Did it change outcomes?** A comparison-group design estimates what would have happened anyway.
|
|
24
|
+
2. **By how much, and how sure are we?** Every effect has a range from resampling whole teams, plus diagnostics and an evidence grade (A to E).
|
|
25
|
+
3. **Did quality hold?** Guardrails (reopens, escalations, satisfaction, false deflection) can block the value entirely.
|
|
26
|
+
4. **Was it worth what it cost?** Capacity ROI and cash ROI are reported separately, as P10/P50/P90 ranges.
|
|
27
|
+
|
|
28
|
+
## Quickstart
|
|
29
|
+
|
|
30
|
+
Probative Labs needs Python 3.12 or newer.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install probative-labs # or: uv tool install probative-labs
|
|
34
|
+
probative demo --open
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`probative demo` simulates a 40-team service desk with a known, planted AI effect. The data includes deflection, seasonality, a staggered randomized rollout and messy records. The demo then measures it end to end and opens the evidence pack, so you can check the estimate against the truth.
|
|
38
|
+
|
|
39
|
+
## Measure your own program
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
probative init # writes probative.yaml (ServiceNow field mapping by default)
|
|
43
|
+
probative health # data quality and field mapping report
|
|
44
|
+
probative plan power -c probative.yaml --effect -0.10 # is the rollout big enough to measure?
|
|
45
|
+
probative plan waves teams.csv --waves 3 --start 2026-11-02 --holdout 0.2
|
|
46
|
+
probative register # lock hypothesis, metrics and guardrails before results exist
|
|
47
|
+
probative analyze --open # evidence pack: HTML, Markdown and JSON
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You need two files:
|
|
51
|
+
|
|
52
|
+
- **Work units:** a ticket export with ID, assignment group, opened and resolved timestamps, and ideally time worked, category, reopen count and survey score. Exports from ServiceNow, Jira Service Management, Zendesk, Freshservice, BMC Helix and Ivanti work as-is with a built-in preset (`probative presets`); anything else needs a short column mapping.
|
|
53
|
+
- **Exposure:** which team got the AI on which date. A spreadsheet is fine; `probative plan waves` writes one for you.
|
|
54
|
+
|
|
55
|
+
Virtual-agent sessions are optional and enable verified deflection. See [docs/data-model.md](docs/data-model.md) and [docs/configuration.md](docs/configuration.md).
|
|
56
|
+
|
|
57
|
+
## What you get: the evidence pack
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
Open the [full sample evidence pack](https://vivekreddygaddam.github.io/probative-labs/sample/evidence-pack.html) (simulated data) or its [Markdown version](docs/sample/evidence-pack.md). Make your own with `probative demo --open`.
|
|
62
|
+
|
|
63
|
+
One pack per program, in the twelve sections a finance or audit reviewer expects:
|
|
64
|
+
|
|
65
|
+
1. Headline: effect, range, grade, guardrail status, cash ROI range
|
|
66
|
+
2. The question as registered, and any deviations
|
|
67
|
+
3. Design: which comparison was used, and why stronger ones were not possible
|
|
68
|
+
4. Effects: headline and mix-adjusted side by side, by work type
|
|
69
|
+
5. Effect over time: an event-study chart, including the weeks before rollout
|
|
70
|
+
6. Quality guardrails
|
|
71
|
+
7. Diagnostics: pre-trend, placebo dates, placebo outcomes, leave-one-team-out, category drift, power
|
|
72
|
+
8. Value and ROI: capacity and cash, P10/P50/P90, payback, cost per hour released
|
|
73
|
+
9. Claimed versus proven: the vendor's number beside the measured one
|
|
74
|
+
10. Assumptions, with owner and date
|
|
75
|
+
11. Data lineage: file hashes, row counts, every exclusion and why
|
|
76
|
+
12. Recommendation: renew, expand, fix or stop, and the reason
|
|
77
|
+
|
|
78
|
+
## The method, briefly
|
|
79
|
+
|
|
80
|
+
- **Compare like with like.** Every ticket is typed. When AI absorbs the easy tickets, the average human ticket gets harder and headline resolution time rises even if every type got faster. Probative Labs reports the mix-adjusted effect beside the headline.
|
|
81
|
+
- **Compare against the right group.** Staggered rollouts are estimated with the imputation estimator (Borusyak, Jaravel and Spiess, 2024). Each AI team-week is compared only with data that had no AI, which avoids the known bias of ordinary two-way fixed effects.
|
|
82
|
+
- **Teams, not tickets, are the unit of uncertainty.** Ranges come from a bootstrap of whole teams, stratified by rollout wave, widened by a small-sample correction and a delete-one-team jackknife.
|
|
83
|
+
- **Check before you believe.** The pre-trend test, placebo rollout dates and placebo outcomes share a 5% family-wise error budget. Any failure drops the result to grade D: shown, never added to totals.
|
|
84
|
+
- **No design, no number.** If everyone got the AI on the same day and nobody was held back, Probative Labs says so instead of producing a figure.
|
|
85
|
+
|
|
86
|
+
Full method: [docs/methodology.md](docs/methodology.md). Evidence grades: [docs/evidence-grades.md](docs/evidence-grades.md). Validation on planted effects, including zero: [docs/validation.md](docs/validation.md).
|
|
87
|
+
|
|
88
|
+
## Privacy by design
|
|
89
|
+
|
|
90
|
+
- Person and record identifiers are replaced with keyed HMAC-SHA256 pseudonyms at ingest.
|
|
91
|
+
- Free text is used only to type work, then dropped.
|
|
92
|
+
- Results are team-level only, and teams below a minimum group size are left out. Probative Labs evaluates AI programs, never people.
|
|
93
|
+
- Everything runs locally. No data leaves your machine.
|
|
94
|
+
|
|
95
|
+
## Open source and Probative Labs Cloud
|
|
96
|
+
|
|
97
|
+
The measurement method and this engine are open source under Apache-2.0, so your data team or auditor can read, rerun and challenge any result. Probative Labs Cloud is the commercial product built on the same engine. It adds what an enterprise needs to run measurement across a whole AI portfolio: live connectors, a hosted portfolio view, the cost ledger, single sign-on and audit logs, renewal memos and board reports. See [OPEN_CORE.md](OPEN_CORE.md) for exactly what is where and why.
|
|
98
|
+
|
|
99
|
+
## Status and roadmap
|
|
100
|
+
|
|
101
|
+
v0.1 is alpha. It covers the IT service desk with staggered and two-group designs. Planned next:
|
|
102
|
+
|
|
103
|
+
- Randomized holdout analysis
|
|
104
|
+
- Synthetic control and interrupted time series
|
|
105
|
+
- Effect breakdowns by tenure
|
|
106
|
+
- Software engineering, customer service, security and finance playbooks
|
|
107
|
+
|
|
108
|
+
Breaking changes are possible before 1.0.
|
|
109
|
+
|
|
110
|
+
## Contributing
|
|
111
|
+
|
|
112
|
+
Issues and pull requests are welcome. Method changes must come with validation on simulated data; see [CONTRIBUTING.md](CONTRIBUTING.md). To report a security issue, see [SECURITY.md](SECURITY.md).
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). "Probative Labs" is a trademark of its author; the license does not grant rights to the name.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "probative-labs"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Measure what AI actually changed: causal, graded, reproducible ROI evidence for enterprise AI programs."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "Apache-2.0"
|
|
7
|
+
license-files = [
|
|
8
|
+
"LICENSE",
|
|
9
|
+
"NOTICE",
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.12"
|
|
12
|
+
keywords = [
|
|
13
|
+
"ai-roi",
|
|
14
|
+
"causal-inference",
|
|
15
|
+
"difference-in-differences",
|
|
16
|
+
"itsm",
|
|
17
|
+
"evidence",
|
|
18
|
+
]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 3 - Alpha",
|
|
21
|
+
"Intended Audience :: Science/Research",
|
|
22
|
+
"Intended Audience :: Financial and Insurance Industry",
|
|
23
|
+
"License :: OSI Approved :: Apache Software License",
|
|
24
|
+
"Programming Language :: Python :: 3",
|
|
25
|
+
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"jinja2>=3.1",
|
|
29
|
+
"numpy>=2.0",
|
|
30
|
+
"pandas>=2.2",
|
|
31
|
+
"pydantic>=2.7",
|
|
32
|
+
"pyyaml>=6.0",
|
|
33
|
+
"scipy>=1.11",
|
|
34
|
+
"typer>=0.12",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[[project.authors]]
|
|
38
|
+
name = "Vivek Reddy Gaddam"
|
|
39
|
+
email = "vivekreddyvicky143@gmail.com"
|
|
40
|
+
|
|
41
|
+
[project.optional-dependencies]
|
|
42
|
+
parquet = ["pyarrow>=15"]
|
|
43
|
+
|
|
44
|
+
[project.urls]
|
|
45
|
+
Homepage = "https://github.com/VivekReddyGaddam/probative-labs"
|
|
46
|
+
Methodology = "https://github.com/VivekReddyGaddam/probative-labs/blob/main/docs/methodology.md"
|
|
47
|
+
|
|
48
|
+
[project.scripts]
|
|
49
|
+
probative = "probative.cli:app"
|
|
50
|
+
|
|
51
|
+
[dependency-groups]
|
|
52
|
+
dev = [
|
|
53
|
+
"pytest>=8",
|
|
54
|
+
"ruff>=0.6",
|
|
55
|
+
]
|
|
56
|
+
research = [
|
|
57
|
+
"jupyterlab>=4.6.4",
|
|
58
|
+
"matplotlib>=3.11.2",
|
|
59
|
+
"statsmodels>=0.15.0",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[build-system]
|
|
63
|
+
requires = ["uv_build>=0.12.23,<0.13.0"]
|
|
64
|
+
build-backend = "uv_build"
|
|
65
|
+
|
|
66
|
+
[tool.uv.build-backend]
|
|
67
|
+
module-name = "probative"
|
|
68
|
+
|
|
69
|
+
[tool.ruff]
|
|
70
|
+
line-length = 120
|
|
71
|
+
target-version = "py312"
|
|
72
|
+
|
|
73
|
+
[tool.ruff.lint]
|
|
74
|
+
select = [
|
|
75
|
+
"E",
|
|
76
|
+
"F",
|
|
77
|
+
"I",
|
|
78
|
+
"B",
|
|
79
|
+
"UP",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
[tool.pytest.ini_options]
|
|
83
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "probative-labs"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Measure what AI actually changed: causal, graded, reproducible ROI evidence for enterprise AI programs."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "Apache-2.0"
|
|
7
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "Vivek Reddy Gaddam", email = "vivekreddyvicky143@gmail.com" }
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.12"
|
|
12
|
+
keywords = ["ai-roi", "causal-inference", "difference-in-differences", "itsm", "evidence"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 3 - Alpha",
|
|
15
|
+
"Intended Audience :: Science/Research",
|
|
16
|
+
"Intended Audience :: Financial and Insurance Industry",
|
|
17
|
+
"License :: OSI Approved :: Apache Software License",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
20
|
+
]
|
|
21
|
+
dependencies = [
|
|
22
|
+
"jinja2>=3.1",
|
|
23
|
+
"numpy>=2.0",
|
|
24
|
+
"pandas>=2.2",
|
|
25
|
+
"pydantic>=2.7",
|
|
26
|
+
"pyyaml>=6.0",
|
|
27
|
+
"scipy>=1.11",
|
|
28
|
+
"typer>=0.12",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
parquet = ["pyarrow>=15"]
|
|
33
|
+
|
|
34
|
+
[project.urls]
|
|
35
|
+
Homepage = "https://github.com/VivekReddyGaddam/probative-labs"
|
|
36
|
+
Methodology = "https://github.com/VivekReddyGaddam/probative-labs/blob/main/docs/methodology.md"
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
probative = "probative.cli:app"
|
|
40
|
+
|
|
41
|
+
[dependency-groups]
|
|
42
|
+
dev = [
|
|
43
|
+
"pytest>=8",
|
|
44
|
+
"ruff>=0.6",
|
|
45
|
+
]
|
|
46
|
+
research = [
|
|
47
|
+
"jupyterlab>=4.6.4",
|
|
48
|
+
"matplotlib>=3.11.2",
|
|
49
|
+
"statsmodels>=0.15.0",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[build-system]
|
|
53
|
+
requires = ["uv_build>=0.12.23,<0.13.0"]
|
|
54
|
+
build-backend = "uv_build"
|
|
55
|
+
|
|
56
|
+
[tool.uv.build-backend]
|
|
57
|
+
# Installed as `probative-labs`, imported as `probative`.
|
|
58
|
+
module-name = "probative"
|
|
59
|
+
|
|
60
|
+
[tool.ruff]
|
|
61
|
+
line-length = 120
|
|
62
|
+
target-version = "py312"
|
|
63
|
+
|
|
64
|
+
[tool.ruff.lint]
|
|
65
|
+
select = ["E", "F", "I", "B", "UP"]
|
|
66
|
+
|
|
67
|
+
[tool.pytest.ini_options]
|
|
68
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""Probative Labs: measure what AI actually changed.
|
|
2
|
+
|
|
3
|
+
The open-source measurement engine: typed work units, mix adjustment, causal
|
|
4
|
+
estimates with team-level uncertainty, quality guardrails, ROI ranges and
|
|
5
|
+
reproducible evidence packs.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = "0.1.0"
|