Dataset Viewer
Auto-converted to Parquet Duplicate
record_id
int64
1
10k
country
stringclasses
13 values
year
int64
2.02k
2.03k
region_type
stringclasses
4 values
lawyer_density_per_100k
float64
0.05
140
court_density_per_100k
float64
0.01
8.48
distance_to_court_km
float64
0.5
243
travel_time_hours
float64
0.22
48
legal_aid_coverage_pct
float64
0.1
60
legal_aid_per_capita_usd
float64
0
5.34
paralegal_density_per_100k
float64
0.1
383
cost_pct_monthly_income
float64
10
533
bribery_rate_pct
float64
5
60
trust_in_courts_pct
float64
10
98
gender_access_ratio
float64
0.32
1
customary_justice_use_pct
float64
2
97.9
court_contact_rate_pct
float64
1
36.5
wjp_rule_of_law_score
float64
0.22
0.74
access_score
float64
0.08
0.97
access_level
stringclasses
4 values
1
DRC
2,018
peri_urban
11.09
0.93
22.9
1.44
3.5
0.005
0.5
193
44.2
16.9
0.608
22
3.3
0.37
0.39
moderate
2
Nigeria
2,023
urban
23.33
0.77
6.9
0.43
3.8
0.011
2.6
83
47.6
25.8
0.598
19.5
26.1
0.424
0.46
moderate
3
Uganda
2,019
peri_urban
4.45
0.19
27.8
1.23
4.1
0.027
0.3
165
39.4
10
0.665
21.6
10
0.367
0.343
low
4
Nigeria
2,023
remote_rural
0.53
0.04
80.1
6.45
0.1
0.013
2.3
315
35.2
13.1
0.58
79.6
7.2
0.374
0.223
low
5
Mauritius
2,022
rural
9.85
1.363
10
1.22
11.4
1.364
6.9
56
18
66.9
0.768
55.9
8.7
0.574
0.597
high
6
Mozambique
2,019
urban
4.72
0.494
3.9
0.41
5.1
0.003
1
42
50.5
10
0.641
12
15.7
0.365
0.392
moderate
7
DRC
2,021
peri_urban
15.07
0.571
10.5
0.57
1.9
0.005
1.3
26
38.4
36.6
0.514
38
24.4
0.358
0.442
moderate
8
DRC
2,018
remote_rural
0.66
0.076
127.1
9.27
0.1
0.003
0.9
327
49.4
22.2
0.606
77.8
7.3
0.396
0.164
very_low
9
Kenya
2,023
rural
3.27
0.499
28.8
2.12
2.5
0.011
2.2
100
20
70.7
0.709
75.2
19.7
0.446
0.457
moderate
10
Nigeria
2,020
rural
1.61
0.163
57
3.08
0.8
0.012
0.8
224
50.2
29.2
0.527
68.7
5.8
0.371
0.263
low
11
Nigeria
2,021
urban
28.22
0.53
7.7
0.55
7.5
0.01
0.6
81
56.2
10
0.591
11
2.3
0.432
0.45
moderate
12
Malawi
2,019
peri_urban
2.35
0.18
15.7
1.34
0.9
0.03
2.4
176
50.2
22.1
0.476
44.5
11.6
0.588
0.306
low
13
Nigeria
2,020
remote_rural
0.47
0.033
80
8.38
0.3
0.007
0.2
301
40.4
26.9
0.348
75.3
11.7
0.345
0.209
very_low
14
DRC
2,021
rural
3.12
0.116
74.8
7.85
0.7
0.005
2.5
145
28.8
44.1
0.391
45.8
13.2
0.326
0.3
low
15
Nigeria
2,019
rural
2.75
0.244
39.2
3.04
0.5
0.006
1.7
232
45.6
34
0.448
55.1
12.6
0.402
0.29
low
16
Ghana
2,025
remote_rural
0.46
0.241
83.5
11.99
0.4
0.028
3.7
229
22.3
52.7
0.513
80.2
7
0.568
0.303
low
17
Nigeria
2,020
rural
3.39
0.368
48.7
2.54
2.1
0.009
2.4
210
41.2
35.6
0.53
49.3
1
0.357
0.318
low
18
South Africa
2,019
remote_rural
1.62
0.508
91
10.08
1.4
2.589
17.5
215
18.9
96.1
0.741
64.6
6.2
0.575
0.392
moderate
19
DRC
2,022
urban
35.37
0.598
4.5
0.41
1.6
0.005
1.7
69
24.3
52.4
0.536
18.7
16.2
0.334
0.541
moderate
20
Nigeria
2,020
peri_urban
6.73
0.514
20.5
0.99
6.9
0.01
1.9
130
29.9
45.3
0.631
41.1
10.8
0.474
0.442
moderate
21
DRC
2,021
remote_rural
0.62
0.093
94.5
8.2
0.3
0.008
1.6
361
21.5
55
0.518
82
10.9
0.29
0.262
low
22
Senegal
2,023
remote_rural
0.33
0.125
58.1
5.54
0.4
0.06
3.9
220
32.3
56.8
0.465
68.9
8.4
0.597
0.307
low
23
Mozambique
2,018
rural
0.28
0.334
85.8
6.65
1
0.005
1.5
198
29.6
21.6
0.467
78.6
6
0.385
0.266
low
24
Uganda
2,022
rural
1.26
0.051
75.5
4.83
0.9
0.02
0.5
248
51.9
20.4
0.526
79.8
1
0.373
0.222
low
25
DRC
2,018
remote_rural
0.86
0.087
179.7
11.05
0.5
0.003
0.2
208
39.4
44.1
0.369
69.9
1
0.376
0.183
very_low
26
Kenya
2,018
rural
2.09
0.17
56.4
2.99
2.8
0.036
2.4
149
30.6
48.2
0.552
67.2
15.4
0.415
0.345
low
27
Nigeria
2,018
peri_urban
12.69
0.471
32.8
1.54
2.7
0.015
2
49
28.2
35.7
0.52
16.2
6.6
0.431
0.423
moderate
28
South Africa
2,019
rural
7.8
0.712
54
4
3.9
3.663
75.8
105
16.7
90.2
0.818
65.9
4.1
0.529
0.498
moderate
29
Kenya
2,020
rural
3.22
0.401
38.5
2.64
2.6
0.044
2.8
163
25.9
59.5
0.737
54.7
2.4
0.444
0.412
moderate
30
Nigeria
2,025
rural
2.56
0.301
69.6
8.32
1.2
0.012
2.3
260
49
24.9
0.566
59.7
11.2
0.405
0.257
low
31
DRC
2,025
remote_rural
0.8
0.067
126.9
12.29
0.2
0.005
1.5
251
22.3
32.8
0.437
76.3
9.2
0.359
0.219
very_low
32
Mozambique
2,018
rural
0.54
0.329
33.1
2.44
0.4
0.003
0.1
153
41.9
31.3
0.497
60.9
18.2
0.363
0.318
low
33
Tanzania
2,025
urban
9.83
1.714
1.3
0.28
13.6
0.043
0.6
83
34.9
69
0.7
16.7
13.2
0.475
0.596
high
34
Nigeria
2,023
peri_urban
11.99
0.731
2.5
0.39
6.8
0.013
0.6
181
51.7
15.8
0.578
19.6
16.4
0.405
0.405
moderate
35
Nigeria
2,022
remote_rural
0.65
0.023
77.5
9.52
0.3
0.01
0.5
124
21.2
22.4
0.407
85.7
5.7
0.442
0.28
low
36
Kenya
2,024
urban
22.29
1.996
9.5
0.7
4
0.023
1.3
140
29.3
61.9
0.863
31.4
11.4
0.45
0.599
high
37
Kenya
2,021
remote_rural
0.71
0.058
97.9
12.24
0.9
0.019
5.3
196
31.7
43.4
0.548
71.2
9.3
0.484
0.268
low
38
Nigeria
2,020
urban
28.76
0.335
2.9
0.34
6.8
0.008
0.2
35
52.5
13.8
0.655
9.8
4.4
0.369
0.469
moderate
39
Ghana
2,022
rural
1.29
0.523
24.2
2.21
3
0.034
3.2
229
22.6
44.3
0.704
50.3
3.5
0.526
0.402
moderate
40
Nigeria
2,023
remote_rural
0.52
0.07
82.7
7.96
0.1
0.015
1.5
140
36.7
36.1
0.474
85.3
11.2
0.369
0.267
low
41
Nigeria
2,023
rural
2.19
0.103
46
5.38
1.1
0.011
0.1
173
33.7
26.4
0.472
70.3
7.3
0.437
0.304
low
42
DRC
2,019
remote_rural
0.71
0.027
153.3
17.97
0.6
0.005
1.7
192
39.4
42.1
0.392
80.8
7.5
0.339
0.184
very_low
43
DRC
2,025
urban
37.48
0.319
10.2
0.61
6
0.004
0.4
102
50.9
32
0.683
23.1
9.7
0.337
0.493
moderate
44
Tanzania
2,020
rural
0.83
0.337
37.4
4.05
5.4
0.071
3.1
208
27.3
68.5
0.724
64.7
22.3
0.499
0.413
moderate
45
DRC
2,024
rural
3.84
0.21
42.1
3.36
1.6
0.003
0.7
219
22
23.2
0.508
70.7
3.8
0.331
0.331
low
46
DRC
2,020
remote_rural
0.52
0.042
161.5
13.66
0.5
0.005
1.2
124
40.6
18.2
0.468
82.2
8.1
0.27
0.179
very_low
47
Nigeria
2,018
urban
20
0.805
4.8
0.44
5.6
0.01
2
65
33.5
14.5
0.679
21.2
4.9
0.403
0.487
moderate
48
Tanzania
2,025
peri_urban
3.97
0.516
17.2
1.19
10.1
0.058
3.2
128
32.2
34.7
0.798
30.9
18.9
0.444
0.456
moderate
49
Nigeria
2,022
rural
2.55
0.107
55.6
4.67
1.6
0.014
0.9
172
22.3
32.5
0.538
56.8
9.3
0.437
0.33
low
50
Kenya
2,019
remote_rural
0.93
0.113
173.2
33.12
0.6
0.021
5.4
152
22
63
0.681
85.5
21.3
0.482
0.275
low
51
Ghana
2,018
remote_rural
0.33
0.163
68.9
8.27
1.3
0.028
0.8
162
35.7
43.5
0.693
68
4.5
0.546
0.318
low
52
South Africa
2,019
remote_rural
1.39
0.254
81.4
9.72
2.6
2.561
101.2
179
17
70.1
0.713
65.5
10.1
0.576
0.376
low
53
DRC
2,019
rural
3.81
0.137
71.8
3.41
0.5
0.007
2.4
218
39.3
18.4
0.569
29
14.4
0.327
0.265
low
54
Nigeria
2,025
rural
2.11
0.256
83.2
5.25
1.3
0.009
0.7
231
37.9
16.2
0.558
72.7
13.4
0.419
0.255
low
55
DRC
2,019
remote_rural
0.76
0.059
60.6
7.74
0.2
0.006
0.7
364
35
36.6
0.6
73.6
4.1
0.416
0.261
low
56
DRC
2,019
remote_rural
0.49
0.052
144.6
18.81
0.2
0.008
2.5
349
17.9
48.2
0.381
97.7
6.8
0.354
0.197
very_low
57
Nigeria
2,024
remote_rural
0.59
0.068
142.2
11.96
0.5
0.005
0.3
400
46.7
20.3
0.441
96.3
20.6
0.358
0.122
very_low
58
Nigeria
2,025
remote_rural
0.58
0.082
174.6
15.34
0.2
0.009
1.2
295
40.8
31.3
0.335
63.1
7.1
0.421
0.145
very_low
59
Kenya
2,019
remote_rural
0.71
0.109
121.4
48
0.8
0.016
2.9
227
37
28.7
0.525
68.8
2.3
0.435
0.214
very_low
60
Rwanda
2,023
urban
17.92
7.195
4.5
0.46
30.5
0.352
292.4
51
15.5
82.5
0.92
12.6
20.3
0.648
0.838
high
61
Nigeria
2,022
peri_urban
14.28
0.633
13.6
1.14
4.8
0.016
2.6
80
34.4
32.5
0.636
40.1
13.3
0.411
0.458
moderate
62
Nigeria
2,022
remote_rural
0.5
0.034
142.4
16.21
0.4
0.006
1.1
251
52.5
19.4
0.473
90.7
16.9
0.372
0.142
very_low
63
Nigeria
2,020
rural
2.73
0.109
82.2
5.08
0.9
0.008
0.4
230
47.4
10
0.579
57.2
20.7
0.438
0.229
low
64
DRC
2,024
urban
18.34
0.509
5.7
0.6
9.9
0.004
0.8
142
47.9
19.9
0.691
29.5
9.1
0.31
0.455
moderate
65
Nigeria
2,025
rural
2.44
0.175
33.5
1.86
1.3
0.006
1.4
134
31.6
41.1
0.459
79.8
12.7
0.413
0.347
low
66
Nigeria
2,023
rural
2.32
0.109
29.8
2.06
0.9
0.013
1.4
196
46.1
10.2
0.637
56.1
11.6
0.412
0.295
low
67
Nigeria
2,025
remote_rural
0.64
0.06
77
8.87
0.3
0.008
2.5
227
37.4
26.9
0.499
88.3
8.8
0.437
0.248
low
68
Tanzania
2,018
remote_rural
0.23
0.059
111.4
11.56
0.6
0.044
1.6
145
26.9
46.4
0.648
86.6
13.2
0.492
0.283
low
69
South Africa
2,023
urban
98.89
4.816
0.8
0.24
32.3
2.777
122.7
26
17.9
75.9
1
24.4
15.1
0.61
0.94
high
70
Nigeria
2,025
rural
2.13
0.106
40
3.52
0.5
0.006
2.7
211
55.9
22.1
0.615
70.4
10
0.423
0.272
low
71
Ghana
2,022
urban
21.54
2.763
4.2
0.45
12.8
0.049
4.6
78
26.8
29.5
0.89
15.8
9.7
0.57
0.671
high
72
Nigeria
2,025
remote_rural
0.34
0.027
98.8
42.53
0.1
0.01
1.5
204
53.7
28.4
0.412
79.9
9.4
0.418
0.193
very_low
73
Uganda
2,020
urban
7.67
1.329
5.5
0.5
5.3
0.014
1.2
54
44.6
24.8
0.556
2.4
8.4
0.409
0.456
moderate
74
Ghana
2,025
rural
1.37
0.21
29.3
2.7
3.1
0.037
4.3
176
25.5
47.5
0.506
52.6
16.4
0.549
0.371
low
75
South Africa
2,025
rural
6.81
0.781
39.9
2.79
7.9
1.863
7
160
16.3
76.4
0.761
51.9
3.7
0.573
0.502
moderate
76
Tanzania
2,022
rural
0.79
0.11
55.9
3.62
4.4
0.028
3.1
129
28.3
41.2
0.617
54.2
14.2
0.442
0.354
low
77
Tanzania
2,023
rural
1.27
0.589
50
3.13
1.1
0.044
5.1
130
23.5
37.5
0.614
56.5
3.6
0.466
0.372
low
78
Nigeria
2,022
rural
2.74
0.105
83.9
5.41
0.6
0.015
0.8
214
25.3
33.3
0.597
74.7
9.4
0.444
0.291
low
79
Nigeria
2,020
rural
2.87
0.112
61.4
6.43
0.2
0.021
1.1
159
50.7
25.2
0.502
46.2
18.9
0.411
0.263
low
80
DRC
2,022
urban
42.64
1.316
7.3
0.83
4.8
0.006
0.8
111
39.1
43.2
0.742
12.8
15.9
0.361
0.59
high
81
Nigeria
2,025
peri_urban
9.98
0.409
17.2
0.96
3
0.013
2.8
184
46
21.1
0.571
23.3
15.6
0.419
0.363
low
82
Nigeria
2,018
rural
2
0.09
12.7
1.35
1.2
0.009
1
126
27.8
28.2
0.562
84.9
5.8
0.392
0.367
low
83
DRC
2,019
peri_urban
13.04
0.395
22.4
1.17
6.1
0.004
0.5
126
39.5
33.7
0.488
44.2
9.6
0.324
0.408
moderate
84
Kenya
2,021
rural
3.01
0.614
43
22
3.3
0.027
4.6
191
22
58.4
0.714
55.3
5.7
0.446
0.418
moderate
85
South Africa
2,020
peri_urban
33.72
2.922
6.4
0.54
11.8
1.343
14
56
21.2
74.9
0.842
44.3
17.5
0.567
0.762
high
86
Botswana
2,022
remote_rural
1.33
0.521
43.4
4.03
2
1.21
20.9
168
9.4
80
0.719
72.6
11.2
0.615
0.449
moderate
87
DRC
2,020
urban
33.78
0.834
3
0.37
5.8
0.004
0.6
78
48.4
28.9
0.762
27.2
8.3
0.373
0.528
moderate
88
Nigeria
2,023
rural
1.84
0.211
36.8
2.24
0.7
0.012
2.1
152
21.1
34.5
0.531
81.4
8.4
0.439
0.355
low
89
Kenya
2,018
urban
36.35
1.291
4.7
0.5
22.8
0.024
4.1
64
24
43.6
0.749
15.5
13
0.514
0.699
high
90
Nigeria
2,020
rural
2.17
0.101
57.6
4.21
0.8
0.008
0.1
400
40.2
28.3
0.518
64.7
11.1
0.472
0.241
low
91
Kenya
2,023
peri_urban
20.52
1.491
12.6
0.87
4.4
0.019
3
81
38.4
48.9
0.794
45
13
0.451
0.544
moderate
92
Nigeria
2,021
rural
2.8
0.262
20.7
2.45
1.7
0.008
0.5
202
34.7
30.2
0.601
46.9
12.1
0.408
0.351
low
93
Nigeria
2,023
peri_urban
11.15
0.636
20.4
0.93
2.8
0.02
0.2
140
23
30
0.409
33.4
13.8
0.372
0.413
moderate
94
Nigeria
2,023
rural
2.68
0.137
66.4
3.09
0.5
0.007
0.1
204
46
13.8
0.578
48.8
5.2
0.444
0.255
low
95
Tanzania
2,020
rural
0.68
0.376
18.1
1.87
2.7
0.034
3.1
192
27.4
52
0.772
74.4
6.8
0.426
0.411
moderate
96
Nigeria
2,021
remote_rural
0.44
0.07
126.9
11.84
0.3
0.013
2.5
238
43.3
25.8
0.485
90.6
10.2
0.37
0.184
very_low
97
Senegal
2,025
rural
1.19
0.181
32.2
2.09
4.2
0.025
2.7
201
23.9
49.5
0.687
71.8
7.4
0.547
0.39
moderate
98
South Africa
2,025
rural
8.58
1.095
21.2
1.49
8.1
2.529
18.9
112
5.2
92.7
0.792
76.4
20.1
0.584
0.591
high
99
Kenya
2,018
remote_rural
0.81
0.15
171.3
11.2
0.5
0.025
6
234
36.3
46.3
0.613
94.8
1.4
0.445
0.213
very_low
100
Mozambique
2,023
peri_urban
2.62
0.744
17.2
5.28
3.5
0.005
1.9
175
38
33.5
0.646
43.3
7.7
0.418
0.395
moderate
End of preview. Expand in Data Studio

