Giter Club home page Giter Club logo

delphieritas / charting-in-python-graphics-lies-misleading-visuals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msklc/charting-in-python-graphics-lies-misleading-visuals

1.0 1.0 0.0 520 KB

Visualization tells us much more information quickly than text in addition to permanent. It is an easy way to explain the long texts, numbers, correlations. But sometimes it can be used for misleading the public. In this study, the chart in today's print (13.09.2019) of "Sabah",which is one of the bestseller newspaper in Turkey, is evaluated. And explained the differences between the chart of the news and chart of the real-data in 4 head.

Jupyter Notebook 100.00%

charting-in-python-graphics-lies-misleading-visuals's Introduction

Charting in Python: Graphics Lies, Misleading Visuals

This study is an assignment of "Applied Data Science with Python" by University of Michigan. This assignment of the course draws heavily on Alberto Cairo’s book, The Truthful Art, where five qualities of great visualizations (truthful, functional, beautiful, insightful, and enlightening ) are explained. Assignment instruction specified that "locate an example of a misleading visual that uses one or more of the mechanisms for misleading that Cairo outlines in his book". So the study was taken shape from the instructions.

While making a small search in online newspapers, I saw a chart in today's print (13.09.2019) of "Sabah",which is one of the bestseller newspaper in Turkey. The chart is related to the decision of the Republic of Turkey's Central Bank's (TCMB) 'Policy Interest Rates'. We learned from the news that TCMB decreased the interest rates from 19.65% to 16.50%. But the chart doesn't show this news exactly.

The intended audience of the newspaper is the general public. But generally, some news, especially related to the economy, are announced more softly. Also sometimes, details or some parts of the news are hidden (and/or not explained clearly) deliberately. I think this chart one of the example of this "Misleading Visuals".

To understand the news correctly, firstly I visited the TCMB web sites and scraped the 'Policy Interest Rates' data which include from 2010 to today by BeautifulSoup.

After visualizing the data, differences between the chart of the news and chart of the real-data is seen clearly.

  • In x-axis of the chart does not compatible with the real-time. The time period of 24%-19.75% is more than 3 times longer than the time period of 17.75%-24%. But the reality of the "living with high-interest rates" is hidden in the chart.
  • Also because of the manipulating in the x-axis, as if understood that the peak of the interest rate (24%) continues a small time period. But in real-time, "living with high-interest rates" continued nearly a year and this period should be shown in chart clearly.
  • In chart, it is shown that there is a point (value) exist between the time period of 17.75%-24%. But in real data, there isn't any value exists between this period. With the chart, as if understood that reached the peak of the interest rates (24%) slowly. The reality of sharp increase is hidden with unreal data in the chart.
  • Lastly, while looking at the chart it is understood that with the TCMB' decrease decision the interest rates come back the normal level. Because the chart contains the last 2 years period. If looking at the timeline more widely, it is understood that the interest rates are still high.

Visualization tells us much more information quickly than text in addition to permanent. It is an easy way to explain the long texts, numbers, correlations. But like this example, sometimes it can be used for misleading the public.

Used Libraries

  • The data was scraped (collected) from tcmb.gov.tr with Python BeautifulSoup library.
  • Visualizing the result by Python Matplotlib library.

charting-in-python-graphics-lies-misleading-visuals's People

Contributors

msklc avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.