Dataset Viewer
Auto-converted to Parquet Duplicate
record_id
int64
1
10k
country
stringclasses
12 values
year
int64
2.02k
2.03k
court_level
stringclasses
3 values
population
int64
1.29M
236M
judge_density_per_100k
float64
0.3
7.63
total_judges
int64
23
15k
cases_filed
int64
549
2.59M
case_type
stringclasses
7 values
clearance_rate
float64
0.06
1.2
cases_resolved
int64
142
1.97M
avg_disposition_months
float64
1
71.2
pending_cases
int64
282
5.38M
backlog_rate
float64
0
0.96
backlog_severity
stringclasses
4 values
wjp_rule_of_law_score
float64
0.21
0.75
1
Uganda
2,018
magistrate_lower
40,561,863
3.15
1,276
319,173
criminal
0.711
226,932
10.5
172,487
0.432
moderate
0.337
2
DRC
2,023
high_court
101,744,186
2.35
2,391
100,582
land_property
0.281
28,263
17
127,419
0.818
critical
0.393
3
Rwanda
2,019
magistrate_lower
12,434,497
2.62
325
85,639
criminal
0.884
75,704
5.9
27,562
0.267
low
0.746
4
Tanzania
2,023
magistrate_lower
65,048,543
2.43
1,582
324,446
family_matrimonial
0.381
123,613
19.2
395,764
0.762
critical
0.438
5
Nigeria
2,022
magistrate_lower
218,917,311
1.85
4,051
1,388,276
criminal
0.337
467,849
10.5
1,507,641
0.763
critical
0.456
6
Senegal
2,019
high_court
15,755,068
3.44
541
12,734
land_property
0.56
7,131
19.9
7,987
0.528
high
0.563
7
Tanzania
2,021
magistrate_lower
61,314,491
0.54
332
494,181
land_property
0.401
198,166
14.1
947,333
0.827
critical
0.486
8
Uganda
2,018
magistrate_lower
40,561,863
1.16
468
220,702
criminal
0.543
119,841
19.8
152,848
0.561
high
0.421
9
Nigeria
2,023
magistrate_lower
224,390,243
0.8
1,801
1,230,497
civil_general
0.506
622,631
13.8
1,858,590
0.749
critical
0.435
10
DRC
2,020
magistrate_lower
92,570,052
0.37
338
412,275
civil_general
0.762
314,153
15.5
587,879
0.652
high
0.337
11
DRC
2,021
high_court
95,532,294
1.94
1,854
26,830
criminal
0.542
14,541
18.3
65,616
0.819
critical
0.33
12
South Africa
2,019
magistrate_lower
59,578,426
2.58
1,534
298,107
criminal
0.557
166,045
8.5
289,501
0.636
high
0.587
13
Ghana
2,020
magistrate_lower
31,287,866
1.71
535
155,471
criminal
0.708
110,073
13.1
97,747
0.47
moderate
0.606
14
Uganda
2,021
magistrate_lower
44,581,737
2
890
184,668
criminal
0.841
155,305
17.5
129,454
0.455
moderate
0.374
15
DRC
2,019
magistrate_lower
89,699,663
0.67
596
361,746
civil_general
0.413
149,401
40.1
426,353
0.741
critical
0.421
16
Nigeria
2,025
magistrate_lower
235,749,999
1.98
4,656
1,246,192
family_matrimonial
0.781
973,275
19
979,524
0.502
high
0.397
17
Kenya
2,020
magistrate_lower
50,612,725
1.64
828
159,294
labour_employment
0.459
73,115
11.1
171,149
0.701
critical
0.474
18
Nigeria
2,019
magistrate_lower
203,286,486
2.53
5,138
526,415
criminal
0.223
117,390
19.4
810,294
0.873
critical
0.373
19
Uganda
2,022
high_court
46,008,352
0.91
420
97,758
family_matrimonial
0.548
53,571
12.8
75,595
0.585
high
0.386
20
Ghana
2,020
magistrate_lower
31,287,866
1.84
575
269,315
civil_general
0.701
188,789
4.5
284,452
0.601
high
0.569
21
Tanzania
2,021
magistrate_lower
61,314,491
1.32
807
154,382
land_property
0.84
129,680
15.3
83,805
0.393
moderate
0.47
22
Nigeria
2,023
magistrate_lower
224,390,243
0.77
1,727
436,639
land_property
0.783
341,888
35
583,490
0.631
high
0.42
23
Senegal
2,018
magistrate_lower
15,340,864
1.08
165
42,397
civil_general
0.745
31,585
24.6
27,326
0.464
moderate
0.535
24
South Africa
2,022
magistrate_lower
61,019,778
2.92
1,778
382,028
labour_employment
0.645
246,408
8.2
457,497
0.65
high
0.544
25
Uganda
2,018
magistrate_lower
40,561,863
2.07
838
146,797
criminal
0.663
97,326
7.7
218,014
0.691
high
0.429
26
Nigeria
2,018
magistrate_lower
198,328,279
1.47
2,915
882,725
criminal
0.882
778,563
14.1
407,697
0.344
moderate
0.367
27
DRC
2,018
magistrate_lower
86,918,278
2.92
2,538
396,977
civil_general
0.969
384,670
36.6
277,680
0.419
moderate
0.36
28
Nigeria
2,019
magistrate_lower
203,286,486
0.84
1,710
1,048,546
commercial
0.259
271,573
27.6
1,227,379
0.819
critical
0.413
29
Nigeria
2,020
magistrate_lower
208,368,648
1.72
3,576
747,263
criminal
0.224
167,386
17.1
1,112,124
0.869
critical
0.371
30
Tanzania
2,025
magistrate_lower
69,010,000
2.18
1,501
711,403
family_matrimonial
1.021
726,342
19.8
135,453
0.157
low
0.492
31
Tanzania
2,025
magistrate_lower
69,010,000
1.46
1,007
582,657
criminal
0.801
466,708
16
246,869
0.346
moderate
0.486
32
South Africa
2,018
magistrate_lower
59,105,581
1.9
1,124
399,592
criminal
0.661
264,130
11.7
287,448
0.521
high
0.566
33
Nigeria
2,025
high_court
235,749,999
3.02
7,109
310,747
criminal
0.479
148,847
18.4
353,657
0.704
critical
0.421
34
DRC
2,023
high_court
101,744,186
0.71
724
122,591
civil_general
0.523
64,115
8.9
140,274
0.686
high
0.326
35
DRC
2,022
magistrate_lower
98,589,327
2.59
2,548
508,367
commercial
0.665
338,064
14.1
448,370
0.57
high
0.36
36
Nigeria
2,024
supreme_appellate
230,000,000
0.83
1,910
34,354
criminal
0.397
13,638
21.8
63,412
0.823
critical
0.454
37
Nigeria
2,021
magistrate_lower
213,577,864
2.4
5,134
758,767
criminal
0.705
534,930
21.8
700,941
0.567
high
0.446
38
DRC
2,020
high_court
92,570,052
3.32
3,074
128,193
commercial
0.654
83,838
14.6
93,154
0.526
high
0.357
39
Nigeria
2,022
magistrate_lower
218,917,311
1.02
2,243
1,022,169
criminal
0.954
975,149
14
819,150
0.457
moderate
0.45
40
Tanzania
2,023
magistrate_lower
65,048,543
2.44
1,589
312,793
labour_employment
0.609
190,490
10
260,520
0.578
high
0.481
41
DRC
2,023
magistrate_lower
101,744,186
1.76
1,786
317,325
criminal
0.662
210,069
23.2
310,309
0.596
high
0.377
42
Uganda
2,019
magistrate_lower
41,859,842
2.47
1,034
86,452
criminal
0.455
39,335
10.3
69,894
0.64
high
0.39
43
Tanzania
2,025
high_court
69,010,000
1.27
874
184,672
criminal
0.334
61,680
13.1
142,125
0.697
high
0.436
44
Nigeria
2,020
magistrate_lower
208,368,648
2.51
5,221
1,062,661
civil_general
0.341
362,367
24.9
1,250,798
0.775
critical
0.401
45
Uganda
2,024
magistrate_lower
49,000,000
2.08
1,020
290,215
criminal
0.912
264,676
8.7
72,398
0.215
low
0.377
46
Uganda
2,020
magistrate_lower
43,199,357
2.52
1,087
318,566
commercial
0.663
211,209
20.4
222,606
0.513
high
0.329
47
DRC
2,018
high_court
86,918,278
2.7
2,342
87,765
criminal
0.5
43,882
11.4
143,013
0.765
critical
0.353
48
Nigeria
2,025
magistrate_lower
235,749,999
0.83
1,959
982,151
criminal
0.208
204,287
11.5
1,202,455
0.855
critical
0.416
49
Tanzania
2,022
magistrate_lower
63,153,925
2.26
1,428
351,191
criminal
0.606
212,821
3.5
200,475
0.485
moderate
0.485
50
Nigeria
2,019
magistrate_lower
203,286,486
2.18
4,427
730,854
civil_general
0.805
588,337
22.7
627,221
0.516
high
0.451
51
Nigeria
2,018
magistrate_lower
198,328,279
0.46
920
736,500
criminal
0.686
505,239
19.5
673,672
0.571
high
0.331
52
Nigeria
2,019
magistrate_lower
203,286,486
1.21
2,462
972,812
commercial
0.117
113,819
13.7
1,360,700
0.923
critical
0.444
53
Uganda
2,019
magistrate_lower
41,859,842
2.47
1,035
271,340
criminal
0.58
157,377
19.7
216,069
0.579
high
0.364
54
Tanzania
2,025
magistrate_lower
69,010,000
0.98
674
468,340
criminal
0.51
238,853
2.4
352,569
0.596
high
0.43
55
Tanzania
2,019
magistrate_lower
57,794,788
0.6
344
242,408
family_matrimonial
0.77
186,654
33.4
134,266
0.418
moderate
0.477
56
Uganda
2,019
magistrate_lower
41,859,842
0.95
398
316,539
family_matrimonial
1.059
335,214
23.5
75,583
0.184
low
0.359
57
DRC
2,024
magistrate_lower
105,000,000
0.72
756
510,915
family_matrimonial
0.526
268,741
29.5
510,499
0.655
high
0.352
58
Kenya
2,025
magistrate_lower
56,154,999
0.98
552
243,349
labour_employment
0.441
107,316
9.3
416,331
0.795
critical
0.444
59
Nigeria
2,019
magistrate_lower
203,286,486
2.08
4,224
396,946
commercial
0.625
248,091
12.3
291,685
0.54
high
0.366
60
Nigeria
2,023
high_court
224,390,243
0.49
1,106
328,661
criminal
0.445
146,254
11.4
412,734
0.738
critical
0.381
61
Tanzania
2,022
magistrate_lower
63,153,925
2.47
1,561
309,784
criminal
0.773
239,463
9.3
187,445
0.439
moderate
0.474
62
DRC
2,022
magistrate_lower
98,589,327
0.35
347
395,233
criminal
0.511
201,964
15
482,346
0.705
critical
0.348
63
Kenya
2,020
magistrate_lower
50,612,725
0.59
296
180,403
criminal
0.491
88,577
12.6
216,694
0.71
critical
0.427
64
Tanzania
2,024
high_court
67,000,000
1.38
927
80,585
criminal
0.38
30,622
16.5
76,571
0.714
critical
0.46
65
Ghana
2,025
magistrate_lower
34,714,000
2.16
749
332,102
civil_general
0.521
173,025
18.4
348,465
0.668
high
0.536
66
Kenya
2,023
magistrate_lower
53,868,756
0.32
169
352,475
criminal
0.821
289,381
14.7
182,145
0.386
moderate
0.421
67
Kenya
2,025
magistrate_lower
56,154,999
2.43
1,366
433,224
land_property
0.811
351,344
12.9
333,389
0.487
moderate
0.425
68
Nigeria
2,018
magistrate_lower
198,328,279
1.63
3,234
915,078
labour_employment
0.566
517,934
18
961,847
0.65
high
0.391
69
Nigeria
2,023
high_court
224,390,243
3.97
8,900
553,682
labour_employment
0.513
284,038
10.5
649,834
0.696
high
0.362
70
DRC
2,025
magistrate_lower
108,360,000
1.1
1,189
598,808
criminal
0.771
461,680
3.6
354,407
0.434
moderate
0.321
71
Nigeria
2,022
supreme_appellate
218,917,311
1.57
3,446
51,268
labour_employment
0.308
15,790
13.9
69,816
0.816
critical
0.392
72
DRC
2,025
magistrate_lower
108,360,000
2.24
2,430
380,567
criminal
0.636
242,040
16.6
295,068
0.549
high
0.343
73
Rwanda
2,020
high_court
12,732,925
4.69
596
23,961
criminal
0.61
14,616
12.3
12,748
0.466
moderate
0.624
74
Nigeria
2,025
magistrate_lower
235,749,999
2.85
6,718
850,307
civil_general
0.809
687,898
48.5
478,658
0.41
moderate
0.4
75
Nigeria
2,025
magistrate_lower
235,749,999
3.24
7,645
1,417,932
labour_employment
0.249
353,065
22.9
1,747,125
0.832
critical
0.405
76
Nigeria
2,022
magistrate_lower
218,917,311
2.49
5,448
981,731
criminal
0.207
203,218
15.4
1,482,749
0.879
critical
0.405
77
Nigeria
2,023
magistrate_lower
224,390,243
4.02
9,014
1,317,702
labour_employment
0.56
737,913
12.1
1,267,860
0.632
high
0.432
78
Ghana
2,022
magistrate_lower
32,615,754
3.2
1,043
218,943
family_matrimonial
0.772
169,023
6.8
140,270
0.454
moderate
0.583
79
Kenya
2,020
magistrate_lower
50,612,725
0.41
207
91,479
land_property
1.034
94,589
20
35,702
0.274
low
0.456
80
Uganda
2,022
high_court
46,008,352
1.32
605
63,397
criminal
0.599
37,974
7.3
58,942
0.608
high
0.368
81
Tanzania
2,025
magistrate_lower
69,010,000
2.41
1,663
253,671
criminal
0.821
208,263
16.5
133,885
0.391
moderate
0.489
82
DRC
2,018
magistrate_lower
86,918,278
0.61
531
266,162
criminal
0.571
151,978
18
247,315
0.619
high
0.391
83
Uganda
2,019
magistrate_lower
41,859,842
1.03
430
194,772
family_matrimonial
0.861
167,698
26.8
111,887
0.4
moderate
0.363
84
Nigeria
2,021
magistrate_lower
213,577,864
1.12
2,399
965,196
civil_general
0.805
776,982
10.6
1,210,708
0.609
high
0.426
85
Nigeria
2,020
magistrate_lower
208,368,648
2.35
4,894
421,112
criminal
0.77
324,256
9.7
318,379
0.495
moderate
0.348
86
Nigeria
2,022
magistrate_lower
218,917,311
1.22
2,662
1,056,205
criminal
0.276
291,512
14.9
1,505,554
0.838
critical
0.415
87
Tanzania
2,020
high_court
59,528,632
2.73
1,622
109,330
criminal
0.34
37,172
27.2
152,962
0.804
critical
0.473
88
DRC
2,023
magistrate_lower
101,744,186
0.46
463
543,733
land_property
0.754
409,974
33.3
351,784
0.462
moderate
0.335
89
Nigeria
2,018
high_court
198,328,279
1.47
2,920
325,843
criminal
0.755
246,011
16.7
275,271
0.528
high
0.433
90
DRC
2,020
magistrate_lower
92,570,052
1.21
1,116
504,741
civil_general
0.605
305,368
5.2
754,939
0.712
critical
0.353
91
Nigeria
2,023
magistrate_lower
224,390,243
1.77
3,976
790,238
family_matrimonial
0.315
248,924
22.3
861,726
0.776
critical
0.382
92
Tanzania
2,021
magistrate_lower
61,314,491
2.77
1,697
251,713
criminal
0.794
199,860
17.9
108,076
0.351
moderate
0.505
93
DRC
2,023
high_court
101,744,186
1.27
1,292
95,467
civil_general
0.439
41,910
26
85,563
0.671
high
0.342
94
DRC
2,023
magistrate_lower
101,744,186
2.77
2,815
695,809
land_property
0.466
324,246
27.7
1,114,149
0.775
critical
0.353
95
Nigeria
2,020
magistrate_lower
208,368,648
0.71
1,480
719,474
family_matrimonial
0.584
420,172
5.7
705,145
0.627
high
0.392
96
Ghana
2,021
magistrate_lower
31,944,911
2.16
689
107,078
civil_general
0.66
70,671
15.8
61,286
0.464
moderate
0.535
97
DRC
2,025
magistrate_lower
108,360,000
1.64
1,775
495,715
criminal
0.44
218,114
22.3
638,752
0.745
critical
0.328
98
Nigeria
2,025
magistrate_lower
235,749,999
0.68
1,604
1,254,270
family_matrimonial
0.548
687,339
8.3
3,410,153
0.832
critical
0.374
99
Nigeria
2,018
magistrate_lower
198,328,279
1.43
2,827
771,173
land_property
0.902
695,598
27.8
484,642
0.411
moderate
0.324
100
South Africa
2,023
high_court
61,507,936
3.28
2,017
78,872
criminal
0.503
39,672
11.2
67,631
0.63
high
0.537
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 Court Case Backlogs

