Jean-Marc B Atsebi
email: jatsebi@imf.org

Rasmane Ouedraogo
email: rouedraogo@imf.org

Regina S Seri

Simone Bertoli

Antonio David

Is Education Neglected in Natural Resources-Rich Countries? An Intergenerational Approach in Africa

Keywords: Africa, Educational Intergenerational Mobility, Mineral discoveries and productions, Generalized Difference-in-differences, Natural experiment JEL: C55, I21, I25, I26, N9, O10, O55, Q32

The literature on the effects of natural resources on education is mixed and inconclusive.

In this paper, we adopt an innovative approach by exploring the effects of mineral discoveries and productions on intergenerational educational mobility (IM), linking parents to the children education levels for more than 14 million individuals across 28 African countries and 2,890 districts. We find that mineral discoveries and productions positively affect educational IM for primary education in Africa for individuals exposed to the mineral sites and living in districts with discoveries. Specifically, the probability of upward primary IM increases by 2.7 percentage points (pp.) following mineral discoveries and 6.7 pp. following mineral productions. Downward primary IM decreases by 1.2 pp. following both mineral discoveries and productions. These positive effects are increasing for individuals born later after discoveries and productions, for males, and individuals living in the urban area. However, no significant effects are found for secondary and tertiary educational IM. Finally, we explore the income and returns to education channels through which mineral discoveries and productions affect educational IM.

Introduction

Pre-COVID-19, Africa emerged out of decades of stagnant and unstable economic growth since mid-1990s, with significant progress made on education and human capital. According to [START_REF] Young | The African growth miracle[END_REF], Sub-Saharan living standards have, for the past two decades, been growing about 3.4 to 3.7 percent per annum, reflecting the African "growth miracle". This "growth miracle" has been accompanied by significant improvements in education. Indeed, in Sub-Saharan Africa (SSA), gross enrollment in primary education almost doubled from 54 percent in 1970 to 99 percent in recent years. For secondary and tertiary education, it has been more than three and six times higher in recent years compared to 1970, from 13 to 43 percent and 1.4 to 9.4 percent, respectively WorldBank (2020). These improvements have been observed for both rural and urban areas as well as females and males. As a result, intergenerational mobility (IM) in education--which measures the levels of children education relative to their parents--has also significantly increased across African countries, above the level in Latin America. But it remains lower in the region compared to Western, Asian, and Eastern Europe countries [START_REF] Hertz | The inheritance of educational inequality: International comparisons and fifty-year trends[END_REF][START_REF] Azomahou | INTERGENERATIONAL MOBILITY IN EDUCATION: IS AFRICA DIFFERENT?[END_REF][START_REF] Henn | Africa's Latent Assets[END_REF]. As shown by [START_REF] Henn | Africa's Latent Assets[END_REF], actual and perceived social and educational intergenerational mobility constitute one of the three Africa's latent assets that will drive its economic prosperity and bright future.

Taking stock of this progress in education, we analyze the potential effects of mineral discoveries and productions on educational IM across 28 African countries and 2,890 districts. Few studies have investigated the determinants of educational intergenerational mobility in Africa.

They found that individuals and local characteristics (e.g., gender, race, urbanization, etc.), access to markets, quality of education, globalization, and investments in physical and human capital affect educational mobility [START_REF] Alesina | Intergenerational mobility in Africa[END_REF][START_REF] Azomahou | INTERGENERATIONAL MOBILITY IN EDUCATION: IS AFRICA DIFFERENT?[END_REF][START_REF] Baah | Intergenerational Education Mobility and Globalization: Evidence from Ghana[END_REF][START_REF] Nimubona | Intergenerational education mobility of black and white South Africans[END_REF]. To the best of our knowledge, only [START_REF] Alesina | Intergenerational mobility in Africa[END_REF] discussed the effects of natural resources on educational IM. They show a weak association between oil, gas, and diamond discoveries and educational IM. They explain this weak association by opposing mechanisms as natural resources might be a curse, and they may also represent a wealth spurring human capital accumulation and structural transformation.

Still, their analysis of the effects of natural resources on educational IM is very limited and discussed in a short paragraph as this is not their focus.

In this paper, we fill this gap in the existing and inconclusive literature. Mineral discoveries are generally known as being a curse or sources of difficulties and fragility for most African countries as illustrated by the resource curse literature. The growth in the mining sector does not necessary shift an economy towards better industry processing, services, i.e., structural transformation, education, health, job creation, and inclusive growth and development. In contrast, they might have some positive effects, especially on educational IM. Mining activities may create new opportunities that will increase households' income [START_REF] Becker | An equilibrium theory of the distribution of income and intergenerational mobility[END_REF][START_REF] Weber-Fahr | Treasure Or Trouble?: Mining in Developing Countries[END_REF][START_REF] Loayza | Poverty, inequality, and the local natural resource curse[END_REF], enabling them to invest more in children education.