⚠️ Synthetic dataset — Parameterized from published SSA literature, not real observations. Not suitable for empirical analysis or policy inference.

African Judicial Access Indicators

Abstract

A synthetic dataset modeling subnational judicial access indicators across 13 sub-Saharan African countries (2018–2025), parameterized from the World Justice Project Rule of Law Index, Afrobarometer surveys, national legal aid reports, and peer-reviewed geospatial studies. Contains 10,000 records per scenario across three scenarios (baseline, improved_access, constrained), with 20 variables covering distance to courts, lawyer density, legal aid coverage, cost of justice, bribery rates, trust in courts, gender access ratios, and composite access classifications. Designed for ML classification, policy simulation, and access-to-justice research.

1. Introduction

Access to justice remains profoundly unequal across sub-Saharan Africa. Lawyer density ranges from 0.80 per 100,000 (Burkina Faso) to 45.21 per 100,000 (Mauritius). In Kenya, 1.7 million people live more than 100 km from the nearest court. Ghana's Legal Aid Commission employs just 35 lawyers for over 30 million citizens, while 52% of Africa's poorest citizens report courts are too expensive to use. No equivalent ML-ready dataset exists on HuggingFace for these indicators, creating a gap for DFIs, World Bank teams, GovTech startups, and policy researchers working on SDG 16.3 (access to justice for all).