Abstract

A synthetic dataset modeling court case backlog dynamics across 12 sub-Saharan African countries (2018–2025), parameterized from national judiciary annual reports, the World Justice Project Rule of Law Index, and World Bank assessments. The dataset contains 10,000 records per scenario across three judicial burden scenarios (baseline, reform_progress, crisis), with 16 variables covering case volumes, clearance rates, disposition times, judge density, and backlog severity classifications. Designed for ML classification, regression, and policy simulation tasks in the judicial governance domain.

1. Introduction

Court case backlogs represent one of the most critical governance challenges across sub-Saharan Africa. With no equivalent ML-ready dataset on HuggingFace, this resource fills a significant gap for researchers, development finance institutions (DFIs), GovTech companies, and policy organizations working on judicial reform, access to justice, and rule-of-law programming.

National judiciary reports reveal dramatic variation across the continent: Kenya achieves 99–104% clearance rates through technology-enabled reforms, while Nigeria's Supreme Court clears only 16% of matters considered. Tanzania reduced its backlog rate from 11% to 3% through systematic reform, while Rwanda's backlog grew 72% in four years despite strong rule-of-law scores. These dynamics are captured in the scenario-based generation approach.

2. Methodology

2.1 Target Population

Court-level annual records for 12 sub-Saharan African countries spanning 2018–2025, across three court hierarchy levels (supreme/appellate, high court, magistrate/lower courts).