They may also favor a structural transformation in the districts with natural resources [START_REF] Cavalcanti | Winning the oil lottery: The impact of natural resource extraction on growth[END_REF], and therefore an increase of the returns to education, i.e., income or wealth induce by education [START_REF] Torche | Intergenerational mobility and inequality: The Latin American case[END_REF][START_REF] Bütikofer | Breaking the links: Natural resource booms and intergenerational mobility[END_REF]. Finally, they may also support the provision of infrastructures (in education in particular) financed by the revenues from the resources [START_REF] Witter | Choices for spending government revenue: New African oil, gas, and mining economies[END_REF]. This analysis is particularly relevant as the African continent is home to an abundance of mineral resources. 1 It hosts 30 percent of the world's mineral reserves, 40 percent of the world's gold and up to 90 percent of some minerals like chromium and platinum. 2 According to Minex Consulting database (2019), 3 969 normal to super-giant mineral discoveries occurred in Africa between 1950 and 2019, and 396 of them (40 percent) since 2000. Moreover, the exploitation of mineral resources makes a significant contribution to the development of African economy. According to the IMF, the mining sector accounted for 8.8 percent of GDP and 51.2 percent of total exports in Sub-Saharan countries over the period 2009-19. There is a vast and inconclusive literature on the effects of natural resources. At the macro level, most papers found that natural resources have been a curse than a blessing, as well illustrated by the resource curse literature (e.g., [START_REF] Corden | Booming sector and de-industrialisation in a small open economy[END_REF]Sachs andWarner, 1995, 2001;[START_REF] Kretzmann | Oil Change International[END_REF]. 4 Others studies have found positive effects on foreign direct investments in non-resource sectors [START_REF] Toews | Resource discoveries and FDI bonanzas: An illustration from Mozambique[END_REF], or ambiguous effects on macroeconomic activity and financial conditions (Arezki et al., 2017a;[START_REF] Seri | How giant discoveries of natural resources impact sovereign debt ratings in developing and emerging countries?[END_REF].

At the local level, a positive effect of natural resources has emerged in recent analyses focusing on African countries or other developing countries (e.g., [START_REF] Fisher | The ladder that sends us to wealth": Artisanal mining and poverty reduction in Tanzania[END_REF][START_REF] Cust | Natural Resource Discoveries, Citizen Expectations and Household Decisions[END_REF][START_REF] Bhattacharyya | Natural Resources and Conflict in Africa: What Do the Data Show?[END_REF]. Specifically, the literature of the effects of natural resources on education is also inconclusive. Some papers found that natural resources exert a decrease in education level in developing countries [START_REF] Leamer | Does natural resource abundance increase Latin American income inequality?[END_REF][START_REF] Gylfason | Natural resources, education, and economic development[END_REF][START_REF] Ahlerup | Gold mining and education: a long-run resource curse in Africa?[END_REF], while others have revealed that natural resources are positively associated with human capital accumulation, notably through the increase of public spending in education [START_REF] Kim | Human capital and natural resource dependence[END_REF][START_REF] Pegg | Is there a Dutch disease in Botswana?[END_REF][START_REF] Stijns | Natural resource abundance and human capital accumulation[END_REF]. Other studies underscore that the effects depend on the quantity or the quality of education, the levels of education or the characteristics of individuals (e.g., [START_REF] Farzanegan | Does oil rents dependency reduce the quality of education?[END_REF][START_REF] Gradstein | We Don&Apos; T Need No Education: The Effect of Natural Resource Income Shocks on Human Capital[END_REF].

Our paper complements these studies by exploring the effects of mineral discoveries and productions on educational IM. We use a large dataset of more than 14 million individuals from 28 African countries, 2,890 districts. To do so, we rely on two main sources: i) the Integrated Public Use Microdata Series (IPUMS), and ii) the Minex Consulting datasets. We first start by providing a panorama of the trends, dynamics, and disparities of educational IM across countries, regions of the continent, and the characteristics of the individuals, using the conditional absolute measure of IM as in [START_REF] Alesina | Intergenerational mobility in Africa[END_REF]. Second, we empirically study the effects of mineral discoveries and productions on primary and secondary/tertiary educational IM by employing a generalized difference-in-differences method in a quasi-natural experiment. Our quasi-natural experiment on the plausible exogeneity of mineral discoveries that revert specific characteristics, specifically the unpredicted time of discoveries, the unpredicted geographical location, and the lag between the natural resources discoveries and beginning of production [START_REF] Horn | Giant oil and gas fields of the world[END_REF][START_REF] Khan | From Commodity Discovery to Production[END_REF]Arezki et al., 2017a;[START_REF] Cavalcanti | Winning the oil lottery: The impact of natural resource extraction on growth[END_REF]. Third, we explore the channels through which mineral resources discoveries and productions may affect educational IM such as job creation, and the returns to education. 5 We find that mineral discoveries and productions positively affect educational IM for primary education in Africa. Indeed, the probability of upward primary educational IM, i.e. the probability for a child born from uneducated parents or parents with less than primary education attainment to achieve at least primary education, increases by 2.7 pp. following mineral 5 To further reinforce the returns to education channel, we also test whether mineral discoveries and productions affect the reallocation of individuals across the broad sectors, i.e., agriculture, manufacturing, and services, with population exposed to the mineral discoveries and productions more like to work in the manufacturing and services sectors. We also test a third channel of the provision of infrastructures but decide not to present them as we use an (imperfect) proxy--access to electricity and clean water--for the provisions of public goods. The results can be obtained upon request. discoveries and 6.7 pp. following mineral productions. The probability of downward primary educational IM, i.e. the probability for a child born from parents with at least primary education attainment to be uneducated or have less than primary education attainment, decreases by 1.2 pp. following both mineral discoveries and productions. About the size of the effects, it is relatively small when compared to the increase of educational IM across the different cohorts, signaling that, other factors have also played a significant role in improving IM in Africa.

To put our findings into perspective and extrapolate them to Africa, we show that the number of individuals born up to 15 years after mineral discoveries and who have completed at least primary education while their parents have not, increases by 662 thousand in Africa over the period 1950-2000. This figure stands at 581 thousand for individuals born up to 15 years after mineral productions. Similarly, the number of individuals born up to 15 years after mineral discoveries and who have not completed at least primary education while their parents have completed it, decreases by 371 thousand. This figure stands at 124 thousand for individuals born up to 15 years after mineral productions. These figures would have been even higher to millions of individuals if we would have considered all the individuals born after the discoveries and productions, and not only those born up to 15 years after the event. However, our results

show that the effects of mineral resource discoveries and productions on the probability of upward and downward secondary and tertiary educational IM are not statistically significant.

Moreover, we also explore the dynamic effects of mineral discoveries and productions on educational IM, i.e. whether the effects vary with the distance between individuals' birth years and the year of mineral discoveries and productions, and test the assumption of parallel trend of the GDID model by estimating a leads and lags model following [START_REF] Angrist | Instrumental variables in action: sometimes you get what you need[END_REF] and [START_REF] Maurer | Oil discoveries and education provision in the Postbellum South[END_REF]. Our results show that mining activities positively affect primary educational IM for all age groups, but the effects are non-significant for secondary/tertiary educational IM, confirming our baseline findings. Interestingly, we find that the positive effects of mineral activities on educational IM are increasing for individuals born later after the discovery and beginning of mining production, while being non-significant or low for individuals born before the discovery or production, also confirming that the parallel trend assumption is verified. Our baseline results are robust to several robustness checks. We also analyze the sensitivity of our findings across African regions, size of mineral discoveries, gender, and urban-rural living area.

Overall, our findings show that the effects of mining activities are different by African regions and size of the discoveries. Also, the positive effects are higher for males than females (only for primary education), and individuals living in urban than rural areas (both for primary and secondary/tertiary education). Furthermore, we discuss two transmission channels through which the positive effects of mineral discoveries and productions on educational primary IM operate, including the income effect proxied by parents working in the mining sector, and the returns to education. First, our results show that the mining sector creates new job and income opportunities for parents, allowing them to invest more in their child's education attainment [START_REF] Becker | An equilibrium theory of the distribution of income and intergenerational mobility[END_REF].

Second, we uncover that the economic dynamism and creation of new jobs following the discoveries of mineral resources lead to an increase in the demand for skilled workers and thereby boosting the returns to education [START_REF] Torche | Intergenerational mobility and inequality: The Latin American case[END_REF].

Our paper unveils the potential impact of mineral discoveries and productions on educational IM in Africa. It shows that, on average, mineral discoveries and productions have led to an improvements of primary education and intergenerational mobility at local levels. It adds to the existing knowledge of the effects of natural resources in general, and on education in particular, and identifies some potential channels through which they impact educational IM. Our paper has many policy implications. We discussed them in the concluding section. In short, this paper calls for a better management of the resources by the government and companies. Adequate policies should be put in place to extract the benefits of the resources, including policies aiming at creating jobs and facilitating entreprise development, and ensuring equitable access to the benefits of the resources by all people independently of gender and location.

The rest of the paper is organized as follows. Section 2 reviews the literature and places this study among the existing papers. Section 3 discusses the data, explains the construction of the educational IM, and presents some stylized facts on educational IM in Africa by decade, gender, at district and country level. Section 4 provides stylized facts on both educational IM and mineral discoveries and productions. Section 5 describes the methodology. Section 6 presents our main findings. Section 7 explains the transmission channels. Section 8 and Section 9 discuss the robustness checks and the sensitivity of our findings, respectively. Section 10 concludes and discusses potential policy implications.

Review of literature

Our paper closely relates to three strands of the literature, notably the general effects of natural resources, the relationship between natural resources and education, and the literature on the determinants of intergenerational mobility.

General effects of natural resources

At the macroeconomic level, most papers in this literature show that natural resources have been a curse than a blessing, as well illustrated by the resource curse literature. They found that natural resources are generally associated with the deterioration of economic and institutional conditions, the occurrence of conflicts, an appreciation of real exchange rate, which induces a loss of competitiveness and de-industrialization of the economy, as well as with weak fiscal policy stance and unsustainable debt accumulation (e.g., [START_REF] Corden | Booming sector and de-industrialisation in a small open economy[END_REF]Sachs andWarner, 1995, 2001;[START_REF] Kretzmann | Oil Change International[END_REF][START_REF] Collier | Resource rents, governance, and conflict[END_REF][START_REF] Ross | What do we know about natural resources and civil war?[END_REF][START_REF] Ross | A Closer Look at Oil, Diamonds, and Civil War[END_REF][START_REF] Van Der Ploeg | Natural resources: Curse or blessing?[END_REF][START_REF] Keen | Greed and grievance in civil war[END_REF][START_REF] Van Der Ploeg | The Impact of Natural Resources: Survey of Recent Quantitative Evidence[END_REF]. However, the macroeconomic effects of natural resource discoveries of oil, gas, and minerals on economic activity seem to be mixed. While some papers find negative impacts of giant discoveries on fiscal policy, debt, conflict, poverty, and inequality [START_REF] Kretzmann | Oil Change International[END_REF][START_REF] Harding | Boom Goes the Price: Giant Resource Discoveries and Real Exchange Rate Appreciation[END_REF][START_REF] Lei | Do giant oilfield discoveries fuel internal armed conflicts?[END_REF][START_REF] Tsui | More Oil, Less Democracy: Evidence from Worldwide Crude Oil Discoveries[END_REF][START_REF] Smith | Left in the dark? Oil and rural poverty[END_REF], others show positive effects on foreign direct investments in non-resource sectors [START_REF] Toews | Resource discoveries and FDI bonanzas: An illustration from Mozambique[END_REF], or ambiguous effects on macroeconomic activity and financial conditions (Arezki et al., 2017b;[START_REF] Seri | How giant discoveries of natural resources impact sovereign debt ratings in developing and emerging countries?[END_REF].

At the local level, a positive effect of natural resources has emerged in more recent analysis focusing on African countries or other developing countries. They show that natural resources are associated with a reduction of inequality, poverty, and an increase of living standards, income, and welfare. In fact, [START_REF] Goderis | Natural resource booms and inequality: theory and evidence[END_REF] find that resource exploitation booms reduce income inequality in resource-rich countries, while [START_REF] Fisher | The ladder that sends us to wealth": Artisanal mining and poverty reduction in Tanzania[END_REF] show an evidence of the reduction of poverty in the mineworkers' population in Tanzanian artisanal mines of gold and diamond. [START_REF] Zabsonré | Gold exploitation and socioeconomic outcomes: The case of Burkina Faso[END_REF] reveal for Burkina Faso that gold exploitation led to better living standards, an increase in per capita household expenditures, and a reduction of poverty in the mining areas. [START_REF] Marlet | The Mining Industry in Sub-Saharan Africa: Impacts on Employment, Migration and Remittances[END_REF], using mining exploitation in Ghana, finds that mining activities tend to increase migration flows up to 200 km from the treated district by reducing migration costs through the construction of roads and infrastructures. Moreover, they also induce an increase of income and improvement of welfare by 1.3 percent. In contrast, some papers find that mining activities can create some environmental issues by increasing pollution and metal toxicity (e.g., von der Goltz and Barnwal, 2019;[START_REF] Hausermann | Land-grabbing, land-use transformation and social differentiation: Deconstructing "small-scale" in Ghana's recent gold rush[END_REF].

The literature also supports the benefits and positive role of natural resources discoveries on local economic development, governance and conflicts, provisions of public goods and welfare. [START_REF] Cavalcanti | Winning the oil lottery: The impact of natural resource extraction on growth[END_REF] find evidence of a positive impact of oil and gas discoveries on local development and urbanization in Brazil. [START_REF] Cust | Natural Resource Discoveries, Citizen Expectations and Household Decisions[END_REF] reveal that oil, gas, and mineral discoveries positively impact the citizen's expectations, which is materialized by a decrease in outward migration and an increase in fertility in the short term. [START_REF] Bhattacharyya | Natural Resources and Conflict in Africa: What Do the Data Show?[END_REF] show that oil and mineral discoveries reduce the likelihood of conflict in 48 African countries, which is mainly driven by an improvement of economic development and efficient political distribution patronage in districts with discoveries.

Natural resources and education

The literature on the effects of natural resources on education is also inconclusive, but it identifies channels through which natural resources may affect education. While some papers find that natural resources favor a decrease in education levels in developing countries, others rather point out to a positive effect. On the negative effects, [START_REF] Leamer | Does natural resource abundance increase Latin American income inequality?[END_REF] find that the abundance of natural resources entails a delay of industrialization, and it lowers education levels in Latin American resource-rich countries as workers do not need high skills to work in the natural resources sector. [START_REF] Gylfason | Natural resources, education, and economic development[END_REF], [START_REF] Cockx | Natural resources: a curse on education spending?[END_REF] and [START_REF] Ahlerup | Gold mining and education: a long-run resource curse in Africa?[END_REF] show that natural resources crowd out investments in education in resource-rich countries, decrease public education expenditures relative to GDP, and reduce educational attainment, respectively. On the positive effects, some papers find that natural resources abundance is positively associated with human capital accumulation, notably through the increase of public spending in education (see, e.g., [START_REF] Stijns | Natural resource abundance and human capital accumulation[END_REF][START_REF] Kim | Human capital and natural resource dependence[END_REF] and [START_REF] Pegg | Is there a Dutch disease in Botswana?[END_REF]. A possible channel is that the mining activity may create new opportunities that will increase households' income [START_REF] Becker | An equilibrium theory of the distribution of income and intergenerational mobility[END_REF][START_REF] Weber-Fahr | Treasure Or Trouble?: Mining in Developing Countries[END_REF][START_REF] Loayza | Poverty, inequality, and the local natural resource curse[END_REF], enabling them to invest more in children education. It may also favor a structural transformation in the district with natural resources [START_REF] Cavalcanti | Winning the oil lottery: The impact of natural resource extraction on growth[END_REF], and therefore an increase of the returns to education, i.e., income or wealth induce by education [START_REF] Torche | Intergenerational mobility and inequality: The Latin American case[END_REF][START_REF] Bütikofer | Breaking the links: Natural resource booms and intergenerational mobility[END_REF].

Finally, it may also support the provision of infrastructures (in education in particular) financed by the revenues from natural resources [START_REF] Witter | Choices for spending government revenue: New African oil, gas, and mining economies[END_REF]. We test these channels for the effects of mineral discoveries and productions on educational IM.

Other studies find that the effects of natural resources on education may diverge depending on whether the focus is the quantity or the quality of education, the levels of education, and characteristics of individuals (age, gender). In fact, [START_REF] Farzanegan | Does oil rents dependency reduce the quality of education?[END_REF] show a positive effect of oil rents on the quantity of education measured by government spending in primary and secondary education, particularly in countries with sound quality of institutions.

In contrast, they find a negative effect of oil rents on the quality of education, defined as "an increase in cognitive skills obtained from an additional year of schooling". This negative effect is driven by the low demand and supply for high-quality education. On the demand side, the phenomenon of resource curse in those countries, by leading to an increase in the size of the non-tradable sector, requires less skilled workers with lower level of human capital. On the supply side, the lower incentive to attract local qualified teachers and the lack of longterm opportunities for foreign or migrant teachers reduce the quality of education. Moreover, [START_REF] Gradstein | We Don&Apos; T Need No Education: The Effect of Natural Resource Income Shocks on Human Capital[END_REF], using IPUMS data on 18 African countries, find that oil price booms occurring in early childhood (ages 0-4) enhance educational attainment and other derived outcomes, but reduce them when occurring in the adolescence (ages 10-14), especially for girls.

Intergenerational mobility in education and its determinants

Very few papers exclusively focus on educational IM in Africa. Focusing on South Africa, [START_REF] Nimubona | Intergenerational education mobility of black and white South Africans[END_REF] show that educational IM is higher for white than black people. They find that access to credit market and quality of schools are the main determinants of lower educational IM for black people. [START_REF] Baah | Intergenerational Education Mobility and Globalization: Evidence from Ghana[END_REF] reveal that economic and educational IM in Ghana is one of the lowest in the world. In addition, they find that globalization enhances IM, thereby recommending policies aiming at expanding globalization.

Moreover, they find that FDI and expansionary fiscal policy improve IM while unemployment has an exactly opposite effect on it. Other papers have conducted cross-country analysis based on several African countries. [START_REF] Alesina | Intergenerational mobility in Africa[END_REF] employ measures of absolute mobility to estimate educational intergenerational mobility since independence using census data on 27 African countries. After maping IM cross-country and within country variation, they find that colonial investments in the transportation network and missionary activities were associated with higher upward mobility. Intergenerational mobility was also higher in regions close to the coast and national capitals as well as in rugged areas without malaria. Upward mobility is higher and downward mobility is lower in regions that were more developed at independence, with higher urbanization and employment in services and manufacturing. Finally, they also reveal that early exposure of children to regions with higher (lower) upward IM significantly improve (decrease) the likelihood of completing primary schooling. In addition, [START_REF] Azomahou | INTERGENERATIONAL MOBILITY IN EDUCATION: IS AFRICA DIFFERENT?[END_REF] analyze the educational IM across 9 Sub-Saharan African countries over 50 years, using two measures of intergenerational educational persistence. They reveal that educational intergenerational persistence has reduced among the birth cohorts in all countries, particularly after the 1960s due to huge investments in human capital following independence and drastic changes in the educational systems. Even in the light of declining educational intergenerational persistence in the region, countries such as Ghana, Guinea, Nigeria, and Uganda experienced higher intergenerational mobility while Comoros and Madagascar had the lowest. Also, intergenerational persistence in education was found to be stronger from mothers to their children, and daughters' education is more correlated with their parents' education than that of sons.

More generally, the trends and drivers of intergenerational mobility or persistence in education have been studied in the literature (see e.g., Corak, 2013;[START_REF] Chetty | Where is the land of opportunity? The geography of intergenerational mobility in the United States[END_REF][START_REF] Howell | Neighbourhood effects in cross-Atlantic perspective: A longitudinal analysis of impacts on intergenerational mobility in the USA and Germany[END_REF][START_REF] Engzell | Heritability of education rises with intergenerational mobility[END_REF]. Overall, the intergenerational mobility in education has increased over time, but some heterogeneities and disparities across regions remain. [START_REF] Hertz | The inheritance of educational inequality: International comparisons and fifty-year trends[END_REF] analyze trends in the intergenerational persistence of education over 50 years in 42 countries, including 19 developing countries and 3 SSA countries. 6 They find that the educational IM has improved in almost all regions of the world. 7 The western developed countries have higher educational IM than in any region of the world, especially for the Nordic countries. They are followed by the Eastern bloc countries and Asian countries. However, educational IM is lower in Latin American countries and African countries. Interestingly, [START_REF] Henn | Africa's Latent Assets[END_REF], using the 2015 World Bank Intergenerational Database, find that educational IM is higher in Africa than in South Asia, MENA, and Latin American countries, with countries like Botswana, Kenya, Mauritania, and Cape Verde displaying approximately the same educational IM as high-income countries. 8

Data sources and construction of the IM index

Our data mainly come from two sources. We use data on education and individual characteristics from Integrated Public Use Microdata Series (IPUMS) and data on mineral discoveries 6 A higher intergenerational persistence implies lower intergenerational mobility, and inversely. 7 They also show that the regression coefficient representing the transmission of educational attainment from parent to child has decreased over the past 50 years, reflecting an improvement of mobility over time, while the IM's correlation coefficient has not changed.

8 See other papers on developed countries [START_REF] Black | Recent developments in intergenerational mobility[END_REF][START_REF] Corak | Do poor children become poor adults? Lessons from a cross-country comparison of generational earnings mobility[END_REF]Corak, , 2013;;[START_REF] Chetty | Where is the land of opportunity? The geography of intergenerational mobility in the United States[END_REF]) and developing countries [START_REF] Azam | Like father, like son? Intergenerational educational mobility in India[END_REF][START_REF] Daude | On intergenerational (im) mobility in Latin America[END_REF][START_REF] Neidhöfer | Educational inequality and intergenerational mobility in Latin America: A new database[END_REF] for further discussions on the dynamics, disparities across countries and regions, and determinants of educational IM. and production from Minex Consulting Dataset (2019).9

Data sources

IPUMS data

The Integrated Public Use Microdata Series (IPUMS) database covers 82 national censuses surveys from 28 African countries: Benin, Botswana, Burkina Faso, Cameroon, Egypt, Ethiopia, Ghana, Guinea, Kenya, Lesotho, Liberia, Malawi, Mali, Mauritius, Morocco, Mozambique, Nigeria, Rwanda, Senegal, Sierra Leone, South Africa, South Sudan, Sudan, Tanzania, Togo, Uganda, Zambia, and Zimbabwe.10 It contains information on more than 130 million of individuals, including on their demographic characteristics, occupation, household members, the relationship between household members, and place of residence. Regarding education, IPUMS reports data on the total years of schooling and whether the individuals completed primary, secondary, tertiary education levels. For this study, we follow [START_REF] Alesina | Intergenerational mobility in Africa[END_REF] and use the educational attainment for both parents and children instead of the years of schooling given their higher coverage. Our sample is based on the availability of information on district level and residency, education and individuals characteristics (gender, age) as well as whether individuals co-reside with their biological/step parents or immediate older generation. We have harmonized the boundaries of districts following [START_REF] Alesina | Intergenerational mobility in Africa[END_REF] to deal with administrative boundaries changes. 11 We focus on the individuals aged between 16 and 50, and born between 1950 and 2000. 12 The final sample covers more than 14 million individuals across 2,890 districts. Table A .20 and Table A.21 describe the data for each census and country.

Mineral discoveries data

Our data on mineral discoveries and productions in Africa come from Minex Consulting Dataset (2019). This dataset provides geolocalized information on discoveries, their size (moderate, major, giant, super-giant), the status of the mine (closed, feasibility study, operating, underdeveloped), and the type of minerals. 13 After merging this dataset with the IPUMS data, we identify 331 districts out of the total of 2890 in which mineral sites were discovered or entered in production. Figure C.11 displays the evolution of the number of discoveries over time in all African countries. 969 mineral discoveries occurred in Africa between 1950Africa between and 2019Africa between , of which 573 (60 percent) between 1950Africa between and 2000. . This study covers 406 mineral discoveries in 28 African countries over the period 1950-2000 (i.e., 71 percent of the 573 mineral discoveries).

We therefore cover a large share of mineral discoveries in Africa.

Figure 1 maps the location of these discoveries across Africa by the size of mineral discoveries. We observe that mineral discoveries have been concentrated in Southern Africa (48.3 percent) and Western and Central Africa (34.2 percent). A relatively few discoveries occurred in Eastern Africa (11.9 percent) and Northern Africa (5.7 percent). Looking at the sizes of mineral discoveries, they have been mostly moderate (45.3 percent), followed by major (29.8 percent), giant (21.7 percent) and super-giant giant (3.2 percent). Moderate and major discoveries were mainly found in Western and Central Africa while giant and super-giant were located in Southern Africa. The minerals discovered were mostly gold (34 percent), bulk metals (18.4 percent), precious minerals (15.8 percent), and base metals (15 percent). Table C.23 and Table C.24 present some statistics on the mineral discoveries by regions, size, and types. 13 According to [START_REF] Bhattacharyya | Natural Resources and Conflict in Africa: What Do the Data Show?[END_REF], mineral discoveries are defined as giant if they generate an amount of at least US$500 million of revenue per annum for 20 years or more. They are qualified as major if they generate an annual revenue stream superior or equal to US$50 million over a shorter lifetime than in the case of giant discoveries.

Construction of the educational IM

In this paper, we use absolute educational IM measures as in [START_REF] Alesina | Intergenerational mobility in Africa[END_REF]. 14 We define both an upward and downward educational IM for the primary and secondary/tertiary education levels. First, upward primary educational IM is defined as the probability for a child born from uneducated parents or parents with less than primary education attainment to achieve at least primary education. Downward primary educational IM is defined as the probability for a child born from parents with at least primary education attainment to be uneducated or have less than primary education attainment. Second, upward secondary/tertiary educational IM is defined as the probability for a child born from parents with at most primary education background to at least secondary education. Downward secondary/tertiary educational IM is defined as the probability for a child born from parents with at least secondary education background to achieve primary education or be uneducated. 15 To identify the old generation benchmark for each child, we use the average of education attainment for their biological/step parents, rounded to the nearest integer. In the robustness section, we use the minimum or maximum of the education levels of the biological/step parents as benchmark. We also consider the immediate older generation and broaden the definition of parental authority to include uncles/aunts (in law), parents-in-law, grand-parents, and grand-uncles/aunts in the reference group, to take into account fostered, abandoned, or orphan children.

Practically, first, for each individual (parents and children), we compute two educational attainment variables P jith and S T jith measuring the primary and secondary/tertiary educational attainment, respectively. P jith takes that value of one if the individual j born in district i and year h, and surveyed in year t has completed at least the primary education, and zero otherwise. Similarly, S T jith takes that value of one if the individual j born in district i and year h, and surveyed in year t has completed at least the secondary education. Second, for each child j, we computed two averaged measures of parents' educational attainment, PP jith and PS T jith as the average of P jith and S T jith rounded to the nearest integer, respectively, for the two biological/step-parents if both cohabit with the child, or if only the father/step-father or mother/step-mother if the child lives with only one of its parents. Third, we compare the educational attainment of each child j cohabiting with at least one parent to the average educational attainment of the parents and obtain our absolute measures of educational as follows: 16 i) Upward primary IM:

I MUP jith =          1 if P jith = 1 and PP jith = 0 0 if P jith = 0 and PP jith = 0 ii) Downward primary IM: I MDP jith =          1 if P jith = 0 and PP jith = 1 0 if P jith = 1 and PP jith = 1 iii) Upward secondary/tertiary IM: I MUS T jith =         
1 if S T jith = 1 and PS T jith = 0 0 if S T jith = 0 and PS T jith = 0 15 Our analysis does not cover the tertiary education exclusively given the few numbers of observations for the tertiary level.

16 By replacing biological/step parents in the last sentences with immediate older generation, we obtain our alternative measures of absolute educational IM including other relatives on top of the biological/step parents. We will use these alternative definitions of IM in the robustness section. iv) Downward secondary/tertiary IM:

I MUS T jith =         
1 if S T jith = 0 and PS T jith = 1 0 if S T jith = 1 and PS T jith = 1

Cohabitation-selection issues

Our analysis might be subject to cohabitation-selection issues, as our sample includes both youth children and adults, and individuals' educational attainment is also determined by their cohabitation with their parents or not.17 For adults, the cohabitation-selection issues are more severe as the intensity of self-selection is increasing with age. Moreover, it is more accentuated for adults' women, especially for those who got married at younger age, as some African countries are patrilocal [START_REF] Heckert | Structural Transformation and Gendered Transitions to Adulthood among Rural Youth: Cross-National Evidence from Low-and Middle-Income Countries[END_REF]. Since our focus is also on secondary education, our sample must include adults at age where secondary education is mostly completed despite the likelihood of co-residing with parents at this age being low (see Figure 2). Interestingly, we show in Figure 2 that the cohabitation selection is independent from the discoveries of natural resources. Both districts with and without discoveries exhibit the same patterns of cohabitation by age and gender, therefore the cohabitation selection issues might have limited impact on our analysis. 18 If the cohabitation rate was higher in districts with discoveries than districts without discoveries, it would have caused our estimates of the effects of discoveries on upward (downward) IM to be upward (downward) bias. Indeed, as we expect discoveries to have a positive effect on educational IM and given that individuals living with their parents are likely to have higher educational attainments, then, higher cohabitation rates in districts with discoveries than without discoveries would have resulted in higher positive estimates of the effects of discoveries on educational IM.

We further investigate the potential bias of the cohabitation selection. We do so in Table 1 by computing the differences in educational attainment for both individuals co-residing with biological/step parents (selected individuals) and those that do not, both in districts with and without discoveries, separately. We test the significance of the differences through a Khi-2 test.

We show that the unconditional likelihood of not completing primary education is higher for individuals not co-residing with their biological/step parents than those who do. This difference is more accentuated in districts without discoveries than districts with discoveries. Similarly, Source: Authors' calculations based on IPUMS dataset the likelihood of completing primary and secondary education is higher for those living with their biological/step parents than those who do not, also more pronounced in districts without discoveries. These differences are significant as indicated by the Khi-2 tests. As a result, if we were to consider individuals not co-residing with parents in our study, the level of educational attainment would have been on average lower in districts without discoveries than districts with discoveries. Thus, if the cohabitation selection creates any biases, our estimates of the effects of discoveries on upward (downward) IM would be downward (upward) bias. Therefore, as we expect discoveries to have a positive effect on IM (i.e., increase upward IM and decrease downward IM), these effects should be considered as a lower bound.

Stylized facts on educational IM in Africa

In this section, we briefly describe the trends of educational IM in Africa as well as their disparities across countries, gender, and residency. To do so, we calculate conditional educational IM, netting country/districts, cohort and census effects. Specifically, we regress educational IM indices on country or district fixed effects α i , cohort fixed effects γ t , and census-year fixed effects δ t . The model is as follows:

I M jit = α i + γ t + δ t + ε jit (1)
Country or district fixed effects α i reflect the conditional likelihood of each type of educational IM at the country or district levels, netting the cohort and census effects. Cohort fixed effects γ t reflect the conditional likelihood of each type of educational IM, netting the country/district and census effects. We do so to better compare the educational IM across individuals, cohorts, districts, and over time, especially by purging the differences between countries/districts, cohorts, and census-year specific effects. In addition, we estimate conditional educational IM by country and gender, country and individuals' residency (urban and rural), by cohort and gender, cohort and residency, and cohort and discovery dummy by introducing country and gender fixed effects, country and residency fixed effects, cohort and gender fixed effects, cohort and residency fixed effects, and cohort and discovery fixed effects, respectively.19

Trends of IM by decade

Overall, we observe that primary and secondary/tertiary educational IM have significantly improved in Africa over time, independently of gender and residency (urban/rural areas). The average trends of primary and secondary/tertiary educational IM are displayed in Figure 3 for both upward and downward mobility, respectively, and for five cohorts between 1950 and 2000.

We show that upward primary IM has steadily increased across cohorts, from 35.1 percent for the 1950s cohort to 57.7 percent for the 1990s cohort. Similarly, downward primary IM has steadily decreased, but at a slower pace, from 29.8 to 23 percent between the 1950s and 1990s cohorts, respectively. Moreover, secondary and tertiary educational IM have experienced similar trends. Upward secondary and tertiary educational IM has steadily increased from 10.8 to 32.9 percent, while downward secondary and tertiary educational IM has steadily decreased from 45.1 to 35.8 percent between the 1950s and 1990s cohorts, respectively. In contrast to primary education level, downward IM has always been elevated than upward IM for secondary and tertiary levels, but the gap has closed over time. Finally, upward (downward) educational IM has been higher (lower) at primary level than secondary and tertiary level. We next look at these trends by gender in Figure 4. In general, both males and females have had an increase in the probability of upward educational IM and a decline of the probability of downward educational IM for both primary and secondary/tertiary levels. We also observe that the gender gap in favor of males has narrowed over time, for instance, with the probability of upward (downward) secondary/tertiary educational IM for females being higher (lower) than that of males in the last decades. Finally, we explore the trends by residency as presented in Figure 5. We find that the general trends are also confirmed for both individuals living in urban and rural areas. More specifically, we show that educational IM has always been higher in urban areas than in rural areas. Although the residency gap has diminished over time, it has remained significant across cohorts. We display in Figure 6, the country-level educational IM. It shows that educational IM is uneven across countries, and that upward and downward IM are negatively correlated, i.e., countries with the highest upward IM tend to have the lowest downward IM, and inversely.

These findings hold for both primary and secondary/tertiary education levels. Upward primary IM ranges between 13 percent in South Sudan and 98 percent in Mauritius, and downward primary IM between close to zero for Egypt, Mauritius and Botswana and 58 percent in South Sudan. Upward secondary/tertiary IM ranges about 14 percent in Sierra Leone and Sudan and more than 70 percent in Egypt and Nigeria, while downward secondary/tertiary IM is between 1 percent in Egypt and 71 percent in Togo. with highest values of Downward IM. More specifically, upward primary IM is higher for males than females in Togo (14.9 percent), Liberia (11.6 percent), Sierra Leone, Zambia, Uganda (around 8-9 percent). 20 It is rather higher for females than males in Lesotho (25.9 percent), Botswana (15.5 percent), Nigeria (5 percent), and South Africa (4.2 percent). Similarly, downward primary IM is higher for females than males in Togo (9.8 percent), Liberia (7 percent), Guinea (6.2 percent), and Sierra Leone, Benin, and South Sudan (4-6 percent). It is rather 20 The differences are reported in parentheses.

higher for males than females in Lesotho (16.1 percent), and Botswana, Burkina Faso (5.4 percent). Second, in contrast, gender gap in favor of males, for the secondary/tertiary level, is less related to whether individuals are living in countries with highest values of upward or downward educational IM. For instance, upward secondary/tertiary IM is higher for males than females in Rwanda, Egypt, Liberia (8-9 percent), Uganda, Malawi and Zambia (6-6.5 percent). It is rather higher for females and males in South Africa, Morocco (4.5-5 percent), Sudan, Lesotho (3.9 percent), Mauritius (3 percent), Nigeria (2.5 percent), and Burkina Faso

(2 percent). Moreover, downward secondary/tertiary IM is higher for females than males in Botswana (14.2 percent), Malawi (11.3 percent), Togo, Sierra Leone (around 9 percent), Ghana, and Benin (around 8 percent). It is rather higher for males than females in Morocco (7.2 percent), Mauritius (6.8 percent), South Africa (5.8 percent), Zimbabwe, Burkina Faso (around 4.5 percent), Sudan, Lesotho and Mozambique (3 percent).

c) Country-level educational IM by residency

