Skip to content

Commit

Permalink
Merge pull request #23 from hordiienkoalina/develop
Browse files Browse the repository at this point in the history
merge develop into main
  • Loading branch information
hordiienkoalina authored Oct 28, 2024
2 parents 4d6f0e6 + bb2137f commit 1ea6a5f
Show file tree
Hide file tree
Showing 24 changed files with 12,076 additions and 16,780 deletions.
675 changes: 675 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

92 changes: 79 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,85 @@
# Map: Access to Education in Brazil
### Extension of @felipehlvo's project: An interactive map measuring spatial access to public high schools in Brazil.
# 🗺️ Atlas Educação
Atlas Educação is a tool designed to visualize access to high-quality public high schools across Brazil. Leveraging datasets from the Brazilian Demographic Census (2010) and the School Census (2020), the platform highlights disparities in <ins>educational access</ins> and correlates them with <ins>demographic factors</ins> such as <ins>income, race, and gender</ins>.

### Install
## 🖼️ Interface Preview

#### Data Preparation
![alt text](public/BR-interface-preview.png)

```
python3 scripts/csv_points_polygons.py [full path to access df csv]
## 📊 Core Metrics

python3 scripts/gpd_to_geojson.py [full path to folder containg csv files]
```
### 1. Access Metric ($A_i$)
**Formula**: $A_i$ = $∑_{j∈[Dist(i,j)<16km]} R_j W_{ij} G_{ij}$

#### Running the App
This metric combines <ins>demand and supply factors</ins> for high schools within a census tract, incorporating:

```
npm install
npm start
```
- **$R_j$: Demand-Adjusted Supply**: Calculated by dividing school capacity by the number of students aged 15-17 in the area;
- **$W_{ij}$: Distance Weighting**: Adjusts for proximity between students and schools;
- **$G_{ij}$: Competition Weighting**: Accounts for competition from neighboring schools within a 16 km radius.

It then <ins>sums up all access levels</ins> from <ins>each census tract</ins> to all other <ins>schools within 16 km</ins> to get the <ins>overall access</ins> for a census tract.

### 2. Quality-Access Metric ($H_i$).

**Formula**: $H_i$ = $A_i Q_i$

An extension of the Access Metric, incorporating School Quality ($Q_i$), weighted using the IDEB (Primary Education Development Index) scores of each school.

## 🗺️ Visualization
The map <ins>visualizes these metrics</ins> by representing <ins>each dot as a cluster of approximately 10 school-age children</ins>, allowing users to observe:
- Areas with higher or lower access to high-quality public schools;
- Correlations between access levels and socioeconomic factors.

## 💻 User Interface
1. **Interactive Legend**: Adaptable by layer, showing distributions for different demographic groups (e.g., racial distribution).<br>
2. **Layer Options**: Access-Quality, Quality, Access, Income, Gender and Race. <br>
3. **Pop-up Information**: Detailed data for each location, including:
- Census tract ID;
- Number of school-age children;
- Average monthly income;
- Access and quality percentiles.

## 🎯 Purpose and Impact
Atlas Educação aims to inform the public and policymakers about geographic disparities in educational access. By identifying underserved regions, it guides resource allocation to improve educational equity. With over 20,500 school data points and demographic data across 310,000 census tracts, this tool is a robust resource for addressing educational inequality in Brazil, where the majority of high school students rely on public education.

## 📂 Resources
1. [Data (CSV + GeoJSON)](https://drive.google.com/drive/folders/1mLUgjvGivuuT-pvkGqEP_5QEk8fQOyJq?usp=sharing)<br>
2. [Methodology](https://drive.google.com/file/d/1XcylVaGVecnlIRGluxcbrwDkYOeJ9owh/view?usp=sharing)

## 🚀 Getting Started
### Prerequisites

🌐 **Web Browser**: Latest version of Chrome, Firefox, or Safari; <br>
🐍 **Python**: Version 3.8 or higher; <br>
📦 **Node.js**: Version 14 or higher. <br>

### Installation
1. Clone the Repository: ```git clone https://github.com/hordiienkoalina/access-to-education.git ```
2. Navigate to the Project Directory: ```cd access-to-education```
3. Install Dependencies: ```npm install```
4. Run the Application: ```npm start```

## 💡 Usage
- Open your web browser and navigate to http://localhost:3000.
- Use the interactive map to explore educational access across Brazil.
- Toggle different layers to view data on income, race, gender, and more.
- Click on dots to view detailed information about specific census tracts.

## 🤝 Contributing
Contributions are welcome! Please follow these steps:

1. Fork the project.
2. Create your feature branch: ```git checkout -b feature/YourFeature.```
3. Commit your changes: ```git commit -m 'Add some feature'.```
4. Push to the branch: ```git push origin feature/YourFeature.```
5. Open a pull request.

## 📜 License

This project is licensed under the GNU General Public License v3.0. See the LICENSE.md file for details.

## 📧 Contact
LinkedIn: [Felipe Horta Oliveira](https://www.linkedin.com/in/felipehlvoliveira/) <br>
Email: felipehlvo@gmail.com <br>

LinkedIn: [Alina Hordiienko](https://www.linkedin.com/in/hordiienkoalina/) <br>
Email: alinahordiienko@gmail.com <br>
Loading

0 comments on commit 1ea6a5f

Please sign in to comment.