Rwanda's Abunzi mediation system — with 38,000+ community mediators — demonstrates that innovative community-based models can dramatically improve access, reducing court caseloads by 85% and achieving 78% citizen satisfaction. This dataset captures such heterogeneity across countries and intervention models.

2. Methodology

2.1 Target Population

Subnational (region-level) annual records for 13 SSA countries across four region types (urban, peri-urban, rural, remote rural), spanning 2018–2025.

Countries: South Africa, Botswana, Mauritius, Rwanda (high-access); Kenya, Ghana, Tanzania, Senegal (moderate-access); Nigeria, DRC, Uganda, Malawi, Mozambique (low-access).

2.2 Variable Selection

Variables follow the UNDP/UNODC Access to Justice framework and World Justice Project civil justice indicators, adapted for SSA contexts with additions for customary justice, gender equity, and community-based justice mechanisms.

2.3 Epidemiological Parameterization

Parameterization Evidence Table

Parameter Value Used Source DOI/URL Year Note
Kenya avg distance to court 22 km Benyawa, J. of African Law 10.1017/S0021855323000219 2023 Geospatial analysis
Kenya pop >100km from court 1.7M (3.5%) Benyawa Cambridge UP 2023 Northeastern counties worst
SA lawyer density 37.04/100K World Pop Review worldpopulationreview.com 2026 ~28,000 attorneys + advocates
Mauritius lawyer density 45.21/100K World Pop Review worldpopulationreview.com 2026 Highest in Africa
Ghana Legal Aid lawyers 35 for 30M+ people ResearchGate policy brief researchgate.net 2022 16% district coverage
Rwanda Abunzi mediators 38,000+ ACCORD Monograph accord.org.za 2012 85% court caseload reduction
SA legal aid cost for poor 250% of monthly income Soboka, SA J. Human Rights 10.1080/02587203.2019.1662326 2019 R1,500 fee on R600 income
Courts too expensive (poor) 52% Afrobarometer R6 afrobarometer.org 2017 vs 24% for non-poor (2.17× ratio)
Bribery rate (courts) 30% SSA avg Afrobarometer R6 afrobarometer.org 2017 42% poorest vs 26% wealthiest
Trust in courts 53% SSA avg Afrobarometer afrobarometer.org 2017 Tanzania 88%; S. Africa 25%
Women's legal rights 64% of men's World Bank WBL worldbank.org 2022 140 years to close gap in SSA
Customary justice use 80-90% rural Malawi UNODC unodc.org 2014 Dominant in rural SSA
Court contact rate 13% SSA avg Afrobarometer afrobarometer.org 2017 Sierra Leone: urban 14%, rural 5%
Malawi legal aid caseload 480 cases/practitioner Nation Online Malawi nationonlineng.net 2023 65 practitioners for 31,335 cases
SA Legal Aid offices 128 (64+64 satellite) Legal Aid SA Annual Report nationalgovernment.co.za 2022/23 ZAR 1.72B budget
Nigeria legal problems 81% experience 1+/year HiiL JNS Nigeria hiil.org 2023 Only 5% seek lawyers
DRC pre-trial detention 73% of prison pop International Bridges to Justice ibj.org 2023 Extreme access failure