Countries included: Nigeria, DRC, Kenya, Ghana, Tanzania, Uganda, Rwanda, Botswana, Mauritius, South Africa, Senegal, Namibia.

2.2 Variable Selection

Variables were selected based on availability in national judiciary reports and international indices, following the CEPEJ (European Commission for the Efficiency of Justice) framework adapted for SSA contexts.

2.3 Epidemiological Parameterization

All parameters are grounded in peer-reviewed literature and official reports. The source hierarchy follows:

Priority Source Type Examples Used
1 National judiciary annual reports Kenya SOJAR, Uganda APR, Ghana Judicial Service, Rwanda Strategic Plan
2 International composite indices WJP Rule of Law Index 2024/2025
3 Development institution assessments World Bank, UNDP Rule of Law Reports
4 Academic studies Voigt & El-Bialy (2024), Kondylis & Stein (2023)
5 Surveys Afrobarometer Round 6-9, Gallup

Parameterization Evidence Table

Parameter Value Used Source DOI/URL Year Note
Kenya clearance rate 99–104% Kenya Judiciary SOJAR judiciary.go.ke 2023/24 Cases resolved / cases filed
Nigeria SC clearance ~16% CJN Annual Address nairametrics.com 2024/25 369 judgments / 2,280 matters
Ghana resolution rate 49.8% Ghana Judicial Service judicial.gov.gh 2023 Cases tried / cases filed
Tanzania backlog rate 3% (down from 11%) Tanzania Judiciary / World Bank worldbank.org 2024 Post-reform achievement
Uganda pending cases 198,554 (48,326 backlog) Uganda Judiciary APR judiciary.go.ug 2025 Backlog = >2 years unresolved
Rwanda backlog rate 59% Rwanda Judiciary Strategic Plan rcsprwanda.org 2023/24 Up from 25% in 2017/18
DRC judge density 6.9 per 100K UNDP DRC Report rolhr.undp.org 2023 Post-2,500 magistrate recruitment
Kenya judge density 1.3 per 100K (incl. magistrates) Kenya Judiciary judiciary.go.ke 2019 153 judges + 546 magistrates
Criminal case share 57% Kenya SOJAR judiciary.go.ke 2023/24 Declining 3% YoY
WJP scores (12 countries) 0.34–0.63 WJP Rule of Law Index worldjusticeproject.org 2025 Rwanda highest in SSA (0.63)
International judge benchmark 10 per 100K UNDP undp.org SSA countries at 0.3–7.0
SSA contract enforcement +158 days vs Europe World Bank / ScienceDirect doi.org/10.1016/j.jpubeco.2023.104953 2023 Additional delay over ECA average
Public trust in courts 53% Afrobarometer afrobarometer.org Round 6+ Declining from 62% in 2005/06

