ryanheller-ant commited on
Commit
6eece24
·
verified ·
1 Parent(s): 7fc50b0

Update release_2026_01_15/data_documentation.md

Browse files
Files changed (1) hide show
  1. release_2026_01_15/data_documentation.md +315 -318
release_2026_01_15/data_documentation.md CHANGED
@@ -1,319 +1,316 @@
1
- # Data Documentation
2
-
3
- This document describes the data sources and variables used in the fourth Anthropic Economic Index (AEI) report.
4
-
5
- ## Claude.ai Usage Data
6
-
7
- ### Overview
8
- The core dataset contains Claude.ai usage metrics aggregated by geography and analysis dimensions (facets).
9
-
10
- **Source files**:
11
- - `aei_raw_claude_ai_2025-11-13_to_2025-11-20.csv` (pre-enrichment data in data/intermediate/)
12
-
13
- **Note on data sources**: The AEI raw file contains raw counts and percentages.
14
-
15
- ### Data Schema
16
- Each row represents one metric value for a specific geography and facet combination:
17
-
18
- | Column | Type | Description |
19
- |--------|------|-------------|
20
- | `geo_id` | string | Geographic identifier (ISO-3166-1 country code for countries, ISO 3166-2 region code for country-state, or "GLOBAL"). Examples: "USA", "AGO-LUA" (Angola-Luanda), "ALB-02" (Albania-Fier) (raw version uses 2- instead of 3-letter country codes) |
21
- | `geography` | string | Geographic level: "country", "country-state", or "global" |
22
- | `date_start` | date | Start of data collection period |
23
- | `date_end` | date | End of data collection period |
24
- | `platform_and_product` | string | "Claude AI (Free and Pro)" |
25
- | `facet` | string | Analysis dimension (see Facets below) |
26
- | `level` | integer | Sub-level within facet (0-2) |
27
- | `variable` | string | Metric name (see Variables below) |
28
- | `cluster_name` | string | Specific entity within facet (task, pattern, etc.). For intersections, format is "base::category" |
29
- | `value` | float | Numeric metric value |
30
-
31
- ### Facets
32
-
33
- **Geographic Facets:**
34
- - **country**: Country-level aggregations
35
- - **country-state**: Subnational region aggregations (ISO 3166-2 regions globally)
36
-
37
- **Content Facets:**
38
- - **onet_task**: O*NET occupational tasks
39
- - **collaboration**: Human-AI collaboration patterns
40
- - **request**: Request complexity levels (0=highest granularity, 1=middle granularity, 2=lowest granularity)
41
- - **multitasking**: Whether conversation involves single or multiple tasks
42
- - **human_only_ability**: Whether a human could complete the task without AI assistance
43
- - **use_case**: Use case categories (work, coursework, personal)
44
- - **task_success**: Whether the task was successfully completed
45
-
46
- **Numeric Facets** (continuous variables with distribution statistics):
47
- - **human_only_time**: Estimated time for a human to complete the task without AI
48
- - **human_with_ai_time**: Estimated time for a human to complete the task with AI assistance
49
- - **ai_autonomy**: Degree of AI autonomy in task completion
50
- - **human_education_years**: Estimated years of human education required for the task
51
- - **ai_education_years**: Estimated equivalent years of AI "education" demonstrated
52
-
53
- **Intersection Facets:**
54
- - **onet_task::collaboration**: Intersection of O*NET tasks and collaboration patterns
55
- - **onet_task::multitasking**: Intersection of O*NET tasks and multitasking status
56
- - **onet_task::human_only_ability**: Intersection of O*NET tasks and human-only ability
57
- - **onet_task::use_case**: Intersection of O*NET tasks and use case categories
58
- - **onet_task::task_success**: Intersection of O*NET tasks and task success
59
- - **onet_task::human_only_time**: Mean human-only time per O*NET task
60
- - **onet_task::human_with_ai_time**: Mean human-with-AI time per O*NET task
61
- - **onet_task::ai_autonomy**: Mean AI autonomy per O*NET task
62
- - **onet_task::human_education_years**: Mean human education years per O*NET task
63
- - **onet_task::ai_education_years**: Mean AI education years per O*NET task
64
- - **request::collaboration**: Intersection of request categories and collaboration patterns
65
- - **request::multitasking**: Intersection of request categories and multitasking status
66
- - **request::human_only_ability**: Intersection of request categories and human-only ability
67
- - **request::use_case**: Intersection of request categories and use case categories
68
- - **request::task_success**: Intersection of request categories and task success
69
- - **request::human_only_time**: Mean human-only time per request category
70
- - **request::human_with_ai_time**: Mean human-with-AI time per request category
71
- - **request::ai_autonomy**: Mean AI autonomy per request category
72
- - **request::human_education_years**: Mean human education years per request category
73
- - **request::ai_education_years**: Mean AI education years per request category
74
-
75
- ### Core Variables
76
-
77
- Variables follow the pattern `{prefix}_{suffix}` with specific meanings:
78
-
79
- **From AEI raw file**: `*_count`, `*_pct`
80
-
81
- #### Usage Metrics
82
- - **usage_count**: Total number of conversations/interactions in a geography
83
- - **usage_pct**: Percentage of total usage (relative to parent geography - global for countries, parent country for country-state regions)
84
-
85
- #### Content Facet Metrics
86
- **O*NET Task Metrics**:
87
- - **onet_task_count**: Number of conversations using this specific O*NET task
88
- - **onet_task_pct**: Percentage of geographic total using this task
89
- - **onet_task_pct_index**: Specialization index comparing task usage to baseline (global for countries, parent country for country-state regions)
90
- - **onet_task_collaboration_count**: Number of conversations with both this task and collaboration pattern (intersection)
91
- - **onet_task_collaboration_pct**: Percentage of the base task's total that has this collaboration pattern (sums to 100% within each task)
92
-
93
- #### Occupation Metrics
94
- - **soc_pct**: Percentage of classified O*NET tasks associated with this SOC major occupation group (e.g., Management, Computer and Mathematical)
95
-
96
- **Request Metrics**:
97
- - **request_count**: Number of conversations in this request category level
98
- - **request_pct**: Percentage of geographic total in this category
99
- - **request_collaboration_count**: Number of conversations with both this request category and collaboration pattern (intersection)
100
- - **request_collaboration_pct**: Percentage of the base request's total that has this collaboration pattern (sums to 100% within each request)
101
-
102
- **Collaboration Pattern Metrics**:
103
- - **collaboration_count**: Number of conversations with this collaboration pattern
104
- - **collaboration_pct**: Percentage of geographic total with this pattern
105
-
106
- **Multitasking Metrics**:
107
- - **multitasking_count**: Number of conversations with this multitasking status
108
- - **multitasking_pct**: Percentage of geographic total with this status
109
-
110
- **Human-Only Ability Metrics**:
111
- - **human_only_ability_count**: Number of conversations with this human-only ability status
112
- - **human_only_ability_pct**: Percentage of geographic total with this status
113
-
114
- **Use Case Metrics**:
115
- - **use_case_count**: Number of conversations in this use case category
116
- - **use_case_pct**: Percentage of geographic total in this category
117
-
118
- **Task Success Metrics**:
119
- - **task_success_count**: Number of conversations with this task success status
120
- - **task_success_pct**: Percentage of geographic total with this status
121
-
122
- #### Numeric Facet Metrics
123
- For numeric facets (human_only_time, human_with_ai_time, ai_autonomy, human_education_years, ai_education_years), the following distribution statistics are available:
124
-
125
- - **{facet}_mean**: Mean value across all conversations
126
- - **{facet}_median**: Median value across all conversations
127
- - **{facet}_stdev**: Standard deviation of values
128
- - **{facet}_mean_ci_lower**: Lower bound of 95% confidence interval for the mean
129
- - **{facet}_mean_ci_upper**: Upper bound of 95% confidence interval for the mean
130
- - **{facet}_median_ci_lower**: Lower bound of 95% confidence interval for the median
131
- - **{facet}_median_ci_upper**: Upper bound of 95% confidence interval for the median
132
- - **{facet}_count**: Total number of observations for this facet
133
- - **{facet}_histogram_count**: Count of observations in each histogram bin (one row per bin, bin range in cluster_name, e.g., "[1.0, 1.0)")
134
- - **{facet}_histogram_pct**: Percentage of observations in each histogram bin (one row per bin)
135
-
136
- For numeric intersection facets (e.g., onet_task::human_only_time), the same metrics are available per category (e.g., per O*NET task), with cluster_name containing the category identifier:
137
- - **{base}_{numeric}_mean**: Mean value for this category
138
- - **{base}_{numeric}_median**: Median value for this category
139
- - **{base}_{numeric}_stdev**: Standard deviation for this category
140
- - **{base}_{numeric}_count**: Number of observations for this category
141
- - **{base}_{numeric}_mean_ci_lower/upper**: 95% CI bounds for the mean
142
- - **{base}_{numeric}_median_ci_lower/upper**: 95% CI bounds for the median
143
-
144
- #### Special Values
145
- - **not_classified**: Indicates data that was filtered for privacy protection or could not be classified
146
- - **none**: Indicates the absence of the attribute (e.g., no collaboration, no task selected)
147
-
148
- ### Data Processing Notes
149
- - **Minimum Observations**: 200 conversations per country, 100 per country-state region (applied in enrichment step, not raw preprocessing)
150
- - **not_classified**:
151
- - For regular facets: Captures filtered/unclassified conversations
152
- - For intersection facets: Each base cluster has its own not_classified (e.g., "task1::not_classified")
153
- - **Intersection Percentages**: Calculated relative to base cluster totals, ensuring each base cluster's percentages sum to 100%
154
- - **Country Codes**: ISO-3166-1 format for countries, three letter codes in the enriched file (e.g., "USA", "GBR", "FRA") and two letter codes in the raw file (e.g., "US", "GB", "FR"); ISO 3166-2 format for country-state regions (e.g., "AGO-LUA", "ALB-02" in enriched file, or "US-CA" in raw file)
155
- - **Variable Definitions**: See Core Variables section above
156
-
157
- ## 1P API Usage Data
158
-
159
- ### Overview
160
- Dataset containing first-party API usage metrics along various dimensions based on a sample of 1P API traffic and analyzed using privacy-preserving methods.
161
-
162
- **Note**: Unlike Claude.ai data, API data has **no geographic breakdowns** (no country or country-state facets). All API metrics are reported at global level only (`geography: "global"`, `geo_id: "GLOBAL"`).
163
-
164
- **Source file**: `aei_raw_1p_api_2025-11-13_to_2025-11-20.csv` (in data/intermediate/)
165
-
166
- ### Data Schema
167
- Each row represents one metric value for a specific facet combination at global level:
168
-
169
- | Column | Type | Description |
170
- |--------|------|-------------|
171
- | `geo_id` | string | Geographic identifier (always "GLOBAL" for API data) |
172
- | `geography` | string | Geographic level (always "global" for API data) |
173
- | `date_start` | date | Start of data collection period |
174
- | `date_end` | date | End of data collection period |
175
- | `platform_and_product` | string | "1P API" |
176
- | `facet` | string | Analysis dimension (see Facets below) |
177
- | `level` | integer | Sub-level within facet (0-2) |
178
- | `variable` | string | Metric name (see Variables below) |
179
- | `cluster_name` | string | Specific entity within facet. For intersections, format is "base::category" or "base::index"/"base::count" for mean value metrics |
180
- | `value` | float | Numeric metric value |
181
-
182
- ### Facets
183
-
184
- **Content Facets:**
185
- - **onet_task**: O*NET occupational tasks
186
- - **collaboration**: Human-AI collaboration patterns
187
- - **request**: Request categories (hierarchical levels 0-2 from bottom-up taxonomy)
188
- - **multitasking**: Whether conversation involves single or multiple tasks
189
- - **human_only_ability**: Whether a human could complete the task without AI assistance
190
- - **use_case**: Use case categories (work, coursework, personal)
191
- - **task_success**: Whether the task was successfully completed
192
-
193
- **Numeric Facets** (continuous variables with distribution statistics):
194
- - **human_only_time**: Estimated time for a human to complete the task without AI
195
- - **human_with_ai_time**: Estimated time for a human to complete the task with AI assistance
196
- - **ai_autonomy**: Degree of AI autonomy in task completion
197
- - **human_education_years**: Estimated years of human education required for the task
198
- - **ai_education_years**: Estimated equivalent years of AI "education" demonstrated
199
-
200
- **Intersection Facets:**
201
- - **onet_task::collaboration**: Intersection of O*NET tasks and collaboration patterns
202
- - **onet_task::multitasking**: Intersection of O*NET tasks and multitasking status
203
- - **onet_task::human_only_ability**: Intersection of O*NET tasks and human-only ability
204
- - **onet_task::use_case**: Intersection of O*NET tasks and use case categories
205
- - **onet_task::task_success**: Intersection of O*NET tasks and task success
206
- - **onet_task::human_only_time**: Mean human-only time per O*NET task
207
- - **onet_task::human_with_ai_time**: Mean human-with-AI time per O*NET task
208
- - **onet_task::ai_autonomy**: Mean AI autonomy per O*NET task
209
- - **onet_task::human_education_years**: Mean human education years per O*NET task
210
- - **onet_task::ai_education_years**: Mean AI education years per O*NET task
211
- - **onet_task::cost**: Mean cost per O*NET task (indexed, 1.0 = average)
212
- - **onet_task::prompt_tokens**: Mean prompt tokens per O*NET task (indexed, 1.0 = average)
213
- - **onet_task::completion_tokens**: Mean completion tokens per O*NET task (indexed, 1.0 = average)
214
- - **request::collaboration**: Intersection of request categories and collaboration patterns
215
- - **request::multitasking**: Intersection of request categories and multitasking status
216
- - **request::human_only_ability**: Intersection of request categories and human-only ability
217
- - **request::use_case**: Intersection of request categories and use case categories
218
- - **request::task_success**: Intersection of request categories and task success
219
- - **request::human_only_time**: Mean human-only time per request category
220
- - **request::human_with_ai_time**: Mean human-with-AI time per request category
221
- - **request::ai_autonomy**: Mean AI autonomy per request category
222
- - **request::human_education_years**: Mean human education years per request category
223
- - **request::ai_education_years**: Mean AI education years per request category
224
- - **request::cost**: Mean cost per request category (indexed, 1.0 = average)
225
- - **request::prompt_tokens**: Mean prompt tokens per request category (indexed, 1.0 = average)
226
- - **request::completion_tokens**: Mean completion tokens per request category (indexed, 1.0 = average)
227
-
228
- ### Core Variables
229
-
230
- #### Content Facet Metrics
231
- **O*NET Task Metrics**:
232
- - **onet_task_count**: Number of 1P API records using this specific O*NET task
233
- - **onet_task_pct**: Percentage of total using this task
234
-
235
- **Request Metrics**:
236
- - **request_count**: Number of 1P API records in this request category
237
- - **request_pct**: Percentage of total in this category
238
-
239
- **Collaboration Pattern Metrics**:
240
- - **collaboration_count**: Number of 1P API records with this collaboration pattern
241
- - **collaboration_pct**: Percentage of total with this pattern
242
-
243
- **Multitasking Metrics**:
244
- - **multitasking_count**: Number of records with this multitasking status
245
- - **multitasking_pct**: Percentage of total with this status
246
-
247
- **Human-Only Ability Metrics**:
248
- - **human_only_ability_count**: Number of records with this human-only ability status
249
- - **human_only_ability_pct**: Percentage of total with this status
250
-
251
- **Use Case Metrics**:
252
- - **use_case_count**: Number of records in this use case category
253
- - **use_case_pct**: Percentage of total in this category
254
-
255
- **Task Success Metrics**:
256
- - **task_success_count**: Number of records with this task success status
257
- - **task_success_pct**: Percentage of total with this status
258
-
259
- #### Numeric Facet Metrics
260
- For numeric facets (human_only_time, human_with_ai_time, ai_autonomy, human_education_years, ai_education_years), the following distribution statistics are available:
261
-
262
- - **{facet}_mean**: Mean value across all records
263
- - **{facet}_median**: Median value across all records
264
- - **{facet}_stdev**: Standard deviation of values
265
- - **{facet}_mean_ci_lower**: Lower bound of 95% confidence interval for the mean
266
- - **{facet}_mean_ci_upper**: Upper bound of 95% confidence interval for the mean
267
- - **{facet}_median_ci_lower**: Lower bound of 95% confidence interval for the median
268
- - **{facet}_median_ci_upper**: Upper bound of 95% confidence interval for the median
269
- - **{facet}_count**: Total number of observations for this facet
270
- - **{facet}_histogram_count**: Count of observations in each histogram bin (one row per bin)
271
- - **{facet}_histogram_pct**: Percentage of observations in each histogram bin (one row per bin)
272
-
273
- #### Indexed Facet Metrics (API-specific)
274
- For indexed facets (cost_index, prompt_tokens_index, completion_tokens_index), values are normalized so that 1.0 represents the average:
275
-
276
- - **{facet}_index**: Re-indexed mean value (1.0 = average across all categories)
277
- - **{facet}_count**: Number of records for this metric
278
-
279
- #### Intersection Metrics
280
- For categorical intersections (e.g., onet_task::collaboration):
281
- - **{base}_{secondary}_count**: Records with both this base category and secondary category
282
- - **{base}_{secondary}_pct**: Percentage of the base category's total with this secondary category
283
-
284
- For numeric intersections (e.g., onet_task::human_only_time):
285
- - **{base}_{numeric}_mean**: Mean value for this category
286
- - **{base}_{numeric}_median**: Median value for this category
287
- - **{base}_{numeric}_stdev**: Standard deviation for this category
288
- - **{base}_{numeric}_count**: Number of observations for this category
289
- - **{base}_{numeric}_mean_ci_lower/upper**: 95% CI bounds for the mean
290
- - **{base}_{numeric}_median_ci_lower/upper**: 95% CI bounds for the median
291
-
292
- ## External Data Sources
293
-
294
- We use external data to enrich Claude usage data with external economic and demographic sources.
295
-
296
- ### ISO Country Codes
297
-
298
- **ISO 3166 Country Codes**
299
-
300
- International standard codes for representing countries and territories, used for mapping IP-based geolocation data to standardized country identifiers.
301
-
302
- - **Standard**: ISO 3166-1
303
- - **Source**: GeoNames geographical database
304
- - **URL**: https://download.geonames.org/export/dump/countryInfo.txt
305
- - **License**: Creative Commons Attribution 4.0 License (https://creativecommons.org/licenses/by/4.0/)
306
- - **Attribution note**: Data in the data/intermediate and data/output folders have been processed and modified from original source; modifications to data in data/intermediate include extracting only tabular data, selecting a subset of columns, and renaming columns; modifications to data in data/output include transforming data to long format
307
- - **Download date**: September 2, 2025
308
- - **Output files**:
309
- - `geonames_countryInfo.txt` (raw GeoNames data in data/input/)
310
- - `iso_country_codes.csv` (processed country codes in data/intermediate/)
311
- - **Key fields**:
312
- - `iso_alpha_2`: Two-letter country code (e.g., "US", "GB", "FR")
313
- - `iso_alpha_3`: Three-letter country code (e.g., "USA", "GBR", "FRA")
314
- - `country_name`: Country name from GeoNames
315
- - **Usage**: Maps IP-based country identification to standardized ISO codes for consistent geographic aggregation
316
-
317
- ### ISO Region Code Mapping
318
-
319
  Region-level geographic data uses ISO 3166-2 standard subdivision codes. Some countries were excluded from region-level analysis due to mapping issues between source data codes and ISO 3166-2 standards. Country-level data remains available for all countries.
 
1
+ # Data Documentation
2
+
3
+ This document describes the data sources and variables used in the fourth Anthropic Economic Index (AEI) report.
4
+
5
+ ## Claude.ai Usage Data
6
+
7
+ ### Overview
8
+ The core dataset contains Claude.ai usage metrics aggregated by geography and analysis dimensions (facets).
9
+
10
+ **Source files**:
11
+ - `aei_raw_claude_ai_2025-11-13_to_2025-11-20.csv` (pre-enrichment data in data/intermediate/)
12
+
13
+ **Note on data sources**: The AEI raw file contains raw counts and percentages.
14
+
15
+ ### Data Schema
16
+ Each row represents one metric value for a specific geography and facet combination:
17
+
18
+ | Column | Type | Description |
19
+ |--------|------|-------------|
20
+ | `geo_id` | string | Geographic identifier (ISO-3166-1 country code for countries, ISO 3166-2 region code for country-state, or "GLOBAL"). Examples: "USA", "AGO-LUA" (Angola-Luanda), "ALB-02" (Albania-Fier) (raw version uses 2- instead of 3-letter country codes) |
21
+ | `geography` | string | Geographic level: "country", "country-state", or "global" |
22
+ | `date_start` | date | Start of data collection period |
23
+ | `date_end` | date | End of data collection period |
24
+ | `platform_and_product` | string | "Claude AI (Free and Pro)" |
25
+ | `facet` | string | Analysis dimension (see Facets below) |
26
+ | `level` | integer | Sub-level within facet (0-2) |
27
+ | `variable` | string | Metric name (see Variables below) |
28
+ | `cluster_name` | string | Specific entity within facet (task, pattern, etc.). For intersections, format is "base::category" |
29
+ | `value` | float | Numeric metric value |
30
+
31
+ ### Facets
32
+
33
+ **Geographic Facets:**
34
+ - **country**: Country-level aggregations
35
+ - **country-state**: Subnational region aggregations (ISO 3166-2 regions globally)
36
+
37
+ **Content Facets:**
38
+ - **onet_task**: O*NET occupational tasks
39
+ - **collaboration**: Human-AI collaboration patterns
40
+ - **request**: Request complexity levels (0=highest granularity, 1=middle granularity, 2=lowest granularity)
41
+ - **multitasking**: Whether conversation involves single or multiple tasks
42
+ - **human_only_ability**: Whether a human could complete the task without AI assistance
43
+ - **use_case**: Use case categories (work, coursework, personal)
44
+ - **task_success**: Whether the task was successfully completed
45
+
46
+ **Numeric Facets** (continuous variables with distribution statistics):
47
+ - **human_only_time**: Estimated time for a human to complete the task without AI
48
+ - **human_with_ai_time**: Estimated time for a human to complete the task with AI assistance
49
+ - **ai_autonomy**: Degree of AI autonomy in task completion
50
+ - **human_education_years**: Estimated years of human education required for the task
51
+ - **ai_education_years**: Estimated equivalent years of AI "education" demonstrated
52
+
53
+ **Intersection Facets:**
54
+ - **onet_task::collaboration**: Intersection of O*NET tasks and collaboration patterns
55
+ - **onet_task::multitasking**: Intersection of O*NET tasks and multitasking status
56
+ - **onet_task::human_only_ability**: Intersection of O*NET tasks and human-only ability
57
+ - **onet_task::use_case**: Intersection of O*NET tasks and use case categories
58
+ - **onet_task::task_success**: Intersection of O*NET tasks and task success
59
+ - **onet_task::human_only_time**: Mean human-only time per O*NET task
60
+ - **onet_task::human_with_ai_time**: Mean human-with-AI time per O*NET task
61
+ - **onet_task::ai_autonomy**: Mean AI autonomy per O*NET task
62
+ - **onet_task::human_education_years**: Mean human education years per O*NET task
63
+ - **onet_task::ai_education_years**: Mean AI education years per O*NET task
64
+ - **request::collaboration**: Intersection of request categories and collaboration patterns
65
+ - **request::multitasking**: Intersection of request categories and multitasking status
66
+ - **request::human_only_ability**: Intersection of request categories and human-only ability
67
+ - **request::use_case**: Intersection of request categories and use case categories
68
+ - **request::task_success**: Intersection of request categories and task success
69
+ - **request::human_only_time**: Mean human-only time per request category
70
+ - **request::human_with_ai_time**: Mean human-with-AI time per request category
71
+ - **request::ai_autonomy**: Mean AI autonomy per request category
72
+ - **request::human_education_years**: Mean human education years per request category
73
+ - **request::ai_education_years**: Mean AI education years per request category
74
+
75
+ ### Core Variables
76
+
77
+ Variables follow the pattern `{prefix}_{suffix}` with specific meanings:
78
+
79
+ **From AEI raw file**: `*_count`, `*_pct`
80
+
81
+ #### Usage Metrics
82
+ - **usage_count**: Total number of conversations/interactions in a geography
83
+ - **usage_pct**: Percentage of total usage (relative to parent geography - global for countries, parent country for country-state regions)
84
+
85
+ #### Content Facet Metrics
86
+ **O*NET Task Metrics**:
87
+ - **onet_task_count**: Number of conversations using this specific O*NET task
88
+ - **onet_task_pct**: Percentage of geographic total using this task
89
+ - **onet_task_pct_index**: Specialization index comparing task usage to baseline (global for countries, parent country for country-state regions)
90
+ - **onet_task_collaboration_count**: Number of conversations with both this task and collaboration pattern (intersection)
91
+ - **onet_task_collaboration_pct**: Percentage of the base task's total that has this collaboration pattern (sums to 100% within each task)
92
+
93
+ **Request Metrics**:
94
+ - **request_count**: Number of conversations in this request category level
95
+ - **request_pct**: Percentage of geographic total in this category
96
+ - **request_collaboration_count**: Number of conversations with both this request category and collaboration pattern (intersection)
97
+ - **request_collaboration_pct**: Percentage of the base request's total that has this collaboration pattern (sums to 100% within each request)
98
+
99
+ **Collaboration Pattern Metrics**:
100
+ - **collaboration_count**: Number of conversations with this collaboration pattern
101
+ - **collaboration_pct**: Percentage of geographic total with this pattern
102
+
103
+ **Multitasking Metrics**:
104
+ - **multitasking_count**: Number of conversations with this multitasking status
105
+ - **multitasking_pct**: Percentage of geographic total with this status
106
+
107
+ **Human-Only Ability Metrics**:
108
+ - **human_only_ability_count**: Number of conversations with this human-only ability status
109
+ - **human_only_ability_pct**: Percentage of geographic total with this status
110
+
111
+ **Use Case Metrics**:
112
+ - **use_case_count**: Number of conversations in this use case category
113
+ - **use_case_pct**: Percentage of geographic total in this category
114
+
115
+ **Task Success Metrics**:
116
+ - **task_success_count**: Number of conversations with this task success status
117
+ - **task_success_pct**: Percentage of geographic total with this status
118
+
119
+ #### Numeric Facet Metrics
120
+ For numeric facets (human_only_time, human_with_ai_time, ai_autonomy, human_education_years, ai_education_years), the following distribution statistics are available:
121
+
122
+ - **{facet}_mean**: Mean value across all conversations
123
+ - **{facet}_median**: Median value across all conversations
124
+ - **{facet}_stdev**: Standard deviation of values
125
+ - **{facet}_mean_ci_lower**: Lower bound of 95% confidence interval for the mean
126
+ - **{facet}_mean_ci_upper**: Upper bound of 95% confidence interval for the mean
127
+ - **{facet}_median_ci_lower**: Lower bound of 95% confidence interval for the median
128
+ - **{facet}_median_ci_upper**: Upper bound of 95% confidence interval for the median
129
+ - **{facet}_count**: Total number of observations for this facet
130
+ - **{facet}_histogram_count**: Count of observations in each histogram bin (one row per bin, bin range in cluster_name, e.g., "[1.0, 1.0)")
131
+ - **{facet}_histogram_pct**: Percentage of observations in each histogram bin (one row per bin)
132
+
133
+ For numeric intersection facets (e.g., onet_task::human_only_time), the same metrics are available per category (e.g., per O*NET task), with cluster_name containing the category identifier:
134
+ - **{base}_{numeric}_mean**: Mean value for this category
135
+ - **{base}_{numeric}_median**: Median value for this category
136
+ - **{base}_{numeric}_stdev**: Standard deviation for this category
137
+ - **{base}_{numeric}_count**: Number of observations for this category
138
+ - **{base}_{numeric}_mean_ci_lower/upper**: 95% CI bounds for the mean
139
+ - **{base}_{numeric}_median_ci_lower/upper**: 95% CI bounds for the median
140
+
141
+ #### Special Values
142
+ - **not_classified**: Indicates data that was filtered for privacy protection or could not be classified
143
+ - **none**: Indicates the absence of the attribute (e.g., no collaboration, no task selected)
144
+
145
+ ### Data Processing Notes
146
+ - **Minimum Observations**: 200 conversations per country, 100 per country-state region (applied in enrichment step, not raw preprocessing)
147
+ - **not_classified**:
148
+ - For regular facets: Captures filtered/unclassified conversations
149
+ - For intersection facets: Each base cluster has its own not_classified (e.g., "task1::not_classified")
150
+ - **Intersection Percentages**: Calculated relative to base cluster totals, ensuring each base cluster's percentages sum to 100%
151
+ - **Country Codes**: ISO-3166-1 format for countries, three letter codes in the enriched file (e.g., "USA", "GBR", "FRA") and two letter codes in the raw file (e.g., "US", "GB", "FR"); ISO 3166-2 format for country-state regions (e.g., "AGO-LUA", "ALB-02" in enriched file, or "US-CA" in raw file)
152
+ - **Variable Definitions**: See Core Variables section above
153
+
154
+ ## 1P API Usage Data
155
+
156
+ ### Overview
157
+ Dataset containing first-party API usage metrics along various dimensions based on a sample of 1P API traffic and analyzed using privacy-preserving methods.
158
+
159
+ **Note**: Unlike Claude.ai data, API data has **no geographic breakdowns** (no country or country-state facets). All API metrics are reported at global level only (`geography: "global"`, `geo_id: "GLOBAL"`).
160
+
161
+ **Source file**: `aei_raw_1p_api_2025-11-13_to_2025-11-20.csv` (in data/intermediate/)
162
+
163
+ ### Data Schema
164
+ Each row represents one metric value for a specific facet combination at global level:
165
+
166
+ | Column | Type | Description |
167
+ |--------|------|-------------|
168
+ | `geo_id` | string | Geographic identifier (always "GLOBAL" for API data) |
169
+ | `geography` | string | Geographic level (always "global" for API data) |
170
+ | `date_start` | date | Start of data collection period |
171
+ | `date_end` | date | End of data collection period |
172
+ | `platform_and_product` | string | "1P API" |
173
+ | `facet` | string | Analysis dimension (see Facets below) |
174
+ | `level` | integer | Sub-level within facet (0-2) |
175
+ | `variable` | string | Metric name (see Variables below) |
176
+ | `cluster_name` | string | Specific entity within facet. For intersections, format is "base::category" or "base::index"/"base::count" for mean value metrics |
177
+ | `value` | float | Numeric metric value |
178
+
179
+ ### Facets
180
+
181
+ **Content Facets:**
182
+ - **onet_task**: O*NET occupational tasks
183
+ - **collaboration**: Human-AI collaboration patterns
184
+ - **request**: Request categories (hierarchical levels 0-2 from bottom-up taxonomy)
185
+ - **multitasking**: Whether conversation involves single or multiple tasks
186
+ - **human_only_ability**: Whether a human could complete the task without AI assistance
187
+ - **use_case**: Use case categories (work, coursework, personal)
188
+ - **task_success**: Whether the task was successfully completed
189
+
190
+ **Numeric Facets** (continuous variables with distribution statistics):
191
+ - **human_only_time**: Estimated time for a human to complete the task without AI
192
+ - **human_with_ai_time**: Estimated time for a human to complete the task with AI assistance
193
+ - **ai_autonomy**: Degree of AI autonomy in task completion
194
+ - **human_education_years**: Estimated years of human education required for the task
195
+ - **ai_education_years**: Estimated equivalent years of AI "education" demonstrated
196
+
197
+ **Intersection Facets:**
198
+ - **onet_task::collaboration**: Intersection of O*NET tasks and collaboration patterns
199
+ - **onet_task::multitasking**: Intersection of O*NET tasks and multitasking status
200
+ - **onet_task::human_only_ability**: Intersection of O*NET tasks and human-only ability
201
+ - **onet_task::use_case**: Intersection of O*NET tasks and use case categories
202
+ - **onet_task::task_success**: Intersection of O*NET tasks and task success
203
+ - **onet_task::human_only_time**: Mean human-only time per O*NET task
204
+ - **onet_task::human_with_ai_time**: Mean human-with-AI time per O*NET task
205
+ - **onet_task::ai_autonomy**: Mean AI autonomy per O*NET task
206
+ - **onet_task::human_education_years**: Mean human education years per O*NET task
207
+ - **onet_task::ai_education_years**: Mean AI education years per O*NET task
208
+ - **onet_task::cost**: Mean cost per O*NET task (indexed, 1.0 = average)
209
+ - **onet_task::prompt_tokens**: Mean prompt tokens per O*NET task (indexed, 1.0 = average)
210
+ - **onet_task::completion_tokens**: Mean completion tokens per O*NET task (indexed, 1.0 = average)
211
+ - **request::collaboration**: Intersection of request categories and collaboration patterns
212
+ - **request::multitasking**: Intersection of request categories and multitasking status
213
+ - **request::human_only_ability**: Intersection of request categories and human-only ability
214
+ - **request::use_case**: Intersection of request categories and use case categories
215
+ - **request::task_success**: Intersection of request categories and task success
216
+ - **request::human_only_time**: Mean human-only time per request category
217
+ - **request::human_with_ai_time**: Mean human-with-AI time per request category
218
+ - **request::ai_autonomy**: Mean AI autonomy per request category
219
+ - **request::human_education_years**: Mean human education years per request category
220
+ - **request::ai_education_years**: Mean AI education years per request category
221
+ - **request::cost**: Mean cost per request category (indexed, 1.0 = average)
222
+ - **request::prompt_tokens**: Mean prompt tokens per request category (indexed, 1.0 = average)
223
+ - **request::completion_tokens**: Mean completion tokens per request category (indexed, 1.0 = average)
224
+
225
+ ### Core Variables
226
+
227
+ #### Content Facet Metrics
228
+ **O*NET Task Metrics**:
229
+ - **onet_task_count**: Number of 1P API records using this specific O*NET task
230
+ - **onet_task_pct**: Percentage of total using this task
231
+
232
+ **Request Metrics**:
233
+ - **request_count**: Number of 1P API records in this request category
234
+ - **request_pct**: Percentage of total in this category
235
+
236
+ **Collaboration Pattern Metrics**:
237
+ - **collaboration_count**: Number of 1P API records with this collaboration pattern
238
+ - **collaboration_pct**: Percentage of total with this pattern
239
+
240
+ **Multitasking Metrics**:
241
+ - **multitasking_count**: Number of records with this multitasking status
242
+ - **multitasking_pct**: Percentage of total with this status
243
+
244
+ **Human-Only Ability Metrics**:
245
+ - **human_only_ability_count**: Number of records with this human-only ability status
246
+ - **human_only_ability_pct**: Percentage of total with this status
247
+
248
+ **Use Case Metrics**:
249
+ - **use_case_count**: Number of records in this use case category
250
+ - **use_case_pct**: Percentage of total in this category
251
+
252
+ **Task Success Metrics**:
253
+ - **task_success_count**: Number of records with this task success status
254
+ - **task_success_pct**: Percentage of total with this status
255
+
256
+ #### Numeric Facet Metrics
257
+ For numeric facets (human_only_time, human_with_ai_time, ai_autonomy, human_education_years, ai_education_years), the following distribution statistics are available:
258
+
259
+ - **{facet}_mean**: Mean value across all records
260
+ - **{facet}_median**: Median value across all records
261
+ - **{facet}_stdev**: Standard deviation of values
262
+ - **{facet}_mean_ci_lower**: Lower bound of 95% confidence interval for the mean
263
+ - **{facet}_mean_ci_upper**: Upper bound of 95% confidence interval for the mean
264
+ - **{facet}_median_ci_lower**: Lower bound of 95% confidence interval for the median
265
+ - **{facet}_median_ci_upper**: Upper bound of 95% confidence interval for the median
266
+ - **{facet}_count**: Total number of observations for this facet
267
+ - **{facet}_histogram_count**: Count of observations in each histogram bin (one row per bin)
268
+ - **{facet}_histogram_pct**: Percentage of observations in each histogram bin (one row per bin)
269
+
270
+ #### Indexed Facet Metrics (API-specific)
271
+ For indexed facets (cost_index, prompt_tokens_index, completion_tokens_index), values are normalized so that 1.0 represents the average:
272
+
273
+ - **{facet}_index**: Re-indexed mean value (1.0 = average across all categories)
274
+ - **{facet}_count**: Number of records for this metric
275
+
276
+ #### Intersection Metrics
277
+ For categorical intersections (e.g., onet_task::collaboration):
278
+ - **{base}_{secondary}_count**: Records with both this base category and secondary category
279
+ - **{base}_{secondary}_pct**: Percentage of the base category's total with this secondary category
280
+
281
+ For numeric intersections (e.g., onet_task::human_only_time):
282
+ - **{base}_{numeric}_mean**: Mean value for this category
283
+ - **{base}_{numeric}_median**: Median value for this category
284
+ - **{base}_{numeric}_stdev**: Standard deviation for this category
285
+ - **{base}_{numeric}_count**: Number of observations for this category
286
+ - **{base}_{numeric}_mean_ci_lower/upper**: 95% CI bounds for the mean
287
+ - **{base}_{numeric}_median_ci_lower/upper**: 95% CI bounds for the median
288
+
289
+ ## External Data Sources
290
+
291
+ We use external data to enrich Claude usage data with external economic and demographic sources.
292
+
293
+ ### ISO Country Codes
294
+
295
+ **ISO 3166 Country Codes**
296
+
297
+ International standard codes for representing countries and territories, used for mapping IP-based geolocation data to standardized country identifiers.
298
+
299
+ - **Standard**: ISO 3166-1
300
+ - **Source**: GeoNames geographical database
301
+ - **URL**: https://download.geonames.org/export/dump/countryInfo.txt
302
+ - **License**: Creative Commons Attribution 4.0 License (https://creativecommons.org/licenses/by/4.0/)
303
+ - **Attribution note**: Data in the data/intermediate and data/output folders have been processed and modified from original source; modifications to data in data/intermediate include extracting only tabular data, selecting a subset of columns, and renaming columns; modifications to data in data/output include transforming data to long format
304
+ - **Download date**: September 2, 2025
305
+ - **Output files**:
306
+ - `geonames_countryInfo.txt` (raw GeoNames data in data/input/)
307
+ - `iso_country_codes.csv` (processed country codes in data/intermediate/)
308
+ - **Key fields**:
309
+ - `iso_alpha_2`: Two-letter country code (e.g., "US", "GB", "FR")
310
+ - `iso_alpha_3`: Three-letter country code (e.g., "USA", "GBR", "FRA")
311
+ - `country_name`: Country name from GeoNames
312
+ - **Usage**: Maps IP-based country identification to standardized ISO codes for consistent geographic aggregation
313
+
314
+ ### ISO Region Code Mapping
315
+
 
 
 
316
  Region-level geographic data uses ISO 3166-2 standard subdivision codes. Some countries were excluded from region-level analysis due to mapping issues between source data codes and ISO 3166-2 standards. Country-level data remains available for all countries.