2.4 Scenario Design

Scenario Description Key Adjustments Access Score (mean)
baseline Current SSA access landscape All multipliers at 1.0× ~0.38
improved_access Active legal aid/reform investment Legal aid 1.5×, paralegals 2×, cost 0.7× ~0.41
constrained Fiscal austerity / conflict degrading access Legal aid 0.5×, distance 1.2×, cost 1.5× ~0.35

2.5 Generation Process

DAG-based sampling with 18 steps following topological order. Key features:

  • Region type determines urban/rural gradient for most access indicators
  • Country tier (high/moderate/low) sets baseline parameters
  • Bribery→Trust inverse relationship (r ≈ −0.77) from Afrobarometer data
  • Court contact rate derived from distance, cost, and trust with independent noise
  • Composite access score weighted across 8 normalized indicators
  • Rwanda Abunzi system modeled as special case for paralegal density (~270/100K)

3. Dataset Description

3.1 Schema

Column Type Units Range Description
record_id int 1–10,000 Unique identifier
country categorical 13 countries SSA country
year int year 2018–2025 Observation year
region_type categorical 4 types urban, peri_urban, rural, remote_rural
lawyer_density_per_100k float lawyers/100K 0.01–150 Lawyers per 100,000 population
court_density_per_100k float courts/100K 0.01–15 Courts per 100,000 population
distance_to_court_km float km 0.5–300 Average distance to nearest court
travel_time_hours float hours 0.1–48 Average travel time to court
legal_aid_coverage_pct float % 0.1–60 Population with access to legal aid
legal_aid_per_capita_usd float USD 0.001–10 Legal aid expenditure per capita
paralegal_density_per_100k float /100K 0.05–400 Community paralegals per 100K
cost_pct_monthly_income float % 5–700 Legal costs as % of monthly income
bribery_rate_pct float % 1–70 % reporting court bribery
trust_in_courts_pct float % 10–98 % expressing trust in courts
gender_access_ratio float ratio 0.30–1.0 Women's access / men's access
customary_justice_use_pct float % 1–99 % using customary/traditional justice
court_contact_rate_pct float % 1–40 % with court contact in past 5 years
wjp_rule_of_law_score float score 0.15–0.90 WJP Rule of Law Index score
access_score float score 0–1 Composite access score (8 indicators)
access_level categorical 4 levels high (≥0.55), moderate (0.38–0.55), low (0.22–0.38), very_low (<0.22)