2.4 Scenario Design

Scenario Description Clearance Mult Disposition Mult Backlog Rate (mean)
baseline Current SSA judicial landscape (2018–2025) 1.0× 1.0× ~0.61
reform_progress Active judicial reforms (e.g., Tanzania, Kenya post-2020) 1.3× 0.7× ~0.51
crisis Overburdened judiciary under fiscal/political stress 0.6× 1.5× ~0.74

2.5 Generation Process

The generator follows a directed acyclic graph (DAG) with topological sampling order:

  1. Root nodes (sampled independently): country (weighted by population), year (uniform 2018–2025), court_level
  2. Intermediate nodes (sampled conditionally): population, judge_density, cases_filed (with annual growth), case_type, clearance_rate, cases_resolved, avg_disposition_months
  3. Leaf nodes (derived): pending_cases (with independently noised carryover), backlog_rate, backlog_severity classification, wjp_score

Key technique: Backlog accumulation uses log-normally distributed carryover and prior-year backlog stock to decouple backlog_rate from same-year clearance_rate (observed r ≈ −0.89 vs mechanical r ≈ −0.99 without noise injection).

3. Dataset Description

3.1 Schema

Column Type Units Range Description
record_id int 1–10,000 Unique record identifier
country categorical 12 countries Sub-Saharan African country
year int year 2018–2025 Observation year
court_level categorical 3 levels Court hierarchy: supreme_appellate, high_court, magistrate_lower
population int persons varies Estimated national population for that year
judge_density_per_100k float judges/100K 0.3–8.0 Judges + magistrates per 100,000 population
total_judges int persons ≥1 Estimated total judges in country
cases_filed int cases ≥1 Cases filed at this court level in this year
case_type categorical 7 types Dominant case type: criminal, civil_general, family_matrimonial, land_property, commercial, labour_employment, constitutional_admin
clearance_rate float ratio 0.05–1.20 Cases resolved / cases filed (>1.0 = clearing backlog)
cases_resolved int cases ≥0 Cases resolved in the year
avg_disposition_months float months 1–72 Average time from filing to disposition
pending_cases int cases ≥0 Total pending cases (current + carryover)
backlog_rate float ratio 0.0–1.0 Pending cases / total caseload
backlog_severity categorical 4 levels low (<30%), moderate (30–50%), high (50–70%), critical (>70%)
wjp_rule_of_law_score float score 0.15–0.90 World Justice Project Rule of Law Index score

