Visualizing Household Income from Government Sources — A Guided Walkthrough | by James Koh, PhD | Mar, 2024

Editor
2 Min Read


Using python code which can be applied to your own data for visualizations specific to you

Image created by DALL·E 3 based on the prompt “Draw an image that represents household income. The image should include a house, stacks of cash on a hand, and some statistical charts.”

Are you unsure about how to navigate through the sea of data on the internet, and about what can be done after obtaining relevant data from reliable sources?

Do you wonder how your household income compares with all others across your country? (I guess at least 90% of everyone out there, regardless of profession or interest.)

If your answer to either of the above is “yes”, this article is for you!

At the end of this guided walkthrough, you will be able to obtain the following yourself. By replacing just a single variable in the code below according to your household income, as indicated by ### just replace this with your data ###, you will be able to create a chart showing your own percentile relative to households in Singapore! (And with additional work, you can replace the dataframe using data specific to your own country.)

Cumulative distribution function (on y-axis) of monthly household income (on x-axis) for years 2000 to 2023, with markers indicating the income and percentile of a household earning $2500 in 2000, increasing by $500 annually until $14000 in 2023. Screenshot by author.
Share this Article
Please enter CoinGecko Free Api Key to get this plugin works.