3.2 Classification Criteria

Class Criteria Real-World Analogue
high access_score ≥ 0.55 South Africa, Mauritius urban centers
moderate 0.38 ≤ score < 0.55 Kenya/Ghana county headquarters
low 0.22 ≤ score < 0.38 Nigerian/Ugandan rural districts
very_low score < 0.22 DRC/Mozambique remote rural areas

3.3 Summary Statistics (baseline)

Variable Mean SD Min Max
lawyer_density_per_100k 9.4 15.9 0.05 140.3
distance_to_court_km 47.1 43.3 0.5 242.7
travel_time_hours 4.6 5.5 0.2 48.0
legal_aid_coverage_pct 4.8 7.3 0.1 60.0
cost_pct_monthly_income 164.0 93.1 6.0 535.0
bribery_rate_pct 33.7 11.6 5.0 60.0
trust_in_courts_pct 40.7 19.7 10.0 98.0
gender_access_ratio 0.61 0.13 0.32 1.0
court_contact_rate_pct 10.1 5.7 1.0 34.7
access_score 0.38 0.16 0.07 0.96

4. Validation

4.1 Prevalence Fidelity

All access level distributions pass within expected ranges across all three scenarios. Cross-scenario monotonicity confirmed: improved_access (0.41) > baseline (0.38) > constrained (0.35).