We also report the country level residency gap in educational IM in Figure D.14 and Figure D.15. First, we show that upward (downward) IM are higher (lower) for individuals living in urban than rural areas, for both primary and secondary/tertiary levels, and for all countries.

Second, individuals living in urban areas tend to do far better than those in rural areas in countries with the lowest values of upward IM and the highest values of downward IM. Indeed, the countries with the highest values of upward primary IM for individuals living in urban than rural areas are Ethiopia (57.6 percent), Sudan (44.8 percent), Burkina Faso (42.3 percent), and Guinea (40.2 percent). The countries with the lowest residency gap for upward primary IM (always in favor of individuals living in urban areas) are Mauritius (5 percent), South Africa (7.6 percent), Nigeria (10.5 percent), and South Sudan (12.1 percent). Similarly, the countries with the highest values of downward primary IM for individuals living in urban than rural areas are Ethiopia (50.8 percent), Burkina Faso (43.3 percent), and Sierra Leone (34.4 percent).

The countries with the lowest residency gap for downward primary IM are Mauritius (0.9 percent), Nigeria, South Africa (close to 3 percent), and Egypt (4.7 percent). Third, we find that the residency gap for upward secondary/tertiary IM is higher in Ethiopia (32.9 percent), Malawi (21.8 percent), Morocco (21.6 percent), and Guinea (21.2 percent), while it is lower in South Sudan, Sierra Leone, and Botswana (5-6 percent). We also show that the residency gap for downward secondary/tertiary IM is higher in Burkina Faso (51.9 percent), Ethiopia (40.9 percent), and Morocco (34.9 percent), while it is lower in South Sudan (-2.8 percent), Nigeria (7.7 percent), and Egypt (9.1 percent).

d) Mapping of district-level educational IM across Africa

Finally, we map educational IM across 2,890 districts in Africa in Figure 7. 21 Table E.25

and Table E.26 also report the summary statistics of district-level educational IM by country for primary and secondary/tertiary levels, respectively. They show both large within country and cross-districts variations. Overall, we find that within country disparities are larger in countries with lower educational mobility, with some exceptions. First, we show that upward primary IM is more unequal in South Sudan, Sudan, Ethiopia, and Burkina Faso (countries with lower average upward primary IM) and less unequal in Mauritius, South Africa, and Zimbabwe (most countries with higher average upward primary IM). 22 Regarding the probability of downward primary IM, it is more unequal in Botswana, Mauritius, and Egypt, and less unequal in South Sudan, Rwanda, Liberia, and Lesotho. Moreover, upward primary IM varies less across regions than downward primary IM (coefficient of variation is 1.6 times higher for the latter than the former). Second, we find that upward secondary/tertiary IM varies more across districts in Ethiopia, Sudan, Malawi, and Cameroon (many countries with lower average upward secondary/tertiary IM). It varies less across districts in Botswana, Mali, Lesotho, and Senegal (most countries with higher or milder average upward secondary/tertiary IM). Moreover, downward secondary/tertiary IM varies more across districts in Botswana, Egypt, Ethiopia, and Malawi (paradoxically, most countries with lower average downward secondary/tertiary IM). It varies less across districts in Senegal, Ghana, Morocco, and Tanzania (paradoxically, most countries with higher or milder average downward secondary/tertiary IM).

21 For some districts, educational IM are either negative, close to zero, higher than one, or close to one, due to a small number of observations at district level. Moreover, we show that while country-level and districtlevel estimates of educational IM may differ, they are strongly correlated and provide a quite similar ordering of countries by educational IM. 22 For instance, in South Sudan, the probability of upward primary educational IM is between 35 and 52 percent for individuals living in the South against only less than 19 percent for those living in the North. In South Africa, the lowest and highest probability of upward primary educational IM are recorded in the North Central (between 84 and 101 percent) and in the West (between 101 and 117 percent) respectively. As a foretaste of the effects of mineral resource discoveries and productions on intergenerational educational IM, we present in this section some stylized facts on both conditional IM in education and mineral discoveries and productions. South Africa, the country with the highest number of discoveries in our sample (108 total discoveries), illustrates well the case of countries where educational IM is higher in districts with discoveries/productions (see Figure 8). In the 60 districts where mineral sites were found, upward IM was 92 and 46 percent for primary and secondary/tertiary levels, respectively, higher by 2-3 pp. than in the 156 districts without any discoveries. Similarly, downward IM was 2 and 25 percent in districts with discoveries for primary and secondary/tertiary levels, respectively, lower by 1-2 pp. than in districts without discoveries.

We also show the mean differences of district-level conditional IM between districts with and without discoveries over the period of study (see Table E.27 and Table E.28). 23 We find that upward (downward) IM for primary education is, on average, higher (lower) in districts with discoveries than in districts without discoveries by around 4 pp. The opposite result holds for secondary education: upward (downward) IM is on average lower (higher) in districts with discoveries than districts without discoveries by around 4-6 pp. Second, we also present the summary statistics of IM by districts with and without discoveries for each country in Table E.27 and Table E.28. Upward IM is on average higher in districts with discoveries than districts without discoveries in 12 and 7 countries out of 26 countries (with both districts with and without discoveries) for primary and secondary levels, respectively. Downward IM is, on average, lower in districts with discoveries than districts without discoveries in 11 and 9 countries out of 26 for primary and secondary levels, respectively (see also Figure E.20).

23 One caveat is worth noting. The differences in the mean differences between districts with and without discoveries in Table E.27 and Table E.28 (district level) as compared to Figure 9 (country level) are mainly explained by the differences in the specification of the conditional IM. For the former, we use district-fixed effects whereas for the latter we use country-fixed effects. While the specifications with the district-fixed effects better capture the invariants characteristics at the district level (the most disaggregated level), those with the country-fixed effects offer insightful comparisons across countries, cohorts, gender, and residency. However, these stylized facts could hide differences in the dynamics of IM in districts with and without discoveries, and particularly progress that has happened in districts with discoveries. Figure 9 shows that while upward IM for primary and secondary/tertiary education was lower in districts with discoveries among the old cohorts (1950s and 1960s), it has significantly increased and closed the gap in these districts for more recent cohorts (1980s and 1990s) to stand above the one in districts without discoveries. Similarly, downward IM for primary and secondary/tertiary education was higher in districts with discoveries than without discoveries for old cohorts, and the gap has narrowed over time and for more recent cohorts. Therefore, IM has been significantly more dynamic in districts with discoveries. As a result, mineral discoveries and productions seem to have contributed to change the geography of the land of opportunities across African regions. In addition, we find that improvements in IM have occurred for both females and males, with females doing better than males in districts with discoveries (see Figure D.16 and Figure D.17).

The gender gap of upward primary IM in favor of males has closed early in districts with discoveries (for 1970s cohort) than districts without discoveries (for 1990s cohort). The gender gap of secondary and tertiary IM in favor of males quickly turns to be in favor of females in districts with discoveries (for cohorts 1960s-1990s), which happened 20 years later in districts without discoveries (for cohorts 1980s-1990s). Likewise, downward IM for primary and secondary/tertiary was higher for females than males in districts without discoveries contrary to districts with discoveries. Still, the gap has closed or widened for recent cohorts in districts without and with discoveries, respectively, with females performing better than males. We also find that IM improvements have occurred both in urban and rural areas in all districts (see Figure D.18 and Figure D.19). However, the gap between urban and rural areas has remained significant despite greater improvements in rural areas. There are, however, no significant differences in the dynamics of IM for rural and urban districts with and without discoveries.

Finally, we look at the dynamics of IM for individuals born around the first discovery and beginning of production. They are presented in Figure 10. These dynamics show that the timing of mineral discoveries and productions may constitute structural breaks in IM dynamics for individuals born before and after the discovery or production. Indeed, we show that the likelihood of upward IM for primary and secondary education has significantly increased after mineral discoveries and productions for individuals born after the discovery or production. Similarly, the likelihood of downward IM for primary and secondary education has decreased after the mineral discoveries and productions for individuals born after the discovery or production, while it is has sometimes increased for individuals born in years running up to discovery or production. While we cannot plot the dynamics of the counterfactuals, we show that IM has on average significantly accelerated after mineral discoveries and productions.

Empirical methodology

To estimate the potential effects of mineral discoveries and productions on educational IM, we adopt an experimental approach and exploit the exogeneity of natural resource discoveries.

First, it is plausible that the timing of mineral resource discoveries is exogenous due to the uncertainty related to the timing of the discovery and exploration success. While the technology used for exploration has improved over time, it is still highly improbable to predict the timing and success likelihood of finding a mineral field in a particular region [START_REF] Khan | From Commodity Discovery to Production[END_REF]Arezki et al., 2017b;[START_REF] Cavalcanti | Winning the oil lottery: The impact of natural resource extraction on growth[END_REF][START_REF] Seri | How giant discoveries of natural resources impact sovereign debt ratings in developing and emerging countries?[END_REF]. Moreover, the exact location of mineral resources discoveries is purely exogenous as it depends on random geographical factors of the area. Therefore, while some regions may be endowed with mineral resources, it is improbable to find any resources in others. Second, mineral discoveries provide a significant source of revenues and represent a major economic shock that can affect the trajectory of the development in countries and districts they are found. They can also change the habit of individuals and their expectations about their own and children's future. Third, as shown by [START_REF] Horn | Giant oil and gas fields of the world[END_REF] and Arezki et al. (2017b), there is a significant lag between the discoveries of natural resources and the beginning of their production, around five to six years. This allows us to study the effects of both mineral discoveries and productions on educational IM, separately. These features stand at the heart of our identification strategy and allow capturing a causal effect of mineral discoveries and productions on educational IM in African countries. Throughout the paper, we analyze both the effects of the first discoveries and productions on upward and downward mobility, and later in the robustness section, of multiple and successive discoveries and productions.

We employ a generalized difference-in-differences (GDID) strategy in a quasi-natural experiment and estimate treatment effects by comparing the changes in educational IM between a treatment group (people with exposure to the mineral discoveries and productions) and a control group, across pre-discovery/production and post-discovery/production. By doing so, our goal is to identify how educational IM has evolved following discovery/production for a group of people with exposition compared to a group of people born in the same district and around the discovery or production but not exposed to it, while controlling for the dynamics of educational IM in other districts without any discovery/production.

To capture the effects of the discovery/production, first, we focus in our baseline on a period spanning 30 years around it, i.e., we consider in the regressions, individuals born 15 years before and after the discovery or production. In the robustness, we expand this window and consider larger window periods of 40, 50, 60 years around the discovery or production. We define different expositions to the discovery or production as well as various control groups.

First, focusing on a window of 30 years, we consider all the individuals born the year of the discovery or production to up to 15 years after it to be in the treatment group. In an alternative specification, we assume that individuals born 5 years before the discovery or production will still be exposed to it as they start their education around the date of the discovery or production; therefore, the treatment group comprises individuals born five years before the discovery or production to up to 15 years after. Second, in the first specification, we consider as control groups (i) individuals born in districts with a discovery or production and between 15 years before to one year before the discovery or production, and (ii) individuals born in districts without any discovery or production over the period of study. Similarly, the second specification includes in the control groups, (i) individuals born in districts with a discovery or production and born between 15 years to 5 years before the discovery or production, and (ii) individuals born in districts without any discovery or production.

Given the nature of our data, multiple discoveries or productions and multiple treatments and control groups within and across districts, our GDID model allows for (i) specific IM across districts by introducing district fixed-effects α i , (ii) the common change in IM to vary across cohorts (decade in baseline, and each year of birth in the robustness) and years of census/survey by introducing cohort fixed-effects or year-birth fixed effects γ t and census-year fixed effects δ t respectively, and (iii) different timing of the discovery or production for different treated groups.

This allows to filter out all rigid characteristics specific to districts, cohorts or years of birth, and census year found to be critical in explaining education IM by [START_REF] Alesina | Intergenerational mobility in Africa[END_REF]. The model is estimated using a linear probability specification and obtained as follows:

I M jith = α i + γ t + δ t + βd h + X jit θ + ε jit (2)
Where I M jith is our measure of upward (and downward) mobility for primary or secondary/tertiary levels that takes the value one if the child j in district i has on average a higher (lower) education than its biological/step-parents knowing that its biological/step-parents have not completed (have completed) primary or secondary/tertiary education, respectively. d h is a dummy that takes the value of one if the individual is in the treated group (e.g., born between the year of the discovery or production to up to 15 years later) and zero if the individual is in the control group (e.g., either born between 15 years to one year before the discovery or production, or born in districts without any discovery or production). β is the coefficient of interest. It captures the treatment effect of mineral discovery/production on upward and downward educational IM by comparing educational IM in the treated and control groups. X it is a set of control variables including the gender of individuals and of their household head, the occupation of household head, the dummies of cohabitation with biological/step-parents (i.e, with only biological/stepfather, only biological/step-mother, or both biological/step-father and mother), the size of the household, and urban/rural residency. ε jit is the idiosyncratic term.

Our model requires the parallel trends assumption to hold, i.e., in the absence of the discovery or production, the change of educational IM would have been the same in both the treated and control groups. This assumption is violated when there are unobserved factors that are correlated with both the exposition to the discovery or production and the timing of the discovery or production. As discussed above, we have good reasons to believe that the timing of mineral discoveries is exogenous. Regarding the exposition to the discovery or production, since we focus on a relatively short period around the discovery or production in our baseline and include either cohort fixed effects or year-birth fixed effects, we limit the risks that other shocks or interventions polluted our findings. However, since we cannot test for the parallel trends' assumption in our GDID, we apply the following strategy to test the robustness of our findings and implicitly verified whether this assumption holds. First, we analyze the dynamic effects and conduct a standard leads-and-lags test following the literature (see e.g., [START_REF] Angrist | Instrumental variables in action: sometimes you get what you need[END_REF][START_REF] Maurer | Oil discoveries and education provision in the Postbellum South[END_REF]. This allows testing whether the effects of discoveries occurred after the discovery or production and tend to intensify thereafter. Second, we cross validate our findings by using different control groups while dropping from the control group all individuals in (i) countries without mineral discoveries (Mauritius and South Sudan) and (ii) in districts without mineral discoveries. This reduces the heterogeneity and differences in characteristics between our treated and control groups.

Results

In this section, we present our main findings, starting with the baseline results for the primary and secondary/tertiary levels of education, before discussing the dynamic effects of mineral discoveries and productions on educational IM.

Baseline results

Educational Primary IM

Table 2 reports the baseline results for the various sample compositions and definitions of the variables. The dependent variable is the occurrence of upward (columns 1-4) or downward (columns 5-8) educational IM. As explained in the previous section, we consider a time window of 15 years before and after the mineral discoveries or productions. We start with the results in Panel (A) where control variables are not included in the estimates.

In columns (1) and ( 5), the treatment group includes individuals born after the mineral discoveries or productions. The estimates then provide the differences in the likelihood of upward or downward primary educational IM for individuals in districts with mineral discoveries or productions born after (treatment group) and before (control group) the discovery within the exposure window period of 15 years. We do so by controlling for the likelihood of educational IM in districts without mineral discoveries/productions. The results show that the probability of experiencing an upward educational IM is 2.7 pp. higher for an individual born after a discovery of a mining site compared to an individual born before the discovery (column 1). In other words, individuals who are born from parents who are uneducated have better chances of achieving at least primary education if exposed and living to a district with a mining discovery. Inversely, the likelihood of experiencing a downward educational IM for individuals born after the discovery of a mining site is 1.2 pp. lower than those before the mining discovery (column 5). That said, individuals who are born from educated parents are less likely to do less than their parents if exposed and living to a district with a mining discovery. About the size of the effects, it is relatively small when compared to the increase of IM across the different cohorts, signaling that, other factors have also played a significant role in improving IM in Africa. To put our findings into perspective and extrapolate them to Africa, we show that the number of individuals born up to 15 years after mineral discoveries and who have completed at least primary education while their parents have not, increases by 662 thousand in Africa over the period 1950-2000.

This figure stands at 581 thousand for individuals born up to 15 years after mineral productions.

Similarly, the number of individuals born up to 15 years after mineral discoveries and who

have not completed at least primary education while their parents have completed it, decreases by 371 thousand. This figure stands at 124 thousand for individuals born up to 15 years after mineral productions. These figures would have been even higher to millions of individuals if we would have considered all the individuals born after the discoveries and productions, and not only those born up to 15 years after the event.

In columns (2) and ( 6), we expand the treatment group to include individuals who are born 5 years before the discovery. In fact, these individuals may have not started their education at the time of the discovery as they do not meet the minimum years of schooling in most African countries. The coefficient of interest in column (2) remains broadly the same as in column (1), suggesting that the change in the time exposition to the mining discovery does not after the Note: This table presents the baseline results for the probability of upward (columns 1-4) and downward (columns 5-8) educational IM as a function of mining discoveries and production without (Panel A) and with (Panel B) a number of other control variables. Standard errors are in parentheses. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Disc-5 is when individuals born 5 years before the discovery are included in the treatment group; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production; Prod-5 is when individuals born 5 years before mining production are included in the treatment group. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

likelihood of upward primary educational IM. However, the coefficient is significantly lower in column (6) than in column (5), implying that individuals born after the discovery of the mining sites would have a lower likelihood of downward mobility than those born just before (five years before) the discovery.

