This project is an entry in the 2026 University of Seoul Department of Statistics Data Analysis Contest, and the presentation slides are available here.
1. Overview
The contest asked, "In a super-aged society, where does Seoul need more medical and care infrastructure?" Teams had to back an actionable policy proposal with data analysis.
According to the Bank of Korea, the population of older adults in their final stage of life roughly doubled in 24 years, from 148,000 in 2001 to 292,000 in 2025, and is projected to reach 639,000 by 2050. Nursing home capacity has grown 8.4% a year since 2008, but only 38% of facilities are rated highly (grade A or B), and 57% of people on waiting lists are waiting for those facilities. The supply that people can actually use is still short.
Seoul is the worst case. Its nursing homes have vacancies equal to just 3.4% of its end-of-life older population, the lowest among the regions compared. Nursing homes are paid the same fixed rate regardless of location, so private operators find it hard to open facilities in expensive cities. The same analysis found that a region with 10% higher land prices has a vacancy rate 2.3 percentage points lower.
So our team narrowed the contest question to "Which neighborhoods in Seoul lack nursing home capacity the most, and where will it run short next?" and worked through it in four steps.
| Step | Question | Method | Scope |
|---|---|---|---|
| 1. District-level supply | Is there a gap within Seoul? Are land prices the cause? | Capacity per population, vacancy ratio, land price correlation | 25 districts |
| 2. Neighborhood-level analysis | Measured by travel radius, which neighborhoods fall short? | E2SFCA accessibility, grade-weighted supply | 426 neighborhoods |
| 3. Future demand | If supply stays the same, where does it get worse first? | Population projections, comparison against the 2024 median | 2024 → 2034 |
| 4. Policy proposal | Where, how much, and when should supply be added? | Required-bed calculation, facility placement simulation | Using public land |
The project was done by a two-person team with a fellow statistics student, and all analysis code and outputs are public in the GitHub repository.
2. Analysis Design
The analysis was done in Python, using pandas for data processing, GeoPandas for spatial analysis, statsmodels for regression, and SciPy for optimizing facility placement.
The data came from public sources: long-term care facility status, evaluation results, and care grade statistics from the National Health Insurance Service, resident population by neighborhood from the Ministry of the Interior and Safety, standard land prices from the Ministry of Land, Infrastructure and Transport, and population projections from KOSIS. Facility addresses were geocoded with the Kakao API, and neighborhood boundaries came from the July 2024 version of vuski/admdongkor.
The analysis used the following baseline.
| Item | Baseline |
|---|---|
| Time | July 2024 |
| Demand | Estimated people aged 65+ with long-term care grade 1–2 (population by age × certification rate) |
| Supply | Nursing home capacity × evaluation grade weight |
| Scope | 426 neighborhoods in Seoul + 757 neighborhoods in Gyeonggi and Incheon |
Counting capacity by district ignores people who use facilities across district lines, so the neighborhood analysis used E2SFCA (Enhanced Two-Step Floating Catchment Area), a method from healthcare accessibility research. Neighborhoods in Gyeonggi and Incheon were included so that neighborhoods near Seoul's border could also count facilities outside the city.
E2SFCA works in two steps: first it divides each facility's supply among the demand within its radius, then it sums up each neighborhood's share of the facilities within its radius.
For example, suppose neighborhoods A, B, and C each have 100 people, a 50-bed facility X serves A and B, and a 50-bed facility Y serves B and C. Each facility serves 200 people, so each provides 25 beds per 100 people. Neighborhood B can use both X and Y, so its accessibility is 25 + 25 = 50 beds per 100 people.
def e2sfca(demand, supply, dist_km, d0_km, decay="gaussian"):
w = _weights(dist_km, d0_km, decay) # distance weight, larger when closer
# Step 1: divide each facility's supply by the weighted demand within its radius
weighted_demand = demand @ w
no_demand = weighted_demand <= 0
ratio = np.full(len(supply), np.nan)
ratio[~no_demand] = supply[~no_demand] / weighted_demand[~no_demand]
# Step 2: sum each neighborhood's share of the facilities within its radius
accessibility = w[:, ~no_demand] @ ratio[~no_demand]
return E2SFCAResult(accessibility, ratio, weighted_demand, no_demand)
Distance was the straight-line distance from each neighborhood's center to each facility. The default radius was 5km, with a Gaussian decay function so that closer facilities counted more. Because results can depend on the radius, the same calculation was repeated at 3, 10, and 15km.
Supply was not raw capacity but capacity weighted by each facility's evaluation grade. Occupancy falls from grade A to grade E, from 87.9% to 72.5% nationwide and from 97.2% to 84.3% in Seoul, and in Seoul the odds of a C, D, or E facility being full were only 0.20–0.28 times those of a grade A facility. To reflect that people choose lower-rated facilities less often, the occupancy ratio by grade was used as the weight (A 1.00 · B 0.96 · C 0.91 · D 0.90 · E 0.82).
E2SFCA also has a conservation property: counting only facilities with demand within their radius, the sum of "demand × accessibility" over all neighborhoods equals total supply. This was checked with unit tests. And because adding a new facility does not change the shares of existing ones, the simulation adds only the new facility's share instead of recalculating everything, which made it fast to try many facility placements.
To find how many facilities are needed, each candidate site (a neighborhood center) was allowed one 50-bed facility, and SciPy's integer linear programming solver (milp) found the minimum number of facilities that meets the target. Placing facilities one at a time does not guarantee the minimum, so results from the two methods were recorded separately.
The analysis was split into seven notebooks: spatial setup, demand estimation, supply quality, accessibility, validation, bed shortfall, and future demand. Shared calculations live in e2sfca.py, and the baseline dates and parameters live in one place, config.py. Report sentences are generated by recalculating numbers from the saved outputs, and they are not shown if the hash of the input files has changed, so the numbers in the report always match the current data.
3. Results
District Analysis
Nursing home capacity per 1,000 people aged 75+ was 40.8 in Geumcheon-gu and 7.3 in Jung-gu, a 5.6-fold difference. In four of the five districts with the lowest capacity, occupancy was 95.8–99.4%, leaving practically no vacancies.
Across Seoul, vacancies equaled 6.3% of people with grade 1–2 certification, the lowest of all 17 provinces and metropolitan cities, and 23 of Seoul's 25 districts were below Busan (15.7%).
Land prices and vacancy ratios were clearly negatively correlated. The Pearson correlation between ln(land price) and the vacancy ratio was −0.68, with a rank correlation of −0.79. The five most expensive districts had a vacancy ratio of 1.9%, about one-sixth that of the five cheapest (12.0%).
Neighborhood Analysis
Effective capacity per 100 potential care recipients (5km radius) had a median of 67.5 beds, with the bottom 10% below 28.5 and the top 10% above 109.8. Shortages appeared as a continuous area across downtown and the central Han River, regardless of district lines.
The rank correlation between within-district capacity and 5km-radius accessibility was 0.81, so the overall pattern was similar, but Jongno-gu dropped from 5th to 16th in supply rank. A district can look well supplied by its own capacity, yet have little room once demand from neighboring districts is counted.
The 12 neighborhoods below are in the bottom 10% at every radius (3, 5, 10, and 15km).
| District | Neighborhoods |
|---|---|
| Dongjak-gu | Sadang 1, Sadang 2, Sadang 3, Heukseok |
| Yongsan-gu | Seobinggo, Ichon 1, Bogwang, Hangangno |
| Seocho-gu | Banpo 2, Banpo 3, Bangbae-bon, Bangbae 4 |
These 12 neighborhoods have a potential demand of 621 people and need 295 more beds of effective capacity to reach the Seoul median.
To check that the result did not depend on a single assumption, the assumptions were changed one at a time to see whether the same 12 neighborhoods remained.
| Changed condition | Neighborhoods kept |
|---|---|
| Expanded demand to include care grade 3 | 12/12 |
| Did not weight supply by evaluation grade | 12/12 |
| Used each district's own certification rate | 8/12 |
| Changed grade weights to A·B = 1, C–E = 0.5 | 8/12 |
| Counted everything within the radius equally (no distance decay) | 1/12 |
Required Capacity and Future Demand
With demand and the target fixed at the 2024 Seoul median, Seoul as a whole needs 2,402 more beds of effective capacity, or at least 2,553 actual beds.
Integer optimization showed that raising the 12 neighborhoods to the Seoul median takes at least 26 facilities of 50 beds each (1,300 beds). With those 26 facilities in place, Seoul's total gap drops from 2,402 to 1,274 beds, and the number of neighborhoods below the median drops from 212 to 182.
In a 2034 scenario with certification rates and supply held at 2024 levels, Seoul's potential demand for intensive care grows 1.67-fold, from 22,074 to 36,899 people, and the capacity needed rises from 2,553 to 10,014 beds. The top 10% in accessibility decline include 18 neighborhoods in Songpa-gu and 17 in Gangdong-gu, showing that shortages will worsen fastest in southeast Seoul.
Policy Proposal
Based on these results, we proposed four policies built on a split where the public sector provides land, oversight, and support for vulnerable groups, and private operators run the facilities and deliver services.
| Policy | Rationale | Action |
|---|---|---|
| Use public land in priority areas | Effective capacity in the 12 neighborhoods is at most 37% of the Seoul median | Review sites, then place 26 facilities · 1,300 beds |
| Secure land in southeast Seoul early | Accessibility in Songpa and Gangdong falls by 2034 | Secure land ahead of time where shortages are expected |
| Propose rate reform · publish the gap map regularly | The fixed rate ignores regional property costs | Review user charges and subsidies, update the gap map regularly |
| Survey care needs outside facilities | There may be people who need care but cannot use a facility | Survey jointly with related agencies |
4. Retrospective
The hardest part of this project was not the analysis but putting its results into accurate words.
For example, neighborhood demand is not the number of people waiting for a bed, but potential demand estimated from age structure and certification rates. The 2,553 beds are not observed unmet demand, but a lower bound from a model that fixes demand and the target. And while 26 facilities is a value confirmed as the minimum by integer optimization, the 48 facilities in the 2034 scenario are just a feasible solution found by one-at-a-time placement and cannot be called a minimum. The same number can carry very different policy meaning depending on the assumptions behind it, so I spent a lot of time stating what each figure means and under what conditions.
Checking robustness mattered just as much. Changing the radius and assumptions showed that some results were sensitive: without distance decay, only 1 of the 12 neighborhoods remained. I learned that showing which conclusions are robust and which are conditional, rather than hiding the sensitive ones, makes a policy proposal more credible.
The limits were clear too. Facility occupancy data did not clearly validate the neighborhood ranking, and road travel time instead of straight-line distance, population-weighted centers instead of geometric ones, and validation with actual admission origins and waiting lists were left for future work.
Finally, I saw firsthand that statistical analysis can be treated like software. Splitting shared calculations into a module, testing properties that must always hold such as conservation, and tracking report numbers with input hashes meant that even after revising the analysis many times, I could trust the results and move on to the next step. Studying both statistics and computer science, this project let me work right where the two fields meet.