4.2 Correlation Structure

Pair Target r Observed r Status
lawyer_density ↔ court_density 0.55 0.69 PASS
distance ↔ court_contact −0.25 −0.33 PASS
bribery ↔ trust −0.65 −0.77 PASS
cost ↔ court_contact −0.20 −0.35 PASS
legal_aid ↔ access_score 0.70 0.83 PASS

4.3 Diagnostic Plots

Validation Report

5. Usage

5.1 Loading with HuggingFace datasets

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/african-judicial-access-indicators")
ds_crisis = load_dataset("electricsheepafrica/african-judicial-access-indicators", "constrained")

5.2 Loading directly from CSV

import pandas as pd
df = pd.read_csv("data/baseline.csv")

5.3 Regenerating with custom parameters

pip install numpy pandas scipy matplotlib
python generate_dataset.py --scenario baseline --n 10000 --seed 42
python validate_dataset.py

6. Limitations & Ethical Considerations

  1. Synthetic data: Not suitable for policy decisions, legal proceedings, or official reporting. Use for ML training, methodology development, and research only.
  2. Distance data: Rigorous geospatial measurement exists only for Kenya (Benyawa 2023). Other country distances are modeled from regional averages and tier-based estimation.
  3. Lawyer density concentration: DRC's national figure (13.93/100K) masks extreme concentration in Kinshasa; the subnational variation model partially addresses this but may underestimate capital-region disparities.
  4. Legal aid coverage: Percentages are author estimates based on budget/capacity data rather than direct household-level measurement.
  5. Informal justice under-measured: Customary and traditional justice handles 40-90% of disputes in many countries but is poorly quantified in official statistics.
  6. Gender data gaps: Country-specific gender-disaggregated access data is limited; the gender_access_ratio is modeled from global indices rather than direct measurement.
  7. Temporal simplification: COVID-19 impacts on court access (2020-2021) are not explicitly modeled.
  8. No individual-level data: Records represent subnational aggregate indicators, not individual experiences.