In columns (3) and ( 7), we use an alternative definition of mining activity where the binary variable is now equal to one for districts where mining production has started and zero otherwise. The estimates compare the likelihood of upward or downward educational IM between individuals born after and before the beginning of the mining production. We find that the probability of experiencing an upward educational IM is 6.7 pp. higher for an individual born after the mining production compared to those born before the beginning of the mining production. The coefficient associated with mining is higher in column (3) than in column

(1), implying that mining productions tend to have, on average, higher positive effects on the likelihood of upward primary educational IM than the discoveries. These higher effects could be explained by the increase in investments required to start production, which may create more jobs and income opportunities for district residents than the proceeds associated with the exploration and discovery of mining sites. Indeed, the start of the production reveals a new information that would affect the parents own and child's life expectation. We also observe that our coefficient of interest remains broadly unchanged in column (7) compared to column (5), suggesting that individuals born after the discovery and the beginning of the mining production have the same likelihood of experiencing downward primary educational IM. We also include the individuals born 5 years before the beginning of production in the treatment group in columns ( 4) and ( 8). We find that the coefficient associated with mining production is lower in column (4) than in column (3), while remaining the same in columns ( 7) and ( 8).

In Panel (B), we control for several covariates that can affect the likelihood of upward and downward educational IM as presented in the previous section (see Table F.29 for the coefficients associated with each control variable). We find that the coefficients associated with mining are highly significant at 1 percent level in all columns, and their magnitude are broadly equal to those found in Panel (A). Thus, our findings remain unchanged when we control for individual characteristics.

Educational secondary/tertiary IM

We now turn to secondary/tertiary education level. The results are reported in Table 3. We find that the coefficient associated with mineral discoveries and productions is not statistically significant in all columns, except the slightly significance in column (5) at 10 percent level.

The result suggests that the likelihood for individuals born after the mineral discoveries and productions to experience an upward or downward secondary/tertiary educational IM is not statistically different from that of individuals born before the start of mining activities discovery or production. The insignificance of the effects of mining activities on secondary and tertiary educational IM could be due to the presence of mixed effects, both positive and negative, that are offsetting each other. For instance, as illustrated by [START_REF] Gradstein | We Don&Apos; T Need No Education: The Effect of Natural Resource Income Shocks on Human Capital[END_REF], a positive oil price shock is found to have a positive effect on educational attainment for children (ages 0-4), and a negative effect for adolescents (ages 10-14). Indeed, when youth children or adults reach secondary and tertiary education levels, they face a significant trade-off between education and employment. They are now able to do some domestic tasks or work outside of the household, and therefore be forced or decide to drop out of school. This situation could be particularly prone when there is a mining site within the district. For instance, [START_REF] Ahlerup | Gold mining and education: a long-run resource curse in Africa?[END_REF] found that individuals who had gold mines within their district when they were adolescent have significantly lower educational attainment. This is explained by some myopic educational decisions when employment in gold mining is an alternative. However, some other papers reveal a positive effect of subsoil wealth on average years of primary, secondary, and tertiary education level [START_REF] Stijns | Natural resource abundance and human capital accumulation[END_REF]. In addition, the same reasons driving the benefits of mineral discoveries and productions on the primary education may still be playing a role, therefore re-balancing the negative effects at higher levels of education. Note: This table presents the baseline results for the probability of upward (columns 1-4) and downward (columns 5-8) educational IM as a function of mining discoveries and production without (Panel A) and with (Panel B) a number of other control variables. Standard errors are in parentheses. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Disc-5 is when individuals born 5 years before the discovery are included in the treatment group; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production; Prod-5 is when individuals born 5 years before mining production are included in the treatment group. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

In Panel (B), we include the control variables (see Table F.30 for the coefficient associated with each control variables). The results remain unchanged. The coefficients associated with mineral discoveries and productions are still statistically not significant in all columns, except column (5). In the latter, the coefficient is positive and significant at 5 percent level, suggesting that the likelihood of downward secondary/tertiary educational IM of individuals born after mining discoveries tend to be higher than those born before the discoveries. However, this finding does not hold when we expand the treatment group by including individuals born 5 years before the discovery in column ( 6), meaning it is not robust.

Dynamic effects of mineral discoveries and productions on educational IM

In this subsection, we explore the dynamic effects of mining activities based on the time distance between the years of discoveries or productions and the birth years of individuals to test the parallel trends' assumption. As explained previously, we conduct a leads-and-lags test following the literature [START_REF] Angrist | Instrumental variables in action: sometimes you get what you need[END_REF][START_REF] Maurer | Oil discoveries and education provision in the Postbellum South[END_REF] to analyze whether the effects of mineral discoveries on IM tend to intensify the years after the shock. To do so, we estimate the likelihood of upward and downward educational IM for individuals born 0-5, 6-10 and 11-15 years after the discoveries or the beginning of mining production, and those born 5-10 and 10-6 years before the discoveries or the first year of mining production. The reference group is given by individuals born 11-15 years before the discoveries or the beginning of mining productions. The results are reported in Table 4 for upward IM (columns 1-2 and 5-6) and downward IM (columns 3-4 and 7-8). The results are two folds. First, we find that mining activities affect the likelihood of primary educational IM for all age groups, while the effect is not statistically significant for secondary/tertiary educational IM. In fact, the results show that the coefficients associated with mineral discoveries and productions are positive and significant in columns 1-2, suggesting that mining activities tend to increase the likelihood of upward primary educational IM for all age groups of individuals. Inversely, the coefficients associated with mineral discoveries and productions are negative and significant in columns 3-4, meaning that mining activities are correlated with lower likelihood of downward primary educational IM for all age groups.

On the other hand, the coefficients associated with mineral discoveries and productions are not statistically significant for all age groups of individuals in columns 5-8. This is in line with our findings in Table 3 that mining activities do not affect the likelihood of upward and downward secondary and tertiary educational IM. Second and more importantly, we find that the coefficients associated with mineral discoveries and productions are higher for individuals born later after the discovery and the beginning of mining production. For instance, the probability of upward primary educational IM is 7.6 pp. higher for individuals born 6-10 years after the beginning of mining production against only 1.1 pp. higher for those born 10-6 years before the beginning of mining production, as compared to those born 15-11 years before the beginning of mining of production (column 2). This higher probability could be explained by the fact that it takes time for mining activities to have an impact on the local communities, particularly in terms of infrastructure provision. It also supports that the parallel trend assumption might be verified, and therefore the effects we are capturing can be fully attributed to mineral discoveries and start of productions.

Transmission channels

We explore the channels through which mining activities affect the likelihood of educational IM. We focus on two channels including the income effect proxied by parents working in the mining sector, and the returns to education. 24 First, the increase of income for parents working in the mining sector, due to novel abundant opportunities, will allow them to invest more in their children education attainment [START_REF] Becker | An equilibrium theory of the distribution of income and intergenerational mobility[END_REF]. Second, this new economic dy- 24 We also test a third channel of the provision of infrastructures but decide not to present them as we use an (imperfect) proxy--access to electricity and clean water--for the provisions of public goods. The results can be obtained upon request. Indeed, following a mineral discovery, large scale investments in mining infrastructures and other transport infrastructures related to the exploitation and transportation of the resources are needed. Moreover, the revenues generated by the resources offer an opportunity for the region and the country to address infrastructure gaps and enhance economic development. Among the types of infrastructures, the general or local government may increase their public spending in education through better access to all primary and secondary education for all aged-children [START_REF] Witter | Choices for spending government revenue: New African oil, gas, and mining economies[END_REF]. Our findings show that for individuals exposed to the mineral discoveries and productions, the likelihood of having access to electricity and clean water increase by around 4 percent, and access to electricity and clean water is strongly and positively (negatively) correlated with the upward (downward) primary educational IM. namism, creation of new jobs, will lead to an increasing demand for skilled workers. Thus, the higher returns or benefits to education in terms of wealth and income will motivate individuals to increase their educational attainment relative to their parents [START_REF] Torche | Intergenerational mobility and inequality: The Latin American case[END_REF].

To capture the income effect, we include an interactive variable between the discovery or production variable and a dummy equals to one if individuals have one of their parents working in the mining sector, and the latter itself as additional variables. For the return to education channel, we employ a two-step strategy where, in the first step, the effects of the mining discovery or production on the transmission channel variable is analyzed, and in the second step, we check the correlation between the transmission channel variable and upward/downward educational IM. This allows us to test whether the effect of mineral discoveries and productions on the probability of upward and downward educational IM transits through our transmission channel variable.

Income channel: parents working in the mining sector

We first test whether the income effect proxied by parents working in the mining sector could be a channel through which mining activities affect the likelihood of upward/downward educational IM. One would expect that mining activities will create jobs in the local communities, therefore generating a source of income which could allow parents to invest more in their children education. We define a binary variable taking the value of one if one of the parents of the child is working in the mining sector, and zero otherwise and interact it with the treatment variable of mineral discoveries or productions. The results are displayed in Table 5, with the estimates about primary education in columns 1-4, and secondary and tertiary education in columns 5-8. We find that the coefficients associated with mineral discoveries or productions and the interactive term in columns 1-4 are statistically significant and have the expected sign. First, the mineral discoveries and productions increase (decrease) the likelihood of upward (downward) primary IM. Second and more importantly, these benefits of mining discovery or production are accentuated for individuals those one of the parents works in the mining sector. We find that having one of the parents working in the mining sector raises the likelihood of upward primary IM by 2.2 and 6.3 pp. following mineral discoveries and productions, respectively. Moreover, it diminishes the likelihood of downward primary IM by 1.1 pp. following mineral discovery. For secondary and tertiary IM, we find no significant effects of both the mineral discovery or production and its interactive term with parents working in mining. This suggests that the insignificant effects of mineral discoveries and productions hold for all individuals, independently of whether they have a parent working in the mining sector or not. Note: This table presents the effects of mineral discoveries and productions on primary (columns 1-4) and secondary/tertiary (columns 5-8) educational IM, conditional on having of the parents working in the mining sectors. Standard errors are in parentheses. Yes Parents work in mining is a dummy taking the value of one for individuals with one of the parents working in the mining sector. Yes Mining is the treatment dummy variable for either discovery or production (depending on the columns). Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level

Return to education: Wealth index and LIDO score

We further test a second channel of return to education to check whether individuals in districts with mineral discoveries and productions increase their level of education to get a higher wealth and income. Indeed, individuals exposed to the mineral discoveries and productions have a higher likelihood to work in the manufacturing and services sectors, and a lower likelihood to work in the agriculture sector. Given that the manufacturing and services sector may require a higher educational attainment and skills, individuals would have to increase their education level to work in these sectors, and thus having a better socio-economic status. To study the effect of mineral discoveries and productions on the returns to education, we first estimate a Mincerlike equation using a GDID model. The dependent variables are a proxy of wealth and income,

given the lack of data on income and consumption in our database. The explanatory variables include the educational levels (primary and secondary/tertiary), the mineral discoveries and productions dummy, and their interactive term.

To do so, we construct the wealth index using a principal component analysis on several variables at the household level reflecting the economic status of household, following closely the Demographic and Health Survey wealth index [START_REF] Rutstein | Making the demographic and health surveys wealth index comparable[END_REF]. 25 Second, we apply the lasso-adjusted industry, demographic, and occupational (LIDO) scores computed using actual data of labor market for the United States in 1950 by [START_REF] Saavedra | A machine learning approach to improving occupational income scores[END_REF] The results for the LIDO score and Wealth score are reported in Table 6 in columns 1-3 and 4-6, respectively. We find that an increase in the levels of education are associated with a higher LIDO score and Wealth index in all districts (with or without mineral discoveries) and all individuals (exposed to mineral discoveries/productions or not). This implies higher returns to education in Africa. More importantly, we find that the returns to education are higher in districts with mineral discoveries or productions (columns 1 and 4), and they are even greater for individuals exposed to the mineral discoveries and productions (columns 2-3 and 5-6, respectively). In a second step equation, we look how the LIDO score and Wealth index correlate with the educational IM. Table 7 shows a strong and positive (negative) association 25 The variables used to construct the Wealth index include: (i) whether the household (HH) has at least one domestic servant, (ii) whether any HH member owns a dwelling unit, (iii) HH services and possessions such as drinking water, electricity, fuel cook, and their sources or types, (iv) characteristics of the dwelling such as characteristics of the floor, wall, and roof. The choice of variables is constrained by the availability of data for all countries included in the analysis.

between the LIDO score and Wealth index with the upward (downward) primary educational IM. Thus, our findings suggest that in districts with mineral discoveries and productions, and specifically for individuals born after the mineral discoveries and productions, the returns to higher education has played a key role as an incentive to achieve higher educational levels and greater educational IM.

To further reinforce this channel, we also test whether mineral discoveries and productions affect the reallocation of individuals across the broad sectors, i.e., agriculture, manufacturing, and services. Specifically, the mineral discoveries and productions, by creating new opportunities, may change the economic prospects at the local level. They can accelerate the demand for skilled workers by more capital-intensive and better paid activities in the manufacturing and services sectors, whereas individuals may be less prone to work in labor-intensive agriculture sector. The results are reported in Table 8. First, we show that the likelihood to work in the agriculture sector decreases by 1.1 pp. for individuals exposed to the mineral discoveries or productions (see columns 1-2). Second, we also find that the likelihood to work in the manufacturing or services sector increases by around 0.8-1.4 pp., respectively (see columns 3-4 and 5-6). These findings suggest that mineral discoveries and productions lead to the shift from lower skilled to higher skilled jobs, and therefore boost the demand for better educated people in Africa. Note: This table presents the effects of mineral discoveries and productions on the likelihood to work in the agricultural (columns 1-2), manufacturing (columns 3-4), and services (columns 5-6) sectors. Standard errors are in parentheses. Mining is the treatment dummy variable for either discovery or production (depending on the columns). Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Robustness checks

We undertake various robustness tests to check the validity of our results to alternative samples and specifications.

Use of alternative control groups (only countries/districts with discoveries)

We start by using an alternative definition of the control groups. In our baseline, we compared the likelihood of upward and downward educational IM between individuals born after the discovery or the beginning of mining production, and those born before the discovery or beginning of production or in regions and countries without discoveries, regardless of their residing countries or districts. In this robustness check, we restrict the control group to individuals living in countries or districts where mining sites are discovered or with production activities.

The results are reported in Table 9, with the estimates for primary educational IM being in Panel (A) and those for secondary and tertiary educational IM in Panel (B). As in the baseline, we find that the coefficients associated with mining activities are significant for primary educational IM, and insignificant for secondary and tertiary educational IM. Therefore, mining activities affect the likelihood of upward and downward primary educational IM in countries and districts with mineral resources, while the effect on secondary and tertiary educational IM is not statistically significant. Our results remain unchanged and are robust to the change of control groups and samples.

Use of alternative structures of fixed effects and time variable

We then perform a series of consistency checks based on the structure of the fixed effects.

The results are in Table 10, with Panel (A) being for primary education and Panel (B) for secondary and tertiary education. In columns 1-4, we replace the cohort fixed effects by birth year fixed effects and therefore compare individuals born within the same year instead of cohort since they may have experienced different shocks in 10 years. In columns 5-8, we include both the birth year fixed effects and the common time trend to capture the evolution of IM and rule out the possibility that individuals born before and after the discoveries or the beginning of mining production were already on differential growth trajectories in their education outcomes, i.e., a change in the educational IM indices that would have happened even in the absence of the mining activities. These factors could include particularly the family background of individuals (rich, poor and others). In columns 9-12, we control for cohort fixed effects and common time trend to filter out all persistent cohort related differences that could affect the likelihood of educational IM of individuals born before and after the discoveries of mining sites: for example, the availability of school infrastructure and change in the education system. Table 10 shows that our main findings remain unchanged even after accounting for all these different structures of fixed effects and time variable.

Use of alternative time window around the mineral discoveries and productions

Another important element of our analysis is the time window around the mineral discovery and production. In the baseline, we used a time window of 30 years (15 years before and after the discovery or the beginning of production). We test the robustness to alternative time windows, including 40 years (i.e., 20 years before and after), 50 years (25 years before and after)

and 60 years (30 years before and after the discovery/production) to account for the individuals who take more time to complete their education and the potential long-lasting effect of mining activities. The results are reported in Table 11, with Panel (A) for primary education, and Panel (B) for secondary and tertiary education. We find that the coefficients associated with our variable of interest are significant for the primary education, while insignificant for the secondary and tertiary education, thus in line with the findings in the baseline estimates. This confirms that our baseline results are not driven by the choice of the time window around the discovery or the beginning of mining production. Moreover, the effects of mineral discoveries or productions tend to be long-lasting, also for cohorts born years after the discovery or production. Standard errors are in parentheses. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Use of alternative time exposition to the mineral discoveries or productions

We further explore whether our results are robust to the change in the time exposition to the mining activities. We expand the definition of the treatment group to account for individuals who may not have completed their education before the discovery or the beginning of mining production. Our baseline estimates compare the likelihood of individuals born before and after the start of mining activities. However, some individuals born before the start of mining activities may complete their education after the beginning of mining activities. In this case, those individuals will benefit from the economic and social impact from the exploitation of mining resources. We have already tried to account for these individuals by including in the treatment group the individuals born 5 years before the discovery/production in Table 2 andTable 3. In this robustness check, we include in the treatment group individuals born 10 and 15 years before the discovery or the start of mining production. To this end, we consider a longer time window of 60 years (30 years before and after the discovery/production). The results are reported in Table 12, with the primary educational IM in Panel (A), and secondary and tertiary educational IM in Panel (B). In all cases, we confirm our findings that mining activities have a statistically significant positive (negative) effect on the probability of upward (downward) primary educational IM, while the effect on the probability of secondary/tertiary educational IM is not statistically significant.

Use of alternative IM definitions

We also check the robustness of our findings to alternative definitions of our dependent variables. In the baseline, we considered children living with their biological/step parents and the average values of parents' education achievements to construct the intergenerational mobility indices. In this subsection, we first broaden the definition of parental authority to include all other immediate relatives from older generations such as uncles/aunts (in law), parents-inlaw, grand-parents, and grand-uncles/aunts to account for abandoned or orphan children sent to relatives, and biological parents deliberately sending their children to relatives or places where education conditions are better. The results are reported in Table 13, columns 1-4. Panel (A) is for primary education and Panel (B) is for secondary and tertiary education. Second, we use the minimum and the maximum of the parents' education attainment instead of the average education attainment to better capture potential parents' education inequalities as women tend to have lower education attainment then men in Africa. In this case, a child will experience upward (downward) educational IM if his/her education attainment is higher (lower) than the minimum or the maximum of his/her parents' education attainment. 26 The results of the estimates are displayed in Table 13, columns 5-12. We still find that mining discoveries and productions increase (reduce) the likelihood of upward (downward) primary educational IM in Panel (A), while the effects on secondary/tertiary educational IM is insignificant in Panel (B). That said, the use of alternative intergenerational mobility definitions does not alter our findings. Note: This table presents the effects of mineral discoveries and productions on upward and downward educational IM, using alternative definitions of IM to account for fostered, abandoned, or orphan children. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Use of all mineral discoveries and productions

