electricsheepafrica/african-judicial-access-indicators
收藏Hugging Face2026-03-19 更新2026-03-29 收录
下载链接:
https://hf-mirror.com/datasets/electricsheepafrica/african-judicial-access-indicators
下载链接
链接失效反馈官方服务:
资源简介:
---
license: cc-by-4.0
task_categories:
- tabular-classification
- tabular-regression
language:
- en
tags:
- governance
- access-to-justice
- judicial-systems
- legal-aid
- rule-of-law
- sub-saharan-africa
- synthetic
- lmic
- gender-equity
pretty_name: African Judicial Access Indicators
size_categories:
- 10K<n<100K
configs:
- config_name: baseline
data_files: data/baseline.csv
default: true
- config_name: improved_access
data_files: data/improved_access.csv
- config_name: constrained
data_files: data/constrained.csv
---
# 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

## 5. Usage
### 5.1 Loading with HuggingFace datasets
```python
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
```python
import pandas as pd
df = pd.read_csv("data/baseline.csv")
```
### 5.3 Regenerating with custom parameters
```bash
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
```bibtex
@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
提供机构:
electricsheepafrica