7. References

  1. Benyawa, L. (2023). "How Far Are Kenya's Courts?" Journal of African Law, Cambridge UP. DOI: 10.1017/S0021855323000219
  2. Soboka, T. (2019). "What does justice cost in South Africa?" SA Journal on Human Rights, 35(3). DOI: 10.1080/02587203.2019.1662326
  3. Bilchitz, D. & Williams, M. (2020). "Access to justice for all." PER/PELJ, 23.
  4. Cambridge UP (2018). Community Paralegals and the Pursuit of Justice.
  5. World Justice Project (2025). WJP Rule of Law Index 2025.
  6. UNODC (2011). Access to Legal Aid in Criminal Justice Systems in Africa.
  7. UNDP (2014). Legal Aid Service Provision: A Guide on Programming in Africa.
  8. UNODC (2014). Handbook on Improving Access to Legal Aid in Africa.
  9. Afrobarometer (2017). "Access to justice is still elusive for many Africans." Policy Paper No. 39.
  10. Legal Aid South Africa (2023). Annual Report 2022/23.
  11. HiiL (2023). Justice Needs and Satisfaction Survey: Nigeria.
  12. UN Women (2021). Multi-Country Study on Access to Justice for Women and Girls in ESA.
  13. World Bank (2019). A Tool for Justice: Cost-Benefit Analysis of Legal Aid.
  14. ACCORD (2012). Local Conflict Resolution in Rwanda: The Case of Abunzi Mediators.
  15. Brookings Institution (2022). "Women and access to justice in Africa."
  16. World Population Review (2026). "Lawyers per Capita by Country."
  17. NYU CIC (2023). "Small is beautiful, but scale is necessary." Policy Brief.

Citation

@dataset{esa_judicial_access_2026,
  title={African Judicial Access Indicators},
  author={{Electric Sheep Africa}},
  year={2026},
  publisher={HuggingFace},
  url={https://huggingface.co/datasets/electricsheepafrica/african-judicial-access-indicators},
  license={CC-BY-4.0}
}

License

CC-BY-4.0

Downloads last month
36