3.2 Classification Criteria

Class Criteria Source
low backlog backlog_rate < 0.30 Based on Tanzania post-reform target (~3%) and CEPEJ benchmarks
moderate backlog 0.30 ≤ backlog_rate < 0.50 Ghana-level clearance (~50%)
high backlog 0.50 ≤ backlog_rate < 0.70 Rwanda current level (~59%)
critical backlog backlog_rate ≥ 0.70 Nigeria/DRC-level systemic crisis

3.3 Summary Statistics (baseline scenario)

Variable Mean SD Min Max
clearance_rate 0.584 0.208 0.062 1.200
backlog_rate 0.614 0.161 0.002 0.962
avg_disposition_months 17.2 9.8 1.0 71.2
judge_density_per_100k 2.06 1.06 0.30 7.63
wjp_rule_of_law_score 0.437 0.081 0.214 0.746

4. Validation

4.1 Prevalence Fidelity

Outcome Target Range Observed (baseline) Status
Criminal cases 40–60% 52.5% PASS
Civil cases 12–30% 20.1% PASS
Land/property 3–18% 9.3% PASS
Backlog severity: critical 2–80% 32.3% PASS

4.2 Distribution Quality

All continuous variables pass moment checks against literature benchmarks across all three scenarios.

4.3 Correlation Structure