We test for robustness to the coverage of all mineral discoveries and productions. As explained in Section 5, we focused on the first discovery and the first production to cancel out any potential anticipation and duplication effects as resource-rich districts are more likely to experience several discoveries or have many production sites. In this subsection, we use all discoveries and productions of mineral resources. The results are displayed in Table 14. We still find that mining activities affect the likelihood of primary educational IM, while the effect on secondary and tertiary educational IM is not statistically significant. Therefore, the change in coverage of mineral discoveries and productions does not alter our baseline findings. Note: This table presents the effects of mineral discoveries and productions on upward and downward educational IM, using all mineral discoveries and productions. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Use of conflicts as additional control variables

Finally, we verify if our baseline results hold after the inclusion of conflicts as additional control variables, given their negative association with mineral discoveries, extensively found in the literature. We have not included this variable in the baseline since geolocalized data on conflicts at district level is available from 1989, thereby restraining our sample of study. We use the Georeferenced Event Dataset (GED) on conflicts from Uppsala Conflict Data Program.

We create a dummy equal to one if individuals aged 0-16 years old were exposed to a conflict with more than 25 deaths at the district level and use it as explanatory of primary educational IM. For secondary and tertiary educational IM, we rather consider individuals aged 0-25 years old for exposition to conflicts. The results are reported in Table 15. We show that conflicts are negatively associated with upward primary IM, while they have no significant effects on downward primary IM as well as both upward and downward secondary and tertiary IM. However, the effect of mining activities (discoveries or productions) on educational upward (downward)

IM remain positive (negative) for the primary level, and not significant for the secondary and tertiary level. Then, additional conflicts as an explanatory of educational IM does not alter our baseline findings.

Sensitivity tests

In this section, we undertake some sensitivity tests to explore whether our findings vary across African regions, size of the mining sites, gender, and urban-rural residency.

Depending on the African regions

We first explore whether the regional subdivision matters. We split the African continent into four regions: Eastern Africa, Northern Africa, Southern Africa, and Western and Central Africa. We then estimate the effects of mining activities on the probability of upward/downward educational IM for each region. The results reported in Table 16 show that there are some heterogeneities across regions. We find that the coefficients associated with mineral discoveries or productions are positive and strongly significant at the 1 percent level (columns 1-2), suggesting that mining activities tend to increase the probability of upward primary educational IM in all African regions. However, mining activities reduce the likelihood of downward primary educational IM only in Eastern Africa and Northern Africa, as the coefficients associated with mineral discoveries or productions are negative and significant only for these two regions (columns 3-4).

Regarding secondary and tertiary educational IM, the results are more divergent. We find that the coefficient associated with mining activities are negative and significant in Eastern Africa and Northern Africa, while positive and significant in Southern Africa, and Western and Central Africa (columns 5-6). In other words, mining activities increase the probability of upward secondary and tertiary educational IM in Southern Africa, and Western and Central Africa, while reducing the probability of upward secondary and tertiary educational IM in Eastern Africa and Northern Africa. On the other hand, the coefficients associated with downward secondary and tertiary educational IM are not statistically significant in all regions, except some positive associations in Eastern and Northern Africa.

Depending on the size of mineral discoveries

We now study whether our results generalize to all sizes of mineral discoveries or if some subgroups of minerals have specific effects on education outcomes. The Minex Consulting Dataset (2019) splits mineral discoveries into four categories: moderate, major, giant and supergiant mining. We merge the last two categories as there was not sufficient observations to include each of them in the estimates. The results are in Table 17, columns 1-4 for primary education and columns 5-6 for secondary and tertiary education. We find that the coefficient associated with all sizes of mineral discoveries are positive and significant at the 1 percent in columns 1-2, suggesting that mineral discoveries or productions, regardless of its size, is positively correlated with higher likelihood of primary educational upward IM for individuals born after the discovery than those born before. However, we observe in columns 3-4 that the coefficients associated with giant and super-giant mining are not statistically significant, while those associated with moderate and major mining are significant and in line with our baseline findings. Therefore, individuals living in districts with moderate and major mining operations are less likely to experience downward primary educational IM. Furthermore, we find that the coefficients associated with major and moderate mining are higher in absolute terms than those associated with giant and super-giant mining. On the other hand, only the coefficients associated with giant and super-giant mining discoveries are statistically significant in columns 5-6, meaning that individuals exposed to the discoveries and productions of giant and super-giant mining have a higher likelihood of upward secondary and tertiary educational IM. 2 times higher in Panel (A) than in Panel (B), reflecting the gender gap in benefits associated with mining production, in favor of males. Indeed, the probability for males to experience an upward primary educational IM is 8.4 percent, against 4.9 percent for females. We also find that the coefficients associated with mining in columns (3) and ( 4) are higher in absolute terms in Panel (A) than in Panel (B). Males are therefore less likely to experience downward primary educational IM than females. Regarding secondary and tertiary education, Table 18 shows that the coefficient associated with mining is mostly not statistically significant or inconsistently estimated both for males and females. mining are broadly higher in absolute terms in urban areas than in rural areas, suggesting that the effect of mining activities on the probability of educational IM tends to be high for individuals living in urban areas. In columns 5-6, we observe that the coefficients associated with our variable of interest are not statistically significant in rural areas, while there are significant in urban areas, meaning that the place of living also matters regarding the effect of mining activities on the probability of secondary and tertiary educational IM. Indeed, individuals living in rural areas face unique barriers to economic and educational opportunities (including poverty, access to public goods, lack of teachers, weaker local economy, etc.) than those living in urban areas. This supports that it is more likely that the preconditions for a positive effect of mineral discoveries and productions on educational IM are more likely to be reunited in urban than rural areas. provide a panorama of stylized facts about the trend, dynamics, and disparities of educational IM across countries, and regions of the continent. We show that primary and secondary/tertiary educational IM have significantly improved in Africa over time, with a more significant increase in primary IM (higher upward IM and lower downward IM) than in secondary/tertiary IM.

We uncover that the gender gap in favor of males has narrowed over time, with sometimes females doing better than males in most recent cohorts. Regarding the living area, we show that although the residency gap has slightly diminished over time, educational IM has always been better in urban than rural areas and the gap still remains significant. We also provide country-specific characteristics regarding educational IM as well as cross-country and withincountry disparities. In addition, we identify where is the land of opportunities by mapping the district-level educational IM to unveil the heterogeneities across the African continent.

We then empirically study the potential role of mineral discoveries and productions on educational IM in Africa given the abundance of mineral resources across the continent. To so do, we employ a generalized difference-in-differences method in a quasi-natural experiment to identify the causal relationship between mineral discoveries/production and educational IM. Our findings suggest that mineral discoveries and productions positively affect primary educational IM in Africa for individuals exposed to the mineral sites and living in districts with mineral discoveries and productions. However, no significant effects are found for secondary/tertiary educational IM. We also unveil two transmission channels through which the positive effects of mineral discoveries and productions on educational primary IM operate, including the income effect proxied by parents working in the mining sector and the returns to education.

Our paper has many policy implications. We show that mineral discoveries and productions have helped improved the social and educational intergenerational mobility in Africa by creating job opportunities, and the returns to education. For these opportunities to be seized, several conditions need to be in place. First, governments should implement accommodative policies that will support enterprise development and the full potential for the creation of jobs to be harnessed. These policies can include labor market flexibility and the creation of business linkages between large mining companies and local small and medium enterprises (SMEs) that will strengthen the sector's capacity to create jobs. Second, as shown in this paper, mineral discoveries and productions tend to profit males and females as well as people living in urban and rural areas differently. Targeted policies that aim at reducing the inequality of opportunities, especially following mineral discoveries, are also welcome. In addition, our results suggest that districts with discoveries could benefit more from the discoveries or productions, therefore calling for the channeling of the mining revenues in a fund and redistributing it among the districts with the objective to reduce regional disparities.

As avenue for further research, it would be interesting to investigate in details how mineral discoveries and productions induce a local structural transformation, by analyzing their impact on intergenerational mobility in occupation. It might be that mineral discoveries and productions also incur an increase of the likelihood that children do better than their parents in terms of employment at local level. 5), ( 3)-( 6), and ( 4)-( 7) give the number of districts, the average educational IM, and the coefficient of variation of education IM, for each country, respectively. (2)-( 5), ( 3)-( 6), and (4)-( 7) give the number of districts, the average educational IM, and the coefficient of variation of education IM, for each country, respectively. (1) gives the country name. Columns (2) is "yes" for districts with discovery, and "No" otherwise. Columns (3) and ( 7) is "yes" if upward and downward IM is higher in districts with discovery than without discovery, respectively. Columns ( 4)-( 8), ( 5)-( 9), and ( 6)-( 10) give the number of districts, the average educational IM, and the coefficient of variation of education IM, respectively. 2) is "yes" for districts with discovery, and "No" otherwise. Columns (3) and ( 7) is "yes" if upward and downward IM is higher in districts with discovery than without discovery, respectively. Columns (4)-( 8), ( 5)-( 9), and ( 6)-( 10) give the number of districts, the average educational IM, and the coefficient of variation of education IM, respectively.

Figure 1 :

 1 Figure 1: Location of mineral discoveries by size for all African countries, 1950-2019

Figure 5 :

 5 Figure 5: Country-level educational IM by birth cohorts and gender

  Downward -Secondary and tertiary Source: Authors' calculations based on IPUMS dataset b) Country-level educational IM by gender We also present the country-level gender gap in educational IM in Figure D.12 and Figure D.13. First, we show that gender gap, in favor of males for the primary level, is more pronounced for individuals living in countries with lowest values of upward IM, and in countries

Figure 7 :

 7 Figure 7: District-level educational IM

Figure 8 :

 8 Figure 8: District-level educational IM in South Africa

Figure

  Figure 9: District-level educational IM

Figure 10 :

 10 Figure 10: Dynamics of Unconditional IM around the first discovery and start of production

  to our individuals in Africa. This LIDO score is an occupational income ranking score used as an alternative measure of income, socioeconomic status, and labor market outcome. It is dependent on (i) the fine categories of sectors of employment based on the industry classification (e.g., agriculture, mining and extraction, manufacturing, construction, hotels and restaurants, etc.), (ii) the occupation within employment based on the occupation classification (e.g., legislators, senior officials and managers, technicians and associate professionals, service works and market sales, elementary occupations), and (iii) individuals characteristics (e.g., age, gender). When applies to workers in Africa, the cross-individual, district and country differences at each period and over time would only come from the differences in the labor market conditions (sectors of activities, and occupation within employment) and demographics. We neutralize the effects of the demographic variables in the estimations by controlling for gender and age. We show in the Figure G.21 and Figure G.22 that the LIDO Score and Wealth index are strongly correlated with PPP GDP per capita at the country level, thereby implying that they are good proxies of income in Africa.

  /A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Panel (A) Primary education Mining 0.030*** 0.074*** -0.015*** -0.018*** 0.032*** 0.074*** -0.016*** -0.019*** 0.033*** 0.073*** -0.016*** -0.016*

Figure C. 11 :

 11 Figure C.11: Number of mineral discoveries for all African countries, 1950-2019

  By age for biol./step-parents and immediate older generations (B) By age, gender, and district with or without disc. only for biol./step-parents

									Figure 2: Cohabitation rates
	.2 .4 .6 .8 1 (A) 0 Cohabitation Rate	Biological/Step-parents		Immediate older generations		Cohabitation Rate	0 .2 .4 .6 .8 1	W/o. disc.	W. disc.
	0	5	10	15	20	25	30	35	40	45	50	0	5	10	15	20	25	30	35	40	45	50
						Age											Age

Table 1

 1

	: Differences in educational attainment between individuals living with biological parents or step-parents
	or not
			(A) With discoveries			(B) Without discoveries
		(1)	(2)	(3)	(4)	(5)	(6)
		Without relatives With relatives Differences	Without relatives With relatives Differences
	Less than primary completed 47.31	40.52	-6.79	56.63	40.08	-16.55
	Primary completed	36.06	42.38	6.32	27.19	37.22	10.03
	Secondary completed	14.4	15.72	1.32	13	19.42	6.42
	Tertiary completed	2.23	1.37	-0.86	3.18	3.28	0.1
	Total	100	100		100	100
	Khi-2 tests p-value		0.000			0.000

Table 2 :

 2 Baseline results, primary education

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Upward mobility			Downward mobility
		Disc-B/A Disc-5	Prod-B/A Prod-5	Disc-B/A Disc-5	Prod-B/A Prod-5
				Panel (A) Without control variables
	Mining	0.027*** 0.026*** 0.067*** 0.056*** -0.012*** -0.005*** -0.011*** -0.011***
		(0.002)	(0.002)	(0.004)	(0.003)	(0.002)	(0.002)	(0.002)	(0.002)
	Observations	8306024 8306024 8537407 8537407 4374423	4374423	4478390	4478390
	R-squared	0.251	0.251	0.252	0.252	0.124	0.124	0.123	0.123
	# Treated	148633	192236	53986	67663	98793 No	No	No	No
				Panel (B) With control variables
	Mining	0.028*** 0.027*** 0.070*** 0.059*** -0.013*** -0.007*** -0.012*** -0.012***
		(0.002)	(0.002)	(0.003)	(0.003)	(0.002)	(0.002)	(0.002)	(0.002)
	Observations	8306024 8306024 8537407 8537407 4374423	4374423	4478390	4478390
	R-squared	0.269	0.269	0.270	0.270	0.134	0.134	0.133	0.133
	# Treated	148633	192236	53986	67663	98793	123151	36768	49337
	Control variables	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Table 3 :

 3 Baseline results, secondary and tertiary education

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Upward mobility			Downward mobility
		Disc-B/A Disc-5 Prod-B/A Prod-5 Disc-B/A Disc-5 Prod-B/A Prod-5
			Panel (A) Without control variables
	Mining	-0.006	-0.000	0.016	0.006	0.034*	0.012	-0.002	0.015
		(0.012)	(0.011)	(0.020)	(0.019)	(0.019) (0.018)	(0.022)	(0.022)
	Observations	3335415 3335415 3461167 3461167 323998 323998 331618 331618
	R-squared	0.195	0.195	0.195	0.195	0.155	0.155	0.155	0.155
	# Treated	67525	89986	38002	43715	6197 No	No	No	No
			Panel (B) With control variables
	Mining	-0.007	-0.000	0.016	0.007	0.037**	0.015	-0.010	0.007
		(0.013)	(0.011)	(0.021)	(0.020)	(0.019) (0.018)	(0.024)	(0.022)
	Observations	3335415 3335415 3461167 3461167 323998 323998 331618 331618
	R-squared	0.217	0.217	0.217	0.217	0.169	0.169	0.169	0.169
	# Treated	67525	89986	38002	43715	6197	7491	2813	3380
	Control variables	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Table 4 :

 4 Dynamic effects of mining activities on educational IM

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Discovery Production Discovery Production Discovery Production Discovery Production
	Born 10-6 years before Disc/Prod	0.002	0.011***	-0.004**	-0.005*	0.010	-0.006	0.006	0.006
		(0.003)	(0.004)	(0.002)	(0.003)	(0.011)	(0.008)	(0.014)	(0.023)
	Born 5-1 years before Disc/Prod	0.025*** 0.035***	-0.005*	-0.006**	0.009	0.005	0.000	0.028
		(0.003)	(0.004)	(0.003)	(0.003)	(0.010)	(0.015)	(0.019)	(0.021)
	Born 0-5 years after Disc/Prod	0.032*** 0.075*** -0.014*** -0.013***	-0.004	0.009	0.032	0.020
		(0.003)	(0.005)	(0.003)	(0.003)	(0.016)	(0.020)	(0.024)	(0.020)
	Born 6-10 years after Disc/Prod	0.042*** 0.076*** -0.015*** -0.020***	-0.002	0.011	0.042	0.009
		(0.003)	(0.006)	(0.003)	(0.004)	(0.016)	(0.026)	(0.030)	(0.030)
	Born 11-15 years after Disc/Prod	0.062*** 0.153*** -0.029*** -0.028***	0.016	0.043	0.044	-0.012
		(0.004)	(0.006)	(0.003)	(0.005)	(0.019)	(0.034)	(0.030)	(0.024)
	Observations	8306024	8537407	4374423	4478390	3335415	3461167	323998	331618
	R-squared	0.269	0.270	0.134	0.133	0.217	0.217	0.169	0.169
	# Treated, born 15-11 years before Disc/Prod	60590	27285	56998	17420	26819	14564	1540	1139
	# Treated, born 10-6 years before Disc/Prod	55420	21713	42734	20391	27051	10265	1498	1130
	# Treated, born 5-1 years before Disc/Prod	54183	17231	31550	15229	27820	7903	1587	764
	# Treated, born 0-5 years after Disc/Prod	60051	22312	38694	15473	23993	12752	1602	769
	# Treated, born 6-10 years after Disc/Prod	49568	15278	29402	11164	22707	11520	2192	799
	# Treated, born 11-15 years after Disc/Prod	39014	16396	30697	10131	20825	13730	2403	1245
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Note: This table presents the dynamic effects of mineral discoveries and productions on primary (columns 1-4) and secondary/tertiary (columns 5-8) educational IM. Standard
	errors are in parentheses. Disc stands for mining discovery. Prod stands for mining. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1%
	level.

Table 5 :

 5 Income channel: parents working in the mining sector

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
	Yes Parents work in mining	-0.018*** -0.019*** -0.003* -0.005*** -0.015*** -0.016***	-0.007	-0.005
		(0.003)	(0.003)	(0.002)	(0.002)	(0.004)	(0.004)	(0.007)	(0.007)
	Yes Mining	0.029*** 0.078*** -0.015*** -0.014***	-0.007	0.010	0.032	0.024
		(0.002)	(0.004)	(0.002)	(0.002)	(0.014)	(0.026)	(0.032)	(0.044)
	Yes Parents work in mining X Yes Mining 0.022**	0.063*** -0.011**	-0.006	0.006	0.030*	0.013	0.003
		(0.010)	(0.014)	(0.004)	(0.006)	(0.010)	(0.016)	(0.018)	(0.021)
	Observations	7891058	7891058	4307002	4307002 10621699 10621699 1576361	1576361
	R-squared	0.278	0.278	0.137	0.137	0.204	0.204	0.266	0.266
	# Treated; with parents in mining	20171	20171	29589	29589	39923	39923	9837	9837
	# Treated	270002	87980	237652	106496	436000	157564	71654	36912
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Table 6 :

 6 Return to education channel: Mincer-type equation

	(1)	(2)	(3)	(4)	(5)	(6)
		LIDO Score			Wealth Index
	With Disc. Disc-B/A Prod-B/A With Disc. Disc-B/A	Prod-B/A

Note: This table presents a mincer-type equation where the effects of mineral discoveries and productions on the LIDO score (columns 1-3) and Wealth index (columns 4-6), conditional on educational attainment. Standard errors are in parentheses. Yes Mining is a dummy for district with discovery or not (columns 1 and 2) or the treatment dummy variable for either discovery (columns 2 and 5) or production (columns 3 and 6). With Disc. means with discovery. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Table 7 :

 7 Returns to education channel: primary educational IM and LIDO score, Wealth index This table presents the effects of mineral discoveries and productions as well as of LIDO score and wealth index on primary upward (columns 1-2) and secondary/tertiary (columns 3-4) educational IM. Standard errors are in parentheses. Mining is the treatment dummy variable for either discovery or production (depending on the columns). Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production.

		(1)	(2)	(3)	(4)
		Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A	Prod-B/A
	Mining	0.014** 0.118***	-0.014*	-0.003
		(0.006)	(0.009)	(0.008)	(0.018)
	LIDO score, 0-1	0.592*** 0.592*** -0.352***	-0.351***
		(0.007)	(0.007)	(0.009)	(0.009)
	Wealth index, 0-1 0.433*** 0.434*** -0.252***	-0.252***
		(0.004)	(0.004)	(0.005)	(0.005)
	Observations	1032317 1032317	369737	369737
	R-squared	0.227	0.228	0.177	0.177
	# Treated	48751	23733	15531	4664
	District FE	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes
	Note:

*Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Table 8 :

 8 Returns to education channel: effects of mineral discoveries and productions on sectoral employment

		(1)	(2)	(3)	(4)	(5)	(6)
		Agriculture	Manufacturing	Services
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A	Prod-B/A
	Mining	-0.011*** -0.010*** 0.008*** 0.012*** 0.003***	0.014***
		(0.001)	(0.002)	(0.001)	(0.001)	(0.001)	(0.002)
	Observations	7167154	7167154 7167154 7167154 7167154	7167154
	R-squared	0.659	0.659	0.145	0.145	0.220	0.220
	# Treated	335257	138082	335257	138082	335257	138082
	District FE	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes

Table 9 :

 9 Robustness check: Using different control groups

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
		Countries with mining activities	Districts with mining activities
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A	Prod-B/A
				Panel (A) Primary education
	Mining	0.027*** 0.069*** -0.013*** -0.012*** 0.045*** 0.072*** -0.012***	-0.005**
		(0.002)	(0.003)	(0.002)	(0.002)	(0.003)	(0.004)	(0.002)	(0.002)
	Observations	8226648 8458031 4320910	4424877	318826	550209	230075	334042
	R-squared	0.266	0.267	0.130	0.130	0.342	0.326	0.121	0.116
	# Treated	148633	53986	98793	36768	148633	53986	98793	36768
			Panel (B) Secondary and tertiary education
	Mining	-0.007	0.015	0.038**	-0.010	0.011	0.017	0.024	-0.008
		(0.013)	(0.021)	(0.019)	(0.024)	(0.008)	(0.020)	(0.020)	(0.024)
	Observations	3289349 3415101	321879	329499	149215	274967	10822	18442
	R-squared	0.217	0.217	0.168	0.168	0.152	0.169	0.119	0.127
	# Treated	67525	38002	6197	2813	67525	38002	6197	2813
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Note: This table presents the effects of mineral discoveries and productions on upward and downward educational IM on a sample of countries (columns 1-4) and districts (columns 5-8) with mining activities. Standard errors are in parentheses. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Table 10 :

 10 Robustness check: Inclusion of fixed effects

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)	(9)	(10)	(11)	(12)
		Upward mobility	Downward mobility	Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
						Panel (A) Primary education
	Mining	0.016*** 0.039*** -0.009*** -0.009*** 0.016*** 0.039*** -0.009*** -0.009*** 0.014*** 0.052*** -0.009*** -0.008***
		(0.002)	(0.003)	(0.002)	(0.002)	(0.002)	(0.003)	(0.002)	(0.002)	(0.002)	(0.003)	(0.002)	(0.002)
	Observations	8306024 8537407 4374423	4478390 8306024 8537407 4374423	4478390 8306024 8537407 4374423	4478390
	R-squared	0.273	0.274	0.135	0.134	0.273	0.274	0.135	0.134	0.272	0.273	0.134	0.133
	# Treated	148633	53986	98793	36768	148633	53986	98793	36768	148633	53986	98793	36768
	District FE	Yes	Yes	Yes	Yes	Yes Yes No Yes Yes No No No	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Birth Year FE	Yes	Yes	Yes Panel (B) Secondary and tertiary education
	Mining	-0.017	0.011	0.050***	-0.001	-0.017	0.011	0.050***	-0.001	-0.017	0.011	0.048**	-0.001
		(0.012)	(0.020)	(0.019)	(0.024)	(0.012)	(0.020)	(0.019)	(0.024)	(0.012)	(0.020)	(0.019)	(0.025)
	Observations	3335415 3461167	323998	331618	3335415 3461167	323998	331618	3335415 3461167	323998	331618
	R-squared	0.221	0.221	0.171	0.171	0.221	0.221	0.171	0.171	0.221	0.221	0.170	0.170
	# Treated	67525	38002	6197	2813	67525	38002	6197	2813	67525	38002	6197	2813
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes Yes No No	No	No	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Birth Year FE	Yes	Yes	Yes	Yes	Yes

Table 11 :

 11 Robustness check: Using alternative time window

	(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)	(9)	(10)	(11)

  This table presents the effects of mineral discoveries and productions on upward and downward educational IM, considering different time windows around discovery or production.

													**
		(0.002)	(0.004)	(0.002)	(0.003)	(0.002)	(0.004)	(0.002)	(0.002)	(0.002)	(0.003)	(0.002)	(0.002)
	Observations	8397851 8397851 4459701	4459701 8487171 8487171 4534408	4534408 8563949 8563949 4603751	4603751
	R-squared	0.270	0.270	0.134	0.134	0.271	0.271	0.134	0.134	0.271	0.271	0.134	0.134
	# Treated	182250	37372	128892	27622	211230	50369	154302	38299	242877	66867	180868	55795
					Panel (B) Secondary and tertiary education
	Mining	-0.003	0.026	0.039**	-0.021	-0.001	0.029	0.040**	-0.021	-0.001	0.022	0.040**	-0.011
		(0.012)	(0.016)	(0.019)	(0.023)	(0.012)	(0.020)	(0.020)	(0.023)	(0.012)	(0.019)	(0.019)	(0.022)
	Observations	3388392 3388392	329884	329884	3442816 3442816	337347	337347	3495819 3495819	343205	343205
	R-squared	0.217	0.217	0.168	0.168	0.218	0.218	0.167	0.167	0.217	0.217	0.166	0.166
	# Treated	88176	26107	7715	1948	106151	36649	9003	2871	126826	50705	11022	4475
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Note:

Table 12 :

 12 Robustness check: Use of alternative time exposition to mining activities This table presents the effects of mineral discoveries and productions on upward and downward educational IM, considering different treated group expositions. Standard errors are in parentheses. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production.

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			10 years			15 years
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-10	Prod-10	Disc-10	Prod-10	Disc-15 Prod-15 Disc-15	Prod-15
				Panel (A) Primary education
	Mining	0.022*** 0.052*** -0.008*** -0.012*** 0.005** 0.048*** -0.003* -0.013***
		(0.002)	(0.003)	(0.002)	(0.002)	(0.002)	(0.003)	(0.001)	(0.002)
	Observations	8397851 8397851 4459701	4459701 8397851 8397851 4459701 4459701
	R-squared	0.270	0.270	0.134	0.134	0.270	0.270	0.134	0.134
	# Treated	281879	65666	194290	56478	341347	90201	248730	74213
			Panel (B) Secondary and tertiary education
	Mining	0.009	0.003	0.012	0.022	0.009	-0.001	-0.007	-0.002
		(0.010)	(0.015)	(0.015)	(0.032)	(0.009)	(0.016)	(0.019)	(0.026)
	Observations	3388392 3388392	329884	329884	3388392 3388392 329884	329884
	R-squared	0.217	0.217	0.168	0.168	0.217	0.217	0.168	0.168
	# Treated	138784	38651	10596	3304	165254	51506	11988	4546
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Note:

*Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Table 13 :

 13 Robustness check: Using alternative IM definitions

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)	(9)	(10)	(11)	(12)
		All immediate older generations		Minimum parents' education		Maximum parents' education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
						Panel (A) Primary education
	Mining	0.022*** 0.070*** -0.016*** -0.008*** 0.028*** 0.067*** -0.008*** -0.006*** 0.028*** 0.070*** -0.013*** -0.012***
		(0.002)	(0.003)	(0.002)	(0.002)	(0.002)	(0.003)	(0.002)	(0.002)	(0.002)	(0.003)	(0.002)	(0.002)
	Observations	9317365 9583522 4759270	4876916 9656297 9920198 3024150	3095599 8306024 8537407 4374423	4478390
	R-squared	0.279	0.280	0.137	0.136	0.280	0.281	0.0917	0.0909	0.269	0.270	0.134	0.133
	# Treated	168029	63557	112392	41220	172451	62158	74975	28596	148633	53986	98793	36768
					Panel (B) Secondary and tertiary education
	Mining	-0.009	0.011	0.028	-0.011	-0.009	0.017	0.031*	0.011	-0.012	-0.001	0.025*	-0.003
		(0.012)	(0.018)	(0.022)	(0.022)	(0.013)	(0.021)	(0.017)	(0.032)	(0.010)	(0.006)	(0.013)	(0.008)
	Observations	4026641 4178603	381313	390657	3472544 3601346	186869	191439	3390543 3609255	330215	345236
	R-squared	0.220	0.219	0.183	0.183	0.234	0.233	0.162	0.162	0.216	0.216	0.167	0.166
	# Treated	80221	45703	7960	3549	69345	38973	4377	1842	86544	45422	7904	3240
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Table 14 :

 14 Robustness check: Using all mining sites

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
	Mining	0.014*** 0.028*** -0.008*** -0.007***	-0.012	-0.001	0.025*	-0.003
		(0.002)	(0.002)	(0.001)	(0.001)	(0.010)	(0.006)	(0.013)	(0.008)
	Observations	8432049 8797840 4485265	4679709 3390543 3609255	330215	345236
	R-squared	0.270	0.272	0.134	0.133	0.216	0.216	0.167	0.166
	# Treated	185161	64163	136094	45205	86544	45422	7904	3240
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Table 15 :

 15 Robustness check: Adding conflicts as explanatory of educational IM This table presents the effects of mineral discoveries and productions on upward and downward educational IM, adding conflicts has an explanatory variable. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
	Mining	0.028*** 0.020*** -0.016***	0.001	0.012	0.024	0.019	0.002
		(0.003)	(0.005)	(0.003)	(0.002)	(0.026)	(0.029)	(0.037)	(0.022)
	Conflict	-0.009*** -0.009***	-0.000	-0.000	0.010	0.010	-0.012	-0.014*
		(0.001)	(0.001)	(0.001)	(0.001)	(0.010)	(0.009)	(0.008)	(0.007)
	Observations	2240418	2327927	1529992	1566001 1051050 1094890	111055	115467
	R-squared	0.380	0.382	0.162	0.161	0.180	0.180	0.100	0.100
	# Treated	57972	11529	34160	21096	31019	12668	3016	2093
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Note:

Table 16

 16 This table presents the effects of mineral discoveries and productions on upward and downward educational IM across African regions. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

			: Sensitivity: African Regions
		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
	Mining	Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
	Eastern Africa	0.011*** 0.054*** -0.024*** -0.017*** -0.013*** -0.029***	0.037*	0.036
		(0.003)	(0.005)	(0.004)	(0.003)	(0.004)	(0.008)	(0.022)	(0.036)
	Northern Africa	0.039*** 0.105*** -0.008*** -0.012*** -0.016***	0.015	0.045***	0.030
		(0.003)	(0.006)	(0.002)	(0.004)	(0.005)	(0.010)	(0.016)	(0.036)
	Southern Africa	0.044*** 0.026**	-0.005	-0.008	0.048*** 0.066***	0.003	-0.056*
		(0.008)	(0.011)	(0.005)	(0.006)	(0.010)	(0.009)	(0.060)	(0.032)
	Western and Central Africa	0.078*** 0.062***	0.007	0.007	0.063*** 0.050***	-0.015	-0.063
		(0.016)	(0.017)	(0.011)	(0.007)	(0.016)	(0.018)	(0.060)	(0.058)
	Observations	8306024 8537407 4374423	4478390	3335415	3461167	323998	331618
	R-squared	0.269	0.270	0.134	0.133	0.217	0.217	0.169	0.169
	# Treated; Eastern Africa	71453	32587	35765	11765	27505	19397	1880	541
	# Treated; Northern Africa	57616	11335	45223	10666	25016	6121	2935	476
	# Treated; Southern Africa	16186	7765	12252	10160	11255	10185	888	1457
	# Treated; Western and Central Africa	3378	2299	5553	4177	3749	2299	494	339
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Note:

Table 17 :

 17 Sensitivity: Size of mineral discoveries

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
	Moderate Mining	0.011*** 0.054*** -0.024*** -0.017***	-0.013	-0.029**	0.037	0.036**
		(0.003)	(0.005)	(0.004)	(0.003)	(0.024)	(0.013)	(0.037)	(0.017)
	Major Mining	0.039*** 0.105*** -0.008*** -0.012***	-0.016	0.015	0.045**	0.030
		(0.003)	(0.006)	(0.002)	(0.004)	(0.010)	(0.047)	(0.021)	(0.032)
	Giant and Super-Giant Mining	0.051*** 0.036***	-0.003	-0.003	0.053*** 0.062***	-0.007	-0.057***
		(0.007)	(0.009)	(0.005)	(0.005)	(0.019)	(0.015)	(0.045)	(0.014)
	Observations	8306024 8537407 4374423	4478390 3335415 3461167	323998	331618
	R-squared	0.269	0.270	0.134	0.133	0.217	0.217	0.169	0.169
	# Treated; Moderate	71453	32587	35765	11765	27505	19397	1880	541
	# Treated; Major	57616	11335	45223	10666	25016	6121	2935	476
	# Treated; Giant and Super-Giant	19564	10064	17805	14337	15004	12484	1382	1796
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Table 18

 18

				: Sensitivity: Gender
		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
				Panel (A) Male
	Mining	0.027*** 0.084*** -0.016*** -0.017***	-0.006	0.017*** 0.045**	-0.024
		(0.003)	(0.005)	(0.003)	(0.003)	(0.004)	(0.006)	(0.018)	(0.026)
	Observations	5101686 5241058 2361599	2417884	2089939 2165635	190636	194782
	R-squared	0.257	0.258	0.126	0.125	0.232	0.232	0.172	0.172
	# Treated	85358	32490	51792	19482	37088	23104	3269	1553
				Panel (B) Female
	Mining	0.027*** 0.049*** -0.010*** -0.006* -0.014***	0.014*	0.029	0.011
		(0.003)	(0.005)	(0.003)	(0.003)	(0.005)	(0.008)	(0.018)	(0.027)
	Observations	3204338 3296349 2012824	2060506	1245476 1295532	133362	136836
	R-squared	0.308	0.308	0.153	0.153	0.217	0.217	0.194	0.194
	# Treated	63275	21496	47001	17286	30437	14898	2928	1260
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes

Table 19

 19

			: Sensitivity: Urban Rural residency
		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Primary education		Secondary and tertiary education
		Upward mobility	Downward mobility	Upward mobility	Downward mobility
		Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A Disc-B/A Prod-B/A
				Panel (A) Urban
	Mining	0.055*** 0.083*** -0.015*** -0.010*** -0.013** 0.020*** 0.047***	-0.022
		(0.005)	(0.006)	(0.003)	(0.003)	(0.006)	(0.007)	(0.017)	(0.021)
	Observations	2620209 2675545 2639013	2672691 1407813 1447625	258097	263176
	R-squared	0.118	0.118	0.0772	0.0766	0.156	0.155	0.151	0.150
	# Treated	31407	20106	41516	22049	23830	19390	3612	2319
				Panel (B) Rural
	Mining	0.018*** 0.060*** -0.005** -0.009***	-0.007	0.006	0.046	0.050*
		(0.002)	(0.004)	(0.003)	(0.003)	(0.015)	(0.021)	(0.030)	(0.029)
	Observations	5685815 5861862 1735410	1805699 1927602 2013542	65901	68442
	R-squared	0.290	0.291	0.152	0.152	0.230	0.229	0.208	0.208
	# Treated	117226	33880	57277	14719	43695	18612	2585	494
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes

Table B

 B

		.22: Summary statistics of Educational IM
		(1)	(2)	(3)	(4)	(5)	(6)
		Obs.	Mean	Sd	Obs.	Mean	Sd
		Panel (A) Primary	Panel (B) Secondary and tertiary
			(I) Upward mobility
			(a) Biological or step-parents
	IM (Mean) 9 258 374 0,508 0,500	12 447 352 0,204	0,403
	IM (Min)	10 727 953 0,550 0,497	13 228 050 0,221	0,415
	IM (Max)	9 258 374 0,508 0,500	12 447 352 0,204	0,403
			(b) Immediate older generation
	IM (Mean) 9 280 274 0,507 0,500	12 462 921 0,204	0,403
	IM (Min)	10 811 989 0,552 0,497	13 275 780 0,222	0,415
	IM (Max)	9 132 978 0,505 0,500	12 370 537 0,204	0,403
			(II) Downward mobility
			(a) Biological or step-parents
	IM (Mean) 4 994 345 0,099 0,299	1 805 367 0,438	0,496
	IM (Min)	3 524 766 0,064 0,245	1 024 669 0,384	0,486
	IM (Max)	4 994 345 0,099 0,299	1 805 367 0,438	0,496
			(b) Immediate older generation
	IM (Mean) 4 983 648 0,097 0,296	1 801 001 0,435	0,496
	IM (Min)	3 451 933 0,062 0,241	988 142	0,375	0,484
	IM (Max)	5 130 944 0,104 0,305	1 893 385 0,449	0,497
	Appendix C Additional stylized facts on mineral discoveries

