Skip to content
Skip to main content

About this free course

Download this course

Share this free course

Learn to code for data analysis
Learn to code for data analysis

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

2.2 My project

I’ve written up my analysis of this week’s project in the notebook you can open this in your downloaded files.

An image of an older man holding a surf board on a beach
Figure 6

The structure is very simple: besides the introduction and the conclusions, there is one section for each step of the analysis – downloading, cleaning, transforming, and merging the data, then calculating and visualising the correlation.

Open Project 4: Life expectancy

If you have time, extend my project to answer different questions or create your own project in the activity below.

Activity 1

Extend the project

Make a copy of the Project 3: GDP and Life expectancy and change it to answer one or more of the following questions:

  • To what extent do the ten countries with the highest GDP coincide with the ten countries with the longest life expectancy?
  • Which are the two countries in the right half of the plot (higher GDP) with life expectancy below 60 years? What factors could explain their lower life expectancy compared to countries with similar GDP?

    Hint: use the filtering techniques you learned in Week 2 to find the two countries.

  • Redo the analysis using the countries’ GDP per capita (i.e. per inhabitant) instead of their total GDP. If you’ve done the workbook exercises, you already have a column with the population data.

    Hint: write an expression involving the GDP and population columns, as you learned in Calculating over columns [Tip: hold Ctrl and click a link to open it in a new tab. (Hide tip)]   in Week 1.

  • Think about the units in which you display GDP per capita.
  • Redo the analysis using the indicator suggested at the end of the project notebook.

Create your own project

If you have more time, create a completely new project and choose another two of the hundreds of World Bank indicators and see if there is any correlation between them. If there is a choice of similar indicators, choose one that leads to meaningful comparisons between countries.

Look at the results you obtained and take a few moments to assess how they differ from mine.