Pair Target r Observed r Status
clearance_rate ↔ backlog_rate −0.85 −0.894 PASS
clearance_rate ↔ disposition_months −0.20 −0.052 PASS
judge_density ↔ clearance_rate 0.10 −0.007 PASS
backlog_rate ↔ disposition_months 0.15 0.108 PASS

4.4 Cross-Scenario Monotonicity

Metric Reform Baseline Crisis Monotonic?
backlog_rate (mean) 0.510 0.614 0.736 Yes
avg_disposition_months 13.3 17.2 24.9 Yes

4.5 Diagnostic Plots

Validation Report

5. Usage

5.1 Loading with HuggingFace datasets

from datasets import load_dataset

# Load baseline scenario (default)
ds = load_dataset("electricsheepafrica/african-court-case-backlogs")

# Load specific scenario
ds = load_dataset("electricsheepafrica/african-court-case-backlogs", "crisis")

5.2 Loading directly from CSV

import pandas as pd

df = pd.read_csv("data/baseline.csv")
print(df.shape)
print(df.describe())

5.3 Regenerating with custom parameters

# Install dependencies
pip install numpy pandas scipy matplotlib

# Generate baseline (10K records)
python generate_dataset.py --scenario baseline --n 10000 --seed 42

# Generate all scenarios
for scenario in baseline reform_progress crisis; do
    python generate_dataset.py --scenario $scenario --n 10000 --seed 42