Table C .

 C 23: Summary statistics of mineral discoveries, IPUMS countries, 1950-2000 : This table shows the average conditional district-level educational IM by country. Columns (2)-(

	Appendix D Additional stylized facts on country-level educational Figure D.13: Secondary and Tertiary level Appendix D.2 Ranking: Country-level educational IM by urban-rural res-Figure D.15: Secondary and Tertiary level
	Characteristics by African regions Eastern Africa Northern Africa Southern Africa Western and Central Africa by Size of mineral discoveries Moderate Major Giant Super-Giant by Mineral categories Gold Bulk Precious Base Metal Other Mineral Sands Uranium Total Table C.24: Composition of minerals in each metal category # of disc. Percentage 48 11,82 23 5,67 196 48,28 139 34,24 184 45,32 121 29,8 88 21,67 13 3,2 141 34,73 75 18,47 64 15,76 61 15,02 34 8,37 17 4,19 14 3,45 406 100 Class of mineral categories Composition Gold Gold Bulk Bauxite, Coal, Iron ore, Phosphate, Potash Precious Diamond, Emerald, PGE, Platinum, Ruby, Rutile, Silver Base Metal Copper, Lead, Nickel, Zinc Other Andalusit, Chromium, Cobalt, Flourine, Graphite, Lithium, Manganese, Niobium, Rare earth, Tantalum, Tanzanite, Tin, Tungsten, Vanadium Mineral Sands IM Appendix D.1 Ranking: Country-level educational IM by gender Figure D.12: Primary level 0.557 0.409 0.149 0.461 0.346 0.116 0.391 0.302 0.089 0.612 0.526 0.086 0.652 0.572 0.080 0.560 0.485 0.075 0.393 0.328 0.065 0.347 0.287 0.060 0.155 0.106 0.050 0.996 0.953 0.043 0.402 0.363 0.039 0.662 0.629 0.033 0.765 0.733 0.033 0.629 0.599 0.030 0.262 0.235 0.027 0.312 0.303 0.009 0.745 0.742 0.003 0.501 0.500 0.001 0.571 0.573 -0.002 0.967 0.970 -0.003 0.839 0.844 -0.004 0.237 0.266 -0.028 0.257 0.294 -0.036 0.435 0.472 -0.037 0.880 0.922 -0.042 0.741 0.791 -0.050 0.804 0.959 -0.155 -.5 0 .5 1 (A) Upward -Primary 0.423 0.335 0.088 0.748 0.663 0.085 0.291 0.209 0.082 0.402 0.337 0.065 0.303 0.240 0.063 0.354 0.291 0.063 0.370 0.316 0.054 0.238 0.192 0.045 0.430 0.385 0.045 0.429 0.390 0.039 0.281 0.254 0.026 0.367 0.344 0.024 0.393 0.372 0.020 0.156 0.136 0.020 0.300 0.282 0.019 0.319 0.303 0.017 0.145 0.128 0.016 0.377 0.361 0.016 0.217 0.205 0.013 0.322 0.326 -0.003 0.351 0.360 -0.009 0.211 0.231 -0.020 0.694 0.720 -0.025 0.368 0.398 -0.030 0.305 0.344 -0.039 0.212 0.251 -0.039 0.377 0.422 -0.045 0 .2 .4 .6 (A) Upward -Secondary and tertiary (A) Upward -Secondary and tertiary idency 0.859 0.819 .8 Conditional Abs. IM Education R w a n d a E g y p t L ib e r ia U g a n d a M a la w i Z a m b ia G h a n a T o g o B e n in B o t s w a n a C a m e r o o n Z im b a b w e K e n y a S o u t h S u d a n M o z a m b iq u e G u in e a S ie r r a L e o n e T a n z a n ia M a li E t h io p ia S e n e g a l B u r k in a F a s o N ig e r ia M a u r it iu s L e s o t h o S u d a n M o r o c c o S o u t h A f r ic 0.484 0.742 -0.259 0.473 0.522 -0.050 a Average Male = 0.352 ; Average Female = 0.333 Male Female Diff=Male-Female Figure D.14: Primary level 0.810 0.234 0.576 0.653 0.205 0.448 0.556 0.133 0.423 0.685 0.283 0.402 0.612 0.266 0.346 0.515 0.192 0.324 0.809 0.528 0.280 0.628 0.355 0.273 0.714 0.442 0.272 0.785 0.517 0.267 0.496 0.233 0.262 0.926 0.693 0.234 0.593 0.367 0.226 0.789 0.564 0.225 0.686 0.476 0.210 0.563 0.353 0.210 0.743 0.542 0.201 1.121 0.949 0.172 0.992 0.830 0.162 0.646 0.490 0.156 0.768 0.619 0.149 0.700 0.557 0.143 0.845 0.703 0.142 0.950 0.816 0.134 0.247 0.125 0.121 0.847 0.742 0.105 0.958 0.882 0.076 1.029 0.979 0.050 .5 1 (A) Upward -Primary 0.578 0.249 0.329 0.497 0.279 0.218 0.503 0.287 0.216 0.475 0.263 0.212 0.410 0.198 0.212 0.492 0.291 0.201 0.530 0.342 0.189 0.671 0.188 0.404 0.218 0.185 0.448 0.271 0.177 0.470 0.298 0.172 0.526 0.355 0.171 0.412 0.246 0.166 0.661 0.158 0.304 0.159 0.146 0.491 0.359 0.132 0.417 0.287 0.131 0.511 0.381 0.130 0.453 0.324 0.128 0.313 0.190 0.123 0.549 0.438 0.110 0.410 0.308 0.101 0.308 0.210 0.098 0.336 0.257 0.079 0.421 0.348 0.073 0.426 0.366 0.059 0.176 0.122 0.054 0.218 0.167 0.051 0 .2 .4 .6 .8 Conditional Abs. IM Education Conditional Abs. IM Education E t h io p ia M a la w i M o r o c c o G u in e a S u d a n Z im b a b w e R w a n d a N ig e r ia L ib e r ia G h a n a L e s o t h o U g a n d a C a m e r o o n E g y p t B u r k in a F a s o B e n in Z a m b ia K e n y a T a n z a n ia T o g o S o u t h A f r ic a S e n e g a l M a li M o z a m b iq u e M a u r it iu s a n a L e o n e S u d a n Panel (B): Downward B o t s w S ie r r a S o u t h Average Urban = 0.456 ; Average Rural = 0.305 Urban Rural Diff=Urban-Rural Country # districts mean cv # districts mean cv Benin 77 0,509 0,278 77 0,240 0,357 Botswana 21 0,924 0,119 21 -0,002 -16,700 Burkina Faso 45 0,174 0,519 45 0,399 0,416 Conditional Abs. IM Education T o g o L ib e r ia S ie r r a L e o n e Z a m b ia U g a n d a B e n in M a la w i M o z a m b iq u e S o u t h S u d a n M a u r it iu s G u in e a M o r o c c o E g y p t G h a n a M a li E t h io p ia C a m e r o o n R w a n d a K e n y a Z im b a b w e T a n z a n ia B u r k in a F a s o S u d a n S e n e g a l S o u t h A f r ic a N ig e r ia B o t s w a n a L e s o t h o Average Male = 0.558 ; Average Female = 0.545 Male Female Diff=Male-Female 0.263 0.103 0.161 0.021 -0.033 0.054 0.219 0.166 0.053 0.201 0.171 0.029 0.109 0.084 0.025 0.093 0.071 0.022 0.340 0.320 0.020 0.029 0.011 0.018 0.045 0.027 0.018 0.060 0.050 0.010 0.315 0.306 0.009 0.082 0.077 0.005 0.013 0.010 0.002 0.183 0.183 -0.000 0.169 0.171 -0.001 0.038 0.039 -0.002 0.015 0.017 -0.002 0.240 0.245 -0.005 0.245 0.256 -0.010 0.271 0.292 -0.021 0.102 0.130 -0.027 0.218 0.246 -0.027 0.561 0.607 -0.047 0.106 0.162 -0.055 0.249 0.307 -0.058 0.233 0.295 -0.062 0.310 0.380 -0.070 0.237 0.335 -0.098 -.2 0 .2 .4 .6 (B) Downward -Primary 0.390 0.318 0.072 0.163 0.095 0.068 0.229 0.171 0.058 0.420 0.375 0.046 0.384 0.342 0.043 0.367 0.329 0.038 0.277 0.246 0.031 0.400 0.371 0.029 0.598 0.584 0.014 0.282 0.275 0.006 0.419 0.427 -0.008 0.099 0.117 -0.018 0.205 0.227 -0.021 0.009 0.041 -0.032 0.435 0.474 -0.039 0.241 0.289 -0.049 0.500 0.553 -0.053 0.337 0.391 -0.054 0.394 0.449 -0.055 0.488 0.552 -0.064 0.614 0.678 -0.064 0.493 0.563 -0.071 0.381 0.461 -0.080 0.336 0.420 -0.084 0.594 0.683 -0.089 0.672 0.764 -0.092 0.290 0.403 -0.113 0.131 0.274 -0.142 -.2 0 .2 .4 .6 .8 Conditional Abs. IM Education M o r o c c o M a u r it iu s S o u t h A f r ic a Z im b a b w e B u r k in a F a s o S u d a n L e s o t h o M o z a m b iq u e S e n e g a l K e n y a C a m e r o o n N ig e r ia E t h io p ia E g y p t T a n z a n ia R w a n d a M a li Z a m b ia U g a n d a L ib e r ia S o u t h S u d a n G u in e a B e n in G h a n a S ie r r a L e o n e T o g o M a la w i B o t s w a n a Average Male = 0.362 ; Average Female = 0.388 (B) Downward -Secondary and tertiary Male Female Diff=Male-Female Source: Authors' calculations based on IPUMS dataset 0 E t h io p ia S u d a n B u r k in a F a s o G u in e a S ie r r a L e o n e M a li M o r o c c o S e n e g a l T o g o Z a m b ia M o z a m b iq u e C a m e r o o n M a la w i L e s o t h o B e n in L ib e r ia G h a n a Z im b a b w e B o t s w a n a R w a n d a U g a n d a K e n y a E g y p t T a n z a n ia S o u t h S u d a n N ig e r ia S o u t h A f r ic a M a u r it iu s Average Urban = 0.738 ; Average Rural = 0.503 Urban Rural Diff=Urban-Rural 0.003 0.012 -0.009 0.019 0.048 -0.029 0.007 0.040 -0.033 0.001 0.048 -0.047 0.064 0.127 -0.063 0.031 0.101 -0.070 -0.003 0.070 -0.073 0.062 0.155 -0.093 0.082 0.180 -0.098 0.094 0.220 -0.126 0.495 0.626 -0.130 0.074 0.214 -0.140 0.120 0.270 -0.151 0.077 0.234 -0.158 -0.022 0.136 -0.158 0.120 0.288 -0.167 0.189 0.358 -0.169 0.206 0.391 -0.185 0.255 0.485 -0.230 0.121 0.354 -0.233 0.133 0.374 -0.241 0.162 0.422 -0.260 0.161 0.442 -0.281 0.199 0.498 -0.299 0.213 0.528 -0.314 0.183 0.526 -0.344 0.122 0.555 -0.433 0.067 0.576 -0.508 -.5 0 .5 Conditional Abs. IM Education M a u r it iu s N ig e r ia S o u t h A f r ic a E g y p t K e n y a Z im b a b w e B o t s w a n a T a n z a n ia G h a n a U g a n d a S o u t h S u d a n M o r o c c o B e n in L e s o t h o C a m e r o o n S u d a n S e n e g a l T o g o L ib e r ia Z a m b ia M a la w i R w a n d a M a li G u in e a M o z a m b iq u e S ie r r a L e o n e B u r k in a F a s o E t h io p ia (B) Downward -Primary 0.639 0.611 0.028 0.046 0.123 -0.077 -0.007 0.084 -0.091 0.176 0.273 -0.096 0.101 0.198 -0.097 0.439 0.570 -0.131 0.469 0.614 -0.145 0.181 0.338 -0.157 0.271 0.444 -0.173 0.404 0.604 -0.200 0.621 0.833 -0.212 0.161 0.376 -0.214 0.443 0.658 -0.215 0.306 0.542 -0.235 0.314 0.561 -0.246 0.287 0.536 -0.249 0.280 0.530 -0.251 0.437 0.695 -0.258 0.599 0.863 -0.264 0.198 0.475 -0.277 0.307 0.587 -0.279 0.154 0.438 -0.284 0.485 0.774 -0.289 0.644 Cameroon 229 0,685 0,356 229 0,204 0,899 (B) Downward -Secondary and tertiary Egypt 236 0,793 0,149 236 0,027 1,143 0.936 -0.292 0.361 0.678 -0.317 0.335 0.684 -0.349 0.183 0.592 -0.409 0.342 0.860 -.5 0 .5 1 Ethiopia 97 0,374 0,684 95 0,336 0,575 Ghana 110 0,659 0,228 110 0,182 0,472 Guinea 34 0,357 0,320 34 0,383 0,291 Kenya 173 0,671 0,321 173 0,136 0,661 Lesotho 10 0,574 0,122 10 0,228 0,277 Liberia 47 0,346 0,310 47 0,461 0,274 Malawi 227 0,412 0,359 227 0,355 0,384 Mali 242 0,191 0,462 242 0,519 0,386 Conditional Abs. IM Education Mauritius 42 1,047 0,051 45 0,005 2,224 -0.519 S o u t h S u d a n N ig e r ia E g y p t S o u t h A f r ic a M a u r it iu s B e n in M a li K e n y a R w a n d a Z im b a b w e S e n e g a l L e s o t h o T a n z a n ia G h a n a U g a n d a S u d a n Z a m b ia L ib e r ia S ie r r a L e o n e M a la w i C a m e r o o n B o t s w a n a G u in e a T o g o M o z a m b iq u e M o r o c c o E t h io p ia B u r k in a Morocco 55 0,675 0,167 55 0,103 0,346 F a s o Average Urban = 0.328 ; Average Rural = 0.553 Urban Rural Diff=Urban-Rural Source: Authors' calculations based on Minex Consulting dataset (2019) Mozambique 144 0,279 0,457 144 0,476 0,380 Nigeria 37 0,787 0,259 37 0,057 0,772 Rwanda 30 0,500 0,143 30 0,354 0,268 Senegal 34 0,437 0,376 34 0,280 0,398 Sierra Leone 107 0,358 0,439 107 0,455 0,419 South Africa 216 0,902 0,072 216 0,033 0,658 South Sudan 72 0,141 0,803 70 0,712 0,265 Sudan 129 0,282 0,782 129 0,395 0,505 Conditional Abs. IM Education L e s o t h o B o t s w a n a B u r k in a F a s o S u d a n K e n y a T a n z a n ia R w a n d a S o u t h A f r ic a Z im b a b w e C a m e r o o n M a la w i M o r o c c o M a u r it iu s S e n e g a l U g a n d a N ig e r ia E g y p t E t h io p ia M a li M o z a m b iq u e G h a n a Z a m b ia S o u t h S u d a n B e n in S ie L e o n e G u in e a L ib e r ia Urban Rural Tanzania 113 0,859 0,140 113 0,092 0,644 Diff=Urban-Rural Togo 37 0,497 0,301 37 0,371 0,308 T o g o Average Urban = 0.116 ; Average Rural = 0.296 Uganda 161 0,656 0,200 161 0,210 0,407 r r a Male Female Zambia 72 0,605 0,209 72 0,313 0,349 Source: Authors' calculations based on IPUMS dataset Zimbabwe 88 0,999 0,103 88 0,056 0,868 Diff=Male-Female Mineral sands, Zircon Average Male = 0.177 ; Average Female = 0.180 Total 2885 0,562 0,520 2884 0,259 0,861
	Uranium	Uranium

Notes

Table E .

 E 26: District-Level Secondary and tertiary IM by country : This table shows the average conditional district-level educational IM by country. Columns

	(1)	(2)	(3)	(4)	(5)	(6)	(7)
		Panel (A): Upward	Panel (B): Downward
	Country	# districts mean	cv	# districts mean	cv
	Botswana	21	0,400 0,113	14	0,194	1,539
	Egypt	236	0,745 0,165	236	0,053	1,305
	Ethiopia	97	0,326 0,483	76	0,397	0,837
	Malawi	227	0,311 0,419	203	0,436	0,666
	Mauritius	44	0,362 0,283	41	0,161	0,617
	Nigeria	37	0,691 0,254	37	0,121	0,581
	Zimbabwe	88	0,366 0,313	74	0,529	0,561
	Kenya	173	0,395 0,299	169	0,346	0,550
	Cameroon	229	0,231 0,331	172	0,558	0,535
	Burkina Faso	45	0,170 0,195	27	0,720	0,517
	Mali	242	0,195 0,118	128	0,681	0,507
	Mozambique	144	0,261 0,190	81	0,655	0,467
	Rwanda	30	0,388 0,191	30	0,321	0,447
	Sudan	129	0,207 0,429	106	0,583	0,440
	South Sudan	72	0,155 0,262	45	0,754	0,405
	Benin	77	0,388 0,148	59	0,649	0,398
	Lesotho	10	0,307 0,124	10	0,385	0,382
	Zambia	72	0,309 0,165	68	0,511	0,372
	South Africa	216	0,438 0,168	216	0,254	0,327
	Liberia	47	0,218 0,301	47	0,672	0,310
	Guinea	34	0,292 0,181	32	0,685	0,289
	Togo	37	0,198 0,209	29	0,870	0,287
	Uganda	161	0,378 0,180	161	0,544	0,283
	Sierra Leone	107	0,135 0,197	64	0,809	0,271
	Tanzania	113	0,391 0,175	113	0,507	0,253
	Morocco	55	0,393 0,210	55	0,411	0,246
	Ghana	110	0,311 0,205	110	0,502	0,220
	Senegal	34	0,342 0,137	33	0,757	0,172
	Total	2887	0,342 0,517	2436	0,457	0,658

Notes

Table E .

 E 27: District-Level Primary IM by country and discovery

	(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)	(9)	(10)
				Panel (A): Upward			Panel (B): Downward
	Country	discovery	disc. high # districts mean cv	disc. high # districts mean	cv
	Benin	yes		3	0,35 0,38		3	0,25	0,31
	Benin	no	no	74	0,52 0,27	yes	74	0,24	0,36
	Botswana	yes		12	0,89 0,13		12	0,01	3,66
			no				yes
	Botswana	no		9	0,97 0,10		9	-0,02	-2,60
	Burkina Faso	yes		28	0,16 0,46		28	0,40	0,43
			no				yes
	Burkina Faso	no		17	0,20 0,56		17	0,40	0,41
	Cameroon	yes		13	0,73 0,31		13	0,14	0,57
			yes				no
	Cameroon	no		216	0,68 0,36		216	0,21	0,90
	Egypt	yes		3	0,78 0,03		3	0,05	0,15
			no				yes
	Egypt	no		233	0,79 0,15		233	0,03	1,16
	Ethiopia	yes		9	0,26 0,17		9	0,39	0,27
			no				yes
	Ethiopia	no		88	0,39 0,69		86	0,33	0,60
	Ghana	yes		22	0,69 0,18		22	0,18	0,35
			yes				no
	Ghana	no		88	0,65 0,24		88	0,18	0,50
	Guinea	yes		21	0,34 0,27		21	0,39	0,30
			no				yes
	Guinea	no		13	0,38 0,38		13	0,37	0,29
	Kenya	yes		8	0,65 0,14		8	0,17	0,20
			no				yes
	Kenya	no		165	0,67 0,33		165	0,14	0,68
	Lesotho	yes		2	0,54 0,16		2	0,24	0,24
			no				yes
	Lesotho	no		8	0,58 0,12		8	0,22	0,30
	Liberia	yes		6	0,37 0,14		6	0,48	0,23
			yes				yes
	Liberia	no		41	0,34 0,33		41	0,46	0,28
	Malawi	yes		5	0,44 0,23		5	0,37	0,16
			yes				yes
	Malawi	no		222	0,41 0,36		222	0,36	0,39
	Mali	yes		19	0,22 0,35		19	0,45	0,32
			yes				no
	Mali	no		223	0,19 0,47		223	0,53	0,39
	Mauritius	no	-	42	1,05 0,05	-	45	0,00	2,22
	Morocco	yes		13	0,68 0,13		13	0,10	0,26
			no				no
	Morocco	no		42	0,68 0,18		42	0,10	0,37
	Mozambique	yes		13	0,25 0,29		13	0,52	0,31
			no				yes
	Mozambique	no		131	0,28 0,47		131	0,47	0,39
	Nigeria	yes		2	0,83 0,25		2	0,04	0,77
			yes				no
	Nigeria	no		35	0,79 0,26		35	0,06	0,77
	Rwanda	yes		1	0,51	-		1	0,33	-
			yes				no
	Rwanda	no		29	0,50 0,15		29	0,36	0,27
	Senegal	yes		3	0,34 0,29		3	0,37	0,51
			no				yes
	Senegal	no		31	0,45 0,38		31	0,27	0,37
	Sierra Leone	yes		11	0,27 0,25		11	0,53	0,31
			no				yes
	Sierra Leone	no		96	0,37 0,44		96	0,45	0,43
	South Africa	yes		60	0,92 0,06		60	0,02	0,62
			yes				no
	South Africa	no		156	0,90 0,08		156	0,04	0,63
	South Sudan	no	-	72	0,14 0,80	-	70	0,71	0,27
	Sudan	yes		13	0,37 0,79		13	0,39	0,62
			yes				no
	Sudan	no		116	0,27 0,77		116	0,40	0,49
	Tanzania	yes		25	0,78 0,12		25	0,14	0,36
			no				yes
	Tanzania	no		88	0,88 0,13		88	0,08	0,71
	Togo	yes		2	0,59 0,01		2	0,35	0,13
			yes				no
	Togo	no		35	0,49 0,31		35	0,37	0,32
	Uganda	yes		2	0,72 0,11		2	0,21	0,40
			yes				no
	Uganda	no		159	0,66 0,20		159	0,21	0,41
	Zambia	yes		15	0,67 0,17		15	0,25	0,45
			yes				no
	Zambia	no		57	0,59 0,21		57	0,33	0,31
	Zimbabwe	yes		20	0,97 0,07		20	0,07	0,41
			no				yes
	Zimbabwe	no		68	1,01 0,11		68	0,05	1,02
	Total	yes	12	331	0,60 0,51	17	331	0,23	0,87
	Total	no	16	2554	0,56 0,52	11	2553	0,26	0,86
	Total All	-	28	2885	0,56 0,52	28	2884	0,26	0,86

Notes: This table shows the average conditional district-level educational IM by country and district with or without mineral discovery. Columns

Table E .

 E 28: District-Level Secondary and tertiary IM by country and discovery : This table shows the average conditional district-level educational IM by country and district with or without mineral discovery. Columns (1) gives the country name. Columns (

	(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)	(9)	(10)
				Panel (A): Upward			Panel (B): Downward
	Country	discovery	disc. high # districts mean cv	disc. high # districts mean	cv
	Benin Benin	yes no	no	3 74	0,36 0,13 0,39 0,15	yes	2 57	0,87 0,64	0,39 0,40
	Botswana Botswana	yes no	no	12 9	0,40 0,07 0,40 0,16	yes	9 5	0,21 0,16	1,66 1,23
	Burkina Faso Burkina Faso	yes no	no	28 17	0,16 0,13 0,18 0,25	yes	16 11	0,76 0,67	0,46 0,62
	Cameroon Cameroon	yes no	no	13 216	0,21 0,21 0,23 0,34	no	12 160	0,56 0,56	0,61 0,53
	Egypt Egypt	yes no	no	3 233	0,74 0,06 0,75 0,17	yes	3 233	0,06 0,05	0,02 1,32
	Ethiopia Ethiopia	yes no	no	9 88	0,25 0,07 0,33 0,49	yes	7 69	0,56 0,38	0,77 0,84
	Ghana Ghana	yes no	no	22 88	0,30 0,12 0,31 0,22	yes	22 88	0,54 0,49	0,20 0,22
	Guinea Guinea	yes no	no	21 13	0,28 0,12 0,30 0,25	yes	20 12	0,69 0,67	0,18 0,43
	Kenya Kenya	yes no	no	8 165	0,33 0,13 0,40 0,30	yes	8 161	0,39 0,34	0,22 0,56
	Lesotho Lesotho	yes no	no	2 8	0,29 0,13 0,31 0,12	yes	2 8	0,48 0,36	0,41 0,38
	Liberia Liberia	yes no	yes	6 41	0,22 0,19 0,22 0,32	yes	6 41	0,81 0,65	0,15 0,33
	Malawi Malawi	yes no	no	5 222	0,27 0,13 0,31 0,42	yes	5 198	0,58 0,43	0,22 0,68
	Mali Mali	yes no	yes	19 223	0,20 0,11 0,20 0,12	yes	13 115	0,75 0,67	0,41 0,52
	Mauritius	no	-	44	0,36 0,28	-	41	0,16	0,62
	Morocco Morocco	yes no	no	13 42	0,39 0,18 0,39 0,22	no	13 42	0,41 0,41	0,26 0,25
	Mozambique Mozambique	yes no	no	13 131	0,25 0,04 0,26 0,20	no	6 75	0,65 0,66	0,63 0,46
	Nigeria Nigeria	yes no	yes	2 35	0,80 0,21 0,69 0,26	no	2 35	0,10 0,12	0,76 0,58
	Rwanda Rwanda	yes no	no	1 29	0,36 0,39 0,19 .	no	1 29	0,24 0,32	. 0,45
	Senegal Senegal	yes no	no	3 31	0,31 0,06 0,35 0,14	yes	3 30	0,90 0,74	0,19 0,16
	Sierra Leone Sierra Leone	yes no	no	11 96	0,13 0,09 0,14 0,20	yes	6 58	0,92 0,80	0,13 0,28
	South Africa South Africa	yes no	yes	60 156	0,46 0,16 0,43 0,17	no	60 156	0,25 0,26	0,24 0,35
	South Sudan	no	-	72	0,16 0,26	-	45	0,75	0,41
	Sudan Sudan	yes no	yes	13 116	0,23 0,46 0,20 0,43	yes	12 94	0,72 0,57	0,31 0,45
	Tanzania Tanzania	yes no	no	25 88	0,35 0,07 0,40 0,18	yes	25 88	0,58 0,49	0,16 0,27
	Togo Togo	yes no	yes	2 35	0,21 0,06 0,20 0,22	yes	2 27	1,02 0,86	0,02 0,30
	Uganda Uganda	yes no	no	2 159	0,37 0,01 0,38 0,18	no	2 159	0,53 0,55	0,25 0,28
	Zambia Zambia	yes no	yes	15 57	0,34 0,18 0,30 0,15	no	15 53	0,42 0,54	0,39 0,35
	Zimbabwe Zimbabwe	yes no	no	20 68	0,30 0,11 0,39 0,32	no	16 58	0,46 0,55	0,68 0,53
	Total	yes	7	331	0,31 0,39	19	288	0,51	0,56
	Total	no	21	2556	0,35 0,53	9	2148	0,45	0,67
	Total All	-	28	2887	0,34 0,52	28	2436	0,46	0,66

Notes

  Both father/stepfather and mother/stepmother 0.038*** 0.038*** 0.038*** 0.038*** -0.012*** -0.012*** -0.012*** -0.012*** Appendix F.2 Secondary and Tertiary educational IM Table F.30: Baseline results with control variables, secondary and tertiary education Both father/stepfather and mother/stepmother 0.050*** 0.050*** 0.049*** 0.049*** -0.061*** -0.061*** -0.062*** -0.062***

		(1)	(2)	(3)	(4)	(5)	(6)	(7)	(8)
			Upward mobility			Downward mobility
		Disc-B/A	Disc-5	Prod-B/A	Prod-5	Disc-B/A	Disc-5	Prod-B/A	Prod-5
	Mining	-0.007	-0.000	0.016	0.007	0.037**	0.015	-0.010	0.007
		(0.013)	(0.011)	(0.021)	(0.020)	(0.019)	(0.018)	(0.024)	(0.022)
	Female	-0.021*** -0.021*** -0.021*** -0.021***	0.002	0.002	0.001	0.001
		(0.005)	(0.005)	(0.004)	(0.004)	(0.005)	(0.005)	(0.005)	(0.005)
	Mining HH head female	0.028*** 0.027*** 0.070*** 0.059*** -0.013*** -0.007*** -0.012*** -0.012*** 0.003 0.003 0.003 0.003 0.055*** 0.055*** 0.054*** 0.054***
		(0.002) (0.004)	(0.002) (0.004)	(0.003) (0.004)	(0.003) (0.004)	(0.002) (0.006)	(0.002) (0.006)	(0.002) (0.006)	(0.002) (0.006)
	Female Low skilled occupation	-0.037*** -0.037*** -0.038*** -0.038*** -0.003*** -0.003*** -0.003*** -0.003*** -0.050*** -0.050*** -0.049*** -0.049*** 0.093*** 0.093*** 0.091*** 0.091***
		(0.000) (0.003)	(0.000) (0.003)	(0.000) (0.003)	(0.000) (0.003)	(0.000) (0.006)	(0.000) (0.006)	(0.000) (0.006)	(0.000) (0.006)
	HH head female Medium skilled occupation	0.038*** 0.038*** 0.037*** 0.037*** 0.008*** 0.008*** 0.008*** 0.008*** -0.001 -0.001 0.000 0.000 0.050*** 0.050*** 0.050*** 0.050***
		(0.001) (0.003)	(0.001) (0.003)	(0.001) (0.003)	(0.001) (0.003)	(0.001) (0.005)	(0.001) (0.005)	(0.001) (0.005)	(0.001) (0.005)
	Low skilled occupation High skilled occupation	-0.046*** -0.046*** -0.045*** -0.045*** 0.040*** 0.040*** 0.040*** 0.040*** 0.223*** 0.223*** 0.222*** 0.222*** -0.027*** -0.027*** -0.027*** -0.027***
		(0.000) (0.006)	(0.000) (0.006)	(0.000) (0.006)	(0.000) (0.006)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)
	Medium skilled occupation Mother/stepmother	0.050*** 0.050*** 0.050*** 0.050*** -0.005*** -0.005*** -0.006*** -0.006*** 0.006** 0.006** 0.005** 0.005** -0.104*** -0.104*** -0.104*** -0.104***
		(0.001) (0.003)	(0.001) (0.003)	(0.001) (0.003)	(0.001) (0.003)	(0.000) (0.006)	(0.000) (0.006)	(0.000) (0.006)	(0.000) (0.006)
	High skilled occupation	0.151*** 0.151*** 0.150*** 0.150*** -0.039*** -0.039*** -0.039*** -0.039***
		(0.001) (0.002)	(0.001) (0.002)	(0.001) (0.002)	(0.001) (0.002)	(0.000) (0.003)	(0.000) (0.003)	(0.000) (0.003)	(0.000) (0.003)
	Mother/stepmother Household size	0.001 -0.004*** -0.004*** -0.004*** -0.004*** 0.011*** 0.011*** 0.011*** 0.011*** 0.001 0.002** 0.002** -0.030*** -0.030*** -0.030*** -0.030***
		(0.001) (0.000)	(0.001) (0.000)	(0.001) (0.000)	(0.001) (0.000)	(0.001) (0.001)	(0.001) (0.001)	(0.001) (0.001)	(0.001) (0.001)
	Urban	0.107*** 0.107*** 0.108*** 0.108*** -0.087*** -0.087*** -0.090*** -0.090***
		(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)	(0.001) (0.004)
	Household size Observations	0.000*** 0.000*** 0.000*** 0.000*** 0.000*** 0.000*** 0.000*** 0.000*** 3335415 3335415 3461167 3461167 323998 323998 331618 331618
	R-squared	(0.000) 0.217	(0.000) 0.217	(0.000) 0.217	(0.000) 0.217	(0.000) 0.169	(0.000) 0.169	(0.000) 0.169	(0.000) 0.169
	Urban # Treated	0.152*** 0.152*** 0.152*** 0.152*** -0.060*** -0.060*** -0.060*** -0.060*** 67525 89986 38002 43715 6197 7491 2813 3380
	District FE	(0.001) Yes	(0.001) Yes	(0.001) Yes	(0.001) Yes	(0.000) Yes	(0.000) Yes	(0.000) Yes	(0.000) Yes
	Observations Cohort FE	8306024 Yes	8306024 Yes	8537407 Yes	8537407 Yes	4374423 Yes	4374423 Yes	4478390 Yes	4478390 Yes
	R-squared Census-Year FE	0.269 Yes	0.269 Yes	0.270 Yes	0.270 Yes	0.134 Yes	0.134 Yes	0.133 Yes	0.133 Yes
	# Treated	148633	192236	53986	67663	98793	123151	36768	49337
	District FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Cohort FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes
	Census-Year FE	Yes	Yes	Yes	Yes	Yes	Yes	Yes	Yes

Standard errors in parentheses. * p < 0.1, ** p < 0.05, *** p < 0.01 Standard errors in parentheses. * p < 0.1, ** p < 0.05, *** p < 0.01

https://www.ipums.org/ ; https://minexconsulting.com/

The population of the 28 countries covered in our analysis represents around 75 percent of the total population in Africa. As such our results can be extrapolated to the continent.

We drop Burkina Faso (1985),Kenya (1979), Liberia (1974), Togo (1960, 1970) since they do not cover all local regions or do not have any identifier to match children to parents. Moreover, we have harmonized the countries boundaries and district names for countries such as Botswana, Burkina Faso, Ethiopia, Ghana, Guinea, Lesotho, Malawi, Mauritius, Morocco, Nigeria, South Africa, and Uganda. For Nigeria, data come from households' survey rather than census surveys, therefore the number of observations is small as compared to other countries.

We assume that primary level of education is most of the time completed for individuals above 16 years, and secondary for individuals above 25 years.

For the use of relative educational IM measures, see,[START_REF] Hertz | The inheritance of educational inequality: International comparisons and fifty-year trends[END_REF],[START_REF] Black | Recent developments in intergenerational mobility[END_REF],[START_REF] Chetty | Where is the land of opportunity? The geography of intergenerational mobility in the United States[END_REF],[START_REF] Bütikofer | Breaking the links: Natural resource booms and intergenerational mobility[END_REF],[START_REF] Azomahou | INTERGENERATIONAL MOBILITY IN EDUCATION: IS AFRICA DIFFERENT?[END_REF]. These measures are based on continuous type variables such as years of schooling or rank based on years of schooling. We rather use data on education attainment and construct absolute measures of education IM, as they are more available than years of schooling, and therefore increase the coverage of our analysis and reduce the attrition bias. Moreover, as shown by[START_REF] Alesina | Intergenerational mobility in Africa[END_REF], data on educational attainment are less subject to measurements errors and allow to identify a common reference group for children (e.g., parents without primary education completed), as compared to years of schooling.

For instance,[START_REF] Hamoudi | Endogenous coresidence and program incidence: South Africa's old age pension[END_REF] show that lower-educated children are more likely to co-reside with elderly parents as they have a lower opportunity cost of providing elderly care. See also,[START_REF] Alesina | Intergenerational mobility in Africa[END_REF] for discussion on cohabitation-selection issues.

We also verify that cohabitation rates are similar between rural and urban areas, across ages and districts with and without discoveries (available upon request).

We present the dynamics of country-level educational IM by district with and without discoveries in Section 4 where we discuss the stylized facts on both educational IM and mineral discoveries and productions.

Note: This table presents the effects of mineral discoveries and productions on upward and downward educational IM, using different sets of fixed effects reported at the bottom of the table. Standard errors are in parentheses. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

We also use the minimum and maximum for the immediate older generation as a robustness check. Similarly, to the results presented for the biological/step parents, our findings remain unchanged. The results are available upon request.

Moderate <> Major, p-value 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 Moderate <> Giant / Super Giant, p-value 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 Major <> Giant / Super Giant, p-value 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000

Note: This table presents the effects of mineral discoveries and productions on upward and downward educational IM by sizes of discoveries. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Depending on the gender

We then look at whether the effect of mining activities varies based on the gender status of individuals. The models are separately estimated for males and females. The results are reported in Table 18 for both primary education (columns 1-4) and secondary and tertiary education (columns 5-6), with male gender being in Panel (A) and female gender in Panel (B). The pvalues of the difference-in-means test between males and females are presented at the bottom of the table. Interestingly, the results in Table 18 show that the coefficient associated with mining in Panel (A) and (B) in column (1) are not statistically different, suggesting that mining discoveries affect by the same magnitude the probability of upward primary educational IM of males and females. However, the coefficient associated with mining in column ( 2) is nearly Yes Yes Yes Mean difference, p-value 1.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000

Note: This table presents the effects of mineral discoveries and productions on upward and downward educational IM by gender. Disc-B/A means that the treatment group is after the discovery and the control group is before the discovery; Prod-B/A means that the treatment group is after the beginning of production and the control group is before production. *Indicates significance at 10% level, **significance at 5% level, and ***significance at 1% level.

Depending on the urban-rural living area

We split the sample into two subsamples based on the urban-rural residency, and then run the estimates of the effect of mining activities on the likelihood of upward and downward educational IM for each subgroup, separately. The results are reported in Table 19 for both primary education (columns 1-4) and secondary and tertiary education (columns 5-6). The estimates for urban residents are in Panel (A), while those of rural residents are in Panel (B). We report at the bottom of the

Conclusion and Policy implications

This paper sheds light on the effects of mineral discoveries and productions on the educational IM on more than 14 million individuals across 28 countries and 2,890 districts. Using this large and unique dataset, we compute absolute measures of intergenerational mobility and 2) give the country and census year, respectively. Columns (3) shows the initial number of observation in IPUMS data. Columns (4) gives the number of observations with available information on district. Columns (5) gives the number of observations with available information on educational attainment and district. Columns ( 6) gives the number of observations for individuals living with at least one relative and for which information on educational attainment and district is available. Columns ( 7) gives the number of observations for individuals living with at least one biological or step-parents and for which information on educational attainment and district is available. Columns (8) gives the number of observations for individuals aged 16-50 years old and born after 1950 living with at least one relative and for which information on educational attainment and district is available. Columns (9) gives the number of observations for individuals aged 16-50 years old and born after 1950 living with at least one relative and for which information on gender, educational attainment and district is available. Columns (10) gives the number of observations for individuals aged 16-50 years old and born after 1950 living with at least one relative and for which information on residency (urban or rural areas), gender, educational attainment and district is available. Columns (11) gives the number of observations for individuals aged 16-50 years old and born after 1950 living with at least one relative and for which information on residency (urban or rural areas), gender, educational attainment, district, and other control variables is available. Columns (12) gives the final sample with immediate older generation used as reference group for individuals. Columns (13) gives the final sample with biological or step-parents (baseline) used as reference group for individuals. Columns ( 14) gives the census/survey used in the final sample.

