How many people cannot be seen? Everyone has their own answer
In 2025 YouGov asked people in several European countries whether more immigrants in their country stay legally or illegally. The answers show how differently the scale of irregular migration is perceived.
Do you think there are more immigrants staying in your country legally or illegally?
Share of responses; the remainder to 100% are “don’t know” answers.
Source: , What do Europeans think about immigration? UK: 22–23 May 2025; other countries: 7–18 November 2025.
In Poland, 36% believed that there are more unauthorized than lawful migrants, 28% thought the opposite, and 22% believed the numbers are roughly equal. Meanwhile, about 1.2 million foreign nationals were registered for social insurance with ZUS at the end of 2024, while the Border Guard detected about 10,000 people staying illegally in 2025. The latter figure captures only detected cases, not the total unauthorized population. The last estimate for Poland () put the unauthorized population below 100,000 in 2014, 2015 and 2017 and at 100,000–200,000 in 2016.
Such mistaken beliefs are not new and are driven by various factors (; ; ). Since misperceptions stem from being both misinformed and uninformed, plausible estimates of the hidden population size are essential for designing public policies, allocating public funding and planning public services.
A population visible only in fragments
Unauthorized migrants are widely recognized as hard to reach and hard to measure, even in countries with high-quality population registers.
Foreign nationals can be divided into two groups: those who stay legally with valid permits, and those who stay without authorization. The latter do not appear in population registers or among lawfully employed and insured people, and they have incentives to avoid detection. They show up in administrative data only in fragments: in the inspection records of the Border Guard or the National Labour Inspectorate, and only when they are detected. Counts from such records therefore reflect not only the size of the population but also where and how intensively inspections are carried out. Surveys have no sampling frame for this group (), and even good registers undercount migration ().
Poland illustrates the estimation challenge well:
Rapid growth
Between 2015 and 2024 the number of foreign nationals in the PESEL population register rose from 200,000 to nearly 4.5 million. PESEL records the assignment of an identifier, not actual residence.
Visas and refugees
Between 2018 and 2023 Poland issued over 6 million visas, about 3.8 million of them work visas. After February 2022 over 3.5 million refugees from Ukraine transited through Poland; about 1 million remain under temporary protection.
Border pressure
Since 2021 Russia and Belarus have put pressure on the Polish–Belarusian border through politically instrumentalized migration, influencing the scale of unauthorized entry.
This combination of rapid demographic change, high visa issuance, humanitarian flows and border pressure creates conditions in which the unauthorized population is likely substantial but hard to estimate.
What the estimate covers
Under Polish law an unauthorized stay is any presence that violates entry or residence regulations, ranging from expired visas and overstayed permits to illegal employment and individuals flagged in the Schengen Information System. The estimate covers adult (18+) nationals of non-Schengen countries in 2019–2024.
No record linkage, no unit-level data
Existing methods require linking several sources, unit-level data at specific time points, or a new survey with respondents. The proposed method needs aggregated data only.
| Approach | What it requires | Linkage, unit-level data or contact with people |
|---|---|---|
| Residual method; ; | a census or large survey of the foreign-born and the number of lawful residents | unit-level data |
| Capture–recapture, multiple systems estimation; | the same people identified in two or more sources, or repeatedly in one | yes |
| Deductive and digital-trace methods | data on individual trips or stays, e.g. air passenger records | unit-level data |
| Respondent-driven sampling | a new survey in which participants from the hidden population recruit further participants through their networks | contact with the hidden population |
| Network scale-up | a new general-population survey: how many people from a given group respondents know | unit-level survey data |
| Community-anchored model; ; this paper | three counts aggregated by group | no |
The paper builds on the community-anchored model that introduced for a one-off application to Norwegian data, establishing its identifiability. The extension accommodates data over multiple years and subpopulations, covariate-varying parameters, robust inference of uncertainty, and estimator choice guided by simulation evidence. A similar approach was applied to Poland earlier by , who estimated the number of irregular foreigners using non-linear count regression models.
The model uses three inputs: aggregated counts of detected unauthorized migrants, the size of the authorized foreign population, and a covariate proxying for detection intensity. It rests on three assumptions:
- there is a structural relationship between unauthorized and authorized foreign nationals, because the former rely on communities and networks for survival;
- it is valid to target a theoretical size of the unauthorized population, without spurious day-to-day variation;
- the detection rate can be modeled statistically as a function of known features that proxy the relevant detection channels.
Two EU-funded research programmes support this approach. documented how much unauthorized migrants depend on established co-ethnic communities for housing, employment and social support; the community-anchor parameter captures this mechanism. MIrreM () highlighted that raw apprehension data reflect enforcement priorities and capacity rather than the underlying population; this is reflected in the detection-intensity parameter, which connects observed counts to the unobserved population.
From the theoretical model to the estimate
The model does not tell the stories of individual people. It describes how three counts relate to one another across hundreds of groups defined by citizenship, sex and year.
Community-anchored model
Community and period
For community \(i\) in period \(t\) we know the size of the reference population \(N\), i.e. foreign nationals staying lawfully. A community is usually the country of citizenship, but it can also be an ethnic group when data by citizenship are not available.
In the Polish application there are about 1,300 such cells: citizenship × sex × year.
The number of unauthorized migrants \(M\) is a random variable shaped by economic, political and demographic processes. The target is its theoretical size \(\xi = \mathbb{E}(M \mid N)\).
Conditioning on \(N\) captures how the two populations co-evolve and lets the estimate be read without spurious day-to-day variation, just like standard population statistics.
Only some people are detected: \(m = M\,p\), where \(p\) is the detection rate. Its expectation \(\rho\) is described by \(N\) and an auxiliary count \(n\).
If the detection rate does not depend on \(M\) itself, and \(n\) carries no information about \(M\) beyond \(N\), the expected number of detected people factorizes as \(\mu = \xi\,\rho\).
The theoretical size is a power law, \(\xi = N^{\alpha}\). The parameter \(\alpha\) (the community anchor) describes how the unauthorized population scales with the reference population.
We expect \(\alpha < 1\): \(\xi\) grows with \(N\), but ever more slowly. The classic Beverton–Holt population model behaves similarly, although the power law assumes no upper ceiling.
Detection intensity is \(\rho = (\gamma + n/N)^{\beta}\). The ratio \(n/N\) proxies how visible a group is to the institutions that may detect unauthorized stay. The parameter \(\beta\) (exposure elasticity) regulates the strength of this link.
In Poland \(n\) is the number of foreign nationals recorded by the police as suspects. Contact with law enforcement creates opportunities for detection regardless of criminality.
Detection is possible even when \(n = 0\): through border guards, hospital admissions, visa refusals or employer inspections. The parameter \(\gamma > 0\) accounts for these channels.
used \(\gamma = 0\) and constant \(\alpha\), \(\beta\), regrouping groups with zero counts into a ‘rest’ community. The composition of such a rest changes over time, so the offset is the more principled solution and lets all cells be used.
The parameters are estimated from the observed \(m\) in all cells jointly. The estimate for year \(t\) is the sum of fitted sizes, \(\hat\xi_t = \sum_i N_i^{\hat\alpha_i}\), over all communities.
Uncertainty is assessed with a cluster bootstrap that resamples whole countries of citizenship. The bootstrap median is the point estimate, being more robust to skewness than the mean.
What the model assumes
The fit of the model to the observed counts can be tested. The functional forms of \(\xi\) and \(\rho\) cannot be verified separately, so their choice needs a sound rationale.
Co-ethnic networks and sub-proportional scaling
Migration research shows that unauthorized migrants depend heavily on co-ethnic and kin-based networks (; ; ). Networks provide accommodation, information, informal employment and emotional support, often substituting for formal welfare and labour market institutions that unauthorized migrants cannot access (; ). The registered community is therefore the existence basis of the unauthorized population.
Why \(\alpha < 1\)? Migrant networks create self-reinforcing migration processes (), but these mechanisms are much weaker in large urban settings (). It is natural to expect \(\xi\) to increase with \(N\), but at a declining rate.
Detection does not depend on the size of the hidden population
The factorization \(\mu = \xi\,\rho\) requires that the detection rate does not respond to \(M\). This cannot be tested directly because \(M\) is unobserved. Staffing and enforcement data for Poland support it: legality-of-stay inspections fluctuated over 2019–2024 without an upward trend, police and Border Guard staffing remained broadly stable despite substantial growth of the foreign population, and employment legality inspections actually declined. Detection intensity is shaped by budget cycles, staffing constraints and pandemic disruptions rather than by the hidden population itself.
This must not be taken for granted. With fixed enforcement resources the detection rate may fall as the population grows (congestion effects), or rise because larger populations are more visible (concentration effects). Without additional data such situations cannot be distinguished from changes in \(M\) ().
Police records measure contact, not criminality
Foreign nationals appear in the police information system (KSIP) mainly as suspects in criminal proceedings prosecuted ex officio. Unauthorized stay is a petty offence handled by the Border Guard, and KSIP has no unauthorized-stay ground for registration and holds no information on legality of stay. The two sources therefore overlap only marginally. The ratio \(n/N\) measures how often a community is in contact with institutions, not how often it breaks the law.
Diagnostics in the data
On the log scale the model gives a simple diagnostic: \(\log(m/N)\) should decrease with \(\log N\), because \(\alpha - 1 < 0\), and increase with \(\log(n/N)\), because \(\beta > 0\). In the Polish data both slopes have the expected sign in every year and for both sexes. They indicate \(\alpha\) between 0.5 and 0.8, and \(\beta\) close to 0.8 up to 2023 and about 0.4 in 2024. The same patterns hold for the PESEL and tax registers and by continent.
Checking the assumptions on Polish data
Each point is a citizenship in a given year and for a given sex (cells with m > 0 only); point size grows with N. Lines are regression lines fitted separately by sex.
\(\log(m/N)\) against \(\log N\): expected slope \(\alpha - 1 < 0\)
\(\log(m/N)\) against \(\log(n/N)\): expected slope \(\beta > 0\)
Sources: Border Guard (m), Police (n), ZUS (N); non-Schengen nationals aged 18+. The right panel shows cells with n > 0 only. Hover over a point to see the country and counts.
Why the Poisson distribution and not the negative binomial
To estimate the mean structure it suffices to assume a Poisson distribution. The estimator is consistent even when the variance is not Poisson.
The parameters are estimated by Poisson pseudo maximum likelihood (PMLE). The Poisson distribution almost certainly misspecifies the variance of the detected counts, but consistency requires only a correct mean specification (). accommodated over-dispersion explicitly through a Poisson–Gamma mixture, which yields the negative binomial maximum likelihood estimator (NB-MLE).
Formal model-selection criteria tend to favour NB-MLE because it absorbs over-dispersion. In practice three arguments speak against it:
Offset–dispersion confounding
Cells with \(m > 0\) and \(n = 0\) can be explained either by \(\gamma\) or by the random effects of the negative binomial model. This confounding carries over to the estimated mean structure.
Small-count sensitivity
The ability to accommodate over-dispersion makes NB-MLE sensitive to cells with small \(m\), which leads to unstable population size estimates.
Robustness of PMLE
Poisson PMLE requires only a correct mean. NB-MLE is kept as a sensitivity analysis: what would the estimate look like if over-dispersion biased the PMLE?
The simulation study in the paper supports this choice. Poisson PMLE gives stable estimates across scenarios; even when data are generated from the negative binomial, interval coverage stays at 80–88%. The unconstrained NB-MLE overestimates \(\gamma\) by a factor of about 24 in 16% of replications from Poisson-generated data. The bias correction for the non-linear transformation \(\hat\xi = \sum_i N_i^{\hat\alpha_i}\) is small compared to the width of the intervals.
Confidence intervals for \(\alpha\) based on heteroskedasticity-consistent standard errors can be excessively wide in practice. The paper therefore uses the fractional weighted bootstrap (FWB; ) with clustering by country of citizenship and 999 replications. It accounts for within-country correlation across years and sexes, the non-linear transformation and the skewed distribution. Wide intervals are a well-documented feature of unauthorized population estimates (; ; ).
Three sources for Poland
People detected by the Border Guard (\(m\)), foreign nationals in police records (\(n\)) and those insured with ZUS (\(N\)), by citizenship, sex and year.
The Border Guard distinguishes three groups: refusals of entry at the border, detections during irregular border crossings, and detections for illegal stay within the country or at the border when leaving. The first two capture border-level encounters. The third concerns people already present in Poland, that is, the population \(M\). Within this group we exclude those detected at the border upon departure, as they are in the process of leaving the population, and use only those detected within the country. We count unique individuals.
People detected by the Border Guard as staying illegally, by place of detection
Half-years 2014–2024. Detections at the border refer to people leaving Poland.
Source: Polish Border Guard; own calculations. Only interior detections are used as \(m\) in the model.
Until 2020 detections at the Polish–Ukrainian border dominated, peaking above 10,000 in the second half of 2018. The COVID-19 pandemic brought a sharp drop across all categories. After 2022 detections at the Ukrainian border never regained their earlier level, as Ukrainians did not return to Ukraine during the war, while interior detections kept growing and became the largest category in 2023–2024.
The paper considers three registers as the reference population \(N\). PESEL records the assignment of an identifier, not actual residence; de-registration is rarely reported, so counts are the highest and do not fall despite outflows. The tax register is updated only annually. The choice is ZUS: the register is updated monthly, and registration by an employer is a strong signal of actual presence in Poland.
Adult non-Schengen nationals in three registers
As of 31 December, in thousands. The model uses the ZUS register as \(N\).
Sources: PESEL register, tax register, ZUS. After 2021 all registers show a sharp increase in non-Schengen nationals, mainly Ukrainians.
The auxiliary count \(n\) comes from the National Police Information System (KSIP): suspects and accused persons in offences prosecuted ex officio, aggregated by citizenship, year and sex. The supplementary materials refit the model with two alternative counts: police records restricted to people holding a PESEL number (registered residents, and thus least likely to be unauthorized) and prison records. In both cases the estimates stay within the intervals obtained with the full police count.
What the community anchor depends on
There is one formula, but \(\alpha\) may depend on year, sex, citizenship or continent. The paper compares eight specifications of \(\alpha\) given yearly \(\beta\) and a constant \(\gamma\).
Poisson PMLE · QAIC (lower is better)
S1: constant parameters
One \(\alpha\) and one \(\beta\) for all communities and years. A fully time-invariant specification and the reference point for the others.
\(\alpha\) and \(\beta\) can differ every year. The information criteria drop sharply: 2019–2024 brought the pandemic, the war in Ukraine and legal changes. In all further specifications \(\beta\) varies by year.
All counts in the data vary by sex, so sex enters the community anchor. The improvement is small because males dominate the data.
A separate time path of \(\alpha\) for Ukrainian nationals. The 2022 EU Temporary Protection Directive greatly expanded the lawful Ukrainian population \(N\) without a similar effect on detections \(m\). Without this interaction the community anchor would have to absorb the structural break as a declining trend affecting non-Ukrainians as well.
Instead of Ukraine alone, six post-Soviet countries with simplified access to the Polish labour market are singled out: Ukraine, Belarus, Moldova, Georgia, Armenia and Russia. This does clearly worse than Ukraine alone.
The community anchor depends on year and continent of origin. It improves on S2 but does not match singling out Ukraine.
Year, sex and Ukraine, but without a separate time path for Ukraine. The result is much worse than S4: what matters is precisely that the situation of Ukrainians changed differently over time.
Year × Ukraine and sex in the community anchor, yearly \(\beta\), constant \(\gamma\). Lowest AIC (11,176), BIC and QAIC. Adding sex or Ukrainian origin to \(\beta\) does not improve the criteria and introduces instability; letting \(\gamma\) vary gives estimates within the S8 intervals.
For NB-MLE the range of AIC across specifications is much narrower (5,176–5,329 versus 11,176–22,406). The criteria capture less information about the mean structure when the model absorbs over-dispersion through random effects.
For Poisson we compare QAIC: the log-likelihood divided by the dispersion \(\hat c = 9.0\) of S8 ().
A stable total, a changing composition
The reference population almost doubled, while the estimated unauthorized population remained broadly stable. Underneath, two opposite trends are at work.
Estimated number of unauthorized adult non-Schengen nationals, in thousands
Poisson PMLE, specification S8. Cluster bootstrap median; thick bar is the 80% interval, thin line the 95% interval.
| Year | Detected (m) | ZUS (N) | Poisson: median | 80% | 95% | NB-MLE: median |
|---|
All figures in thousands. Border Guard and police data are counts of persons within the year; registers are stocks at year-end.
The estimate is 94,000 in 2019 (80% interval: 36,000–206,000) and 101,000 in 2024 (46,000–177,000). Over the same period the ZUS reference population grew from 609,000 to 1.13 million, so the ratio of the estimate to it fell from 15.4% to 8.9%. This relative decline is robust to the considerable width of the intervals. Males constitute the majority of the unauthorized population: 72,000 versus 28,000 females in 2024.
Ukrainian and other nationals, in thousands
Median, 80% (thick) and 95% (thin) interval.
The estimate for Ukrainian nationals falls from about 60,000 to 11,000, even though their reference population grew from 476,000 to 771,000. This is consistent with the mass regularization under the Temporary Protection Directive. The estimate for other nationalities rises from 34,000 to 89,000, more than two and a half times, closely matching their reference population, which grew from 133,000 to 362,000.
Trajectories of the community anchor \(\hat\alpha\)
Bootstrap median, 80% and 95% bands. A lower \(\alpha\) means a smaller unauthorized population for the same reference population.
All estimated \(\alpha\) lie below unity without any constraint. For non-Ukrainians \(\alpha\) is stable at about 0.83–0.85. For Ukrainians it tracks a similar level until 2021 and then declines sharply to about 0.67 by 2024. The sex effect shifts the female trajectories down by a constant of about 0.03.
Sensitivity analyses
NB-MLE. The negative binomial estimator is unstable and occasionally gives implausibly high estimates: 295,000 in 2021 and 223,000 in 2024. Nothing in the data justifies these spikes; the number of detected people fell from 6,600 in 2019 to about 3,000 in 2021–2022 and returned to 6,700 in 2024. Apart from these two spikes, the NB-MLE medians lie within the 95% Poisson intervals.
Other registers and other \(n\). The diagnostic assumptions also hold for PESEL and the tax register, and estimates with alternative versions of \(n\) stay within the intervals of the main model.
An independent indicator. Following , the estimates are compared with administrative data not used in estimation: the number of refused temporary residence decisions from the Office for Foreigners.
| Year | Ukraine: estimate | Ukraine: refusals | Other: estimate | Other: refusals |
|---|
Refusals for Ukrainians drop sharply after 2021, from 25,400 to 2,300 in 2023, reflecting regularization under the Temporary Protection Directive. Refusals for other nationals rise from 12,300 in 2021 to 27,500 in 2024, consistent with the growing estimate for this group.
How to read the intervals
The bootstrap distribution is right-skewed, so the interval bounds indicate estimation uncertainty rather than equally plausible population sizes. The median is the most probable value. Users should pay attention to the range of plausible values rather than to a single number.
A method that transfers to other countries
Three aggregated counts that already exist in administrative systems are enough. No individual-level linkage and no new data collection are needed.
The model captures the 2022 structural break naturally, through the interaction of year with Ukrainian origin. The same solution applies to other large-scale regularization or protection programmes that selectively inflate the lawful reference population of specific communities.
Limitations
- Wide confidence intervals reflect the inherent uncertainty in estimating hidden populations.
- The model assumes a structural relationship between authorized and unauthorized populations that holds across many communities; without it the model is not identifiable. Abrupt policy changes may violate this assumption and require revising the model.
- The method estimates the stock at a given time, not gross flows. Year-to-year changes in the stock reflect the net balance of entries, exits, regularizations and removals.
- The restriction to non-Schengen nationals excludes EU citizens who may overstay or work without authorization.
The method has worked in very different settings, from Norway in 2006 to Poland in 2019–2024. It gives national statistical offices a way to add the uncounted component to migration statistics. The R package uncounted provides a complete implementation: estimation, inference, diagnostics and sensitivity analysis.
How the parameters change the result
One community, five sliders. See how the community anchor, exposure and offset translate into the theoretical population size and the expected number of detected people.
The starting \(\alpha\), \(\beta\) and \(\gamma\) correspond to the preferred model (S8) for non-Ukrainian nationals in 2023; \(N\) and exposure are illustrative. This illustrates a single community; the estimate in the paper sums hundreds of communities with different \(N\) and \(n\).