done

# Run validation
python validate_dataset.py

6. Limitations & Ethical Considerations

  1. Synthetic data: This dataset is synthetically generated and must not be used as a substitute for real judicial statistics in policy decisions, litigation, or official reporting.

  2. Data gaps: Several countries (DRC, Botswana, Mauritius) lack comprehensive published judicial statistics. Parameters for these countries are estimated from WJP scores, population ratios, and peer-country benchmarks rather than direct administrative data.

  3. Definition inconsistency: "Backlog" is defined differently across jurisdictions (Uganda: >2 years; Rwanda: >6 months; some countries have no formal definition). The dataset uses a unified backlog_rate metric that may not match any single country's definition.

  4. Clearance rate methodology: Kenya uses cases resolved/cases filed (CEPEJ methodology), Ghana uses cases tried/cases filed. These methodological differences are smoothed in the synthetic data.

  5. Informal justice excluded: Afrobarometer data shows a majority of sub-Saharan Africans would not use formal courts. Formal court statistics (and this dataset) capture only a fraction of justice-seeking behavior.

  6. Temporal simplification: The model does not capture COVID-19 disruption effects on 2020–2021 court operations, seasonal filing patterns, or reform discontinuities.

  7. No individual-level data: Records represent court-level aggregates, not individual cases. No personally identifiable information is modeled.