Appendix A Sample

Appendix D.3 Dynamics of IM by districts with and without discoveries, cohorts and gender .6

Conditional Abs. IM 1 9 5 0 s 1 9 6 0 s 1 9 7 0 s 1 9 8 0 s 1 9 9 0 s * Birth Cohorts Male Female

(1) Districts with discoveries .2

.

3

.4

.5

.6

Conditional Abs. IM 1 9 5 0 s 1 9 6 0 s 1 9 7 0 s 1 9 8 0 s 1 9 9 0 s * Birth Cohorts Male Female

(2) Districts without discoveries (A) Upward -Primary .

22

.

24

.26

.

28

.

3

.32

Conditional Abs. IM 1 9 5 0 s 1 9 6 0 s 1 9 7 0 s 1 9 8 0 s 1 9 9 0 s * Birth Cohorts Male Female

(1) Districts with discoveries .

22

.

24

.26

.

28

.

3

.32

Conditional Abs. IM 1 9 5 0 s 1 9 6 0 s 1 9 7 0 s 1 9 8 0 s 1 9 9 0 s * Birth Cohorts Male Female

(2) Districts without discoveries Source: Authors' calculations based on the Demographic and Health Survey wealth index [START_REF] Rutstein | Making the demographic and health surveys wealth index comparable[END_REF], LIDO score [START_REF] Saavedra | A machine learning approach to improving occupational income scores[END_REF] Appendix F Baseline results with control variables Appendix F.1 Primary educational IM [START_REF] Rutstein | Making the demographic and health surveys wealth index comparable[END_REF], LIDO score [START_REF] Saavedra | A machine learning approach to improving occupational income scores[END_REF]