# Hands-On: Calculating South America's population growth with Alphacast

Hands-On: Calculating South America's population growth with Alphacast

By Francisco Fernandez


Read more Alphacast Highlights here


South America - Demographics

Alphacast allows you to unlock the details of South America's demographics with ease. Uncover essential data and showcase trends through captivating charts, including insights into the region's most populous countries and those experiencing rapid population growth.. Data is from World Bank.

But that's not all. The World Bank data only shows you how population growth evolved in Latin America and the Caribbean as a whole. But not specifically in South America. That's not a problem because with Alphacast you can compile the data in a few steps by building South America's population growth.

Let's calculate South America's population growth with Alphacast

Step 1: Our starting point is Demographics - Global - World Bank - Demographics. Up to here, just press on Select columns and choose South American countries and the variables "Population, total" and "Population growth (annual %). Finally use the Transform Data option, that will direct you to create a pipeline.

Countries:

Sin título.png

Variables:

Sin título.png

Step 2: For the following calculations, it is necessary that each column represents a different country, so the Long to Wide option should be used. In the entity to convert just select "Country" and use the previously selected variables for the values in the columns.

Sin título.png

Step 3: To achieve the final objective, we need to know what was the weighting of each country in each year of the series. That is, how much was the percentage of the population of the country "A" in the total population of South America in the year "X". In mathematical words: (population of country "A" / total population). With 2 simple calculations, we will get it.

Calculation 1: use Calculate Variable to sum all the populations of the countries and get the total population of South America.

Sin título.png

Calculation 2: use Apply formula to divide the populations of the countries over the total population and get each weighting (apply formula, in this case, it is a useful tool to save time and not to do division by division). Now we will see new columns indicating the weighting of each country in each year. The columns will be identified by the "Weighting" at the end of the column name.

Sin título.png

Step 4: Now we are in a position to do the final step: calculate the weighted population growth of South America. To do this we must again select Calculate variable and sum the multiplication of the weight of each country (columns ended by "Weighting") with its population growth.

Sin título.png

And here's the final result!

This repository compiles the contributions of the Alphacast team on various current topics in the global economy.

Alphacast

Part of

Alphacast

Related insights