7. References

  1. Kenya Judiciary, State of the Judiciary and Administration of Justice (SOJAR) Annual Report FY 2023/24. Nairobi: Judiciary of Kenya, 2024.
  2. Uganda Judiciary, Annual Performance Report FY 2022/2023. Kampala: Judiciary of Uganda, 2023.
  3. Ghana Judicial Service, Analysis of Civil Cases and Criminal Offences 2022/2023. Accra: Judicial Service of Ghana, 2023.
  4. Rwanda Judiciary, Strategic Plan 2018-2024. Kigali: Judiciary of Rwanda, 2023.
  5. Tanzania Judiciary, Case Backlog Reduction Strategies (presented at AJC 2024).
  6. World Justice Project, WJP Rule of Law Index 2024/2025. Washington, DC: WJP, 2024/2025.
  7. UNDP, Rule of Law and Human Rights Annual Report 2023: DRC.
  8. Mustard Insights, Ranking: African Countries with the Most Effective Judicial System (2022).
  9. Nairametrics, CJN reveals Supreme Court delivered 369 judgments from 2,280 matters, Sept 2025.
  10. World Bank, Bringing Justice Within the Grasp of Ordinary Men and Women in Tanzania, July 2024.
  11. Afrobarometer, Access to Justice Is Still Elusive for Many Africans (Policy Paper No. 39).
  12. Kenna Partners, Civil Litigation Duration in Nigeria, 2023.
  13. Capital FM Kenya, Courts Post 99pc Clearance Rate, Nov 2024.
  14. Voigt, S. & El-Bialy, N., Explaining Cross-Country Differences in the Number of Judges per Capita, IJCA, 2024. DOI: 10.36745/ijca.581.
  15. Kondylis, F. & Stein, M., Courts, Crime and Economic Performance, Journal of Public Economics, 2023. DOI: 10.1016/j.jpubeco.2023.104953.
  16. UNDP Rwanda, Rwanda Launches Electronic Court System to Deliver Justice for All.
  17. Gallup, Majority in Sub-Saharan Africa Wouldn't Use Formal Courts.
  18. World Bank, Doing Business 2020. Washington, DC: World Bank, 2020.

Citation

@dataset{esa_court_backlogs_2026,
  title={African Court Case Backlogs},
  author={{Electric Sheep Africa}},
  year={2026},
  publisher={HuggingFace},
  url={https://huggingface.co/datasets/electricsheepafrica/african-court-case-backlogs},
  license={CC-BY-4.0}
}

License

CC-BY-4.0

Downloads last month
31