Wednesday 9 March 2022

Data Story Telling

Data STORY Telling

We know 'Patti Vada sutta Katahai'.  

AGEOLD grandma stories for kids to engage and give moral instruction. In Tamil it is well known.

ஒரு ஊரில் பாட்டி ஒருத்தி வடை சுட்டு விற்று வந்தாள். ஒரு நாள் அவ்வழியாக பறந்து வந்த காக்கா ஒன்று ஒரு வடையை தூக்கிக்கொண்டு பறந்து போய் மரக்கிளை ஒன்றில் உட்கார்ந்து கொண்டது. அந்த வழியாக வந்த நரி, வடையோடு காக்காவை பார்த்துவிட்டது; வடையைத் தான் எடுத்துக்கொள்ள ஒரு தந்திரம் செய்தது. காக்காவைப் பார்த்து காக்கா, நீ மிகவும் அழகாக இருக்கிறாய். உனக்கு குரலும் கூட அழகாக இருக்கக்கூடும், ஒரு பாட்டுப் பாடு என்றது. காக்கா தன் வாயைத் திறந்து "கா.. கா..." என்று பாட்டுப் பாடவே வாயிலிருந்த வடை கீழே விழுந்துவிட்டது. நரி வடையை கவ்வி எடுத்துக்கொண்டு போனது.

Moral of the story. If you cheat somebody, You will be cheated by some body else. 

Visually : Kids Story

Other intelligent Version of this Story.

வடையைக் காலில் வைத்தபடி பாட்டுப் பாடியது ...காகம் ஏமாறவில்லை.! நரி கேட்டது...அழகாகப் பாட்டுப்பாடினாய் இனி ஒரு நடனம் ஆடு என்று..காகம் மீண்டும் வடையை வாயில் வைத்துக் கொண்டு நடனம் ஆடியது. நரி மீண்டும் ஏமாந்தது. நரி யோசித்துவிட்டு....பாட்டும் பாடினாய்..ஆடியும் காட்டினாய், அற்புதம்...இனி ஆடலுடன் பாடலும் பாடி...ஒரு நாடகம் நடி பார்க்கலாம் என்று கேட்டது. காகம் மீண்டும் வடையைக் காலில் வைத்துக் கொண்டு,,நான் பாடினேன் ஆடினேன்...நாடகம் நடிப்பதற்கு சக்தி வேண்டும் இந்த வடையை சாப்பிட்ட பின்னர் நடித்துக் காட்டுகிறேன் நண்பனே என்றது. நரி மீண்டும் ஏமாறியது.

How to impress the kids. Like above. The same way we have to impress the audience. When we say with statistics (White lies), Many of them could not understand. 

So Hello the so called Data scientist or Data Analyst, All of you, Listen.

you have to engage target audience with story lectures for subjects with stories full of numbers, charts and action insights.

Let us see how we can, with the help of python a simple, super and popular sample case.  

Why CSK keeps Dhoni ('Thala')  as Captain.

Everybody may fight with you. BCos, in Cricket kingdom, He is 'ALMIGHTY, GOD'.

Any way, assume CSK management scientifically substantiate the decision of keeping 'Thala'  Dhoni as Captain.



Take IPL data from web site, say two columns, year and Batting average for the respective years. Let us key in any IDE like PyCharm as below:


import matplotlib.pyplot as plt

import numpy as np

# # MS Dhoni IPL Batting Average Scores Across Seasons (2010-2019) #

X = np.array([2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019])

ms_dhoni = np.array([31.88, 43.55, 29.83, 41.90, 74.20, 31.00, 40.57, 26.36, 75.83, 83.20])

plt.scatter(X, ms_dhoni)

plt.savefig('thala0.jpg')

plt.show()

Scatter Plot will show points (year, Batting Average). Hey, Super simple coding in Python. Just 5 lines of code....👌

Result:


fig, ax = plt.subplots(1, 2, figsize=(13, 6))
ax[0].scatter(X, ms_dhoni)
ax[1].plot(X, ms_dhoni)
plt.xlabel('Year')
plt.ylabel('Average')
plt.savefig('thala1.jpg')
plt.show()


Result:

Take IPL data from web site, say two columns, year and Batting average for the respective years. Let us key in any IDE like PyCharm as below:


Left Side is the same old scatter. On right, we can see Line Chart.


Let us dig further. So data with no action. Insightful Key decision Support.


With this can we or CSK management can take a decision. No. I'm possible!


Let us see the trend line (borrowed from our Statistical Teacher (Was ..Boring.. Now Pouring..). By fitting the points with curve using polyfit() function.

fig, ax = plt.subplots(1, 2, figsize=(13, 6))
fig.text(0.5, 0.04, 'Years', ha='center', fontsize=18)
fig.text(0.04, 0.5, 'Average Scores in Seasons', va='center', rotation='vertical', fontsize=18)
fig, ax = plt.subplots(1, 1, figsize=(10, 8))
z = np.polyfit(X, ms_dhoni, 1)
p = np.poly1d(z)
plt.plot(X,p(X),"r--")
plt.xlabel('years')
plt.ylabel('Batting Average')
plt.savefig('thala2.jpg')
plt.show()


Video Link 


Result:


Let us overlap the line with trend line.


plt.plot(X, ms_dhoni)
plt.savefig('thala3.jpg')
plt.show()


Result

Eurekha.?! The above graph shows some thing...


Teacher reminded me in Stat Class . Positive Slope 👆->


Good Trends-> Improvement ✌; Here Better Batting Average for Dhoni 'Thala'...

The Decision taken by CSK management is perfectly right㊣ one.. 
[Whisper💪 --->.U need stat, Plot... to say this ?. Funny?--]


So with data, with some useful visualization of perfect graphs, we could communicate with  actions and insights.


Data storytelling is the ability to effectively communicate insights from a dataset using narratives and visualizations. It can be used to put data insights into context for and inspire action from your audience.


Wish you Good Luck CSK for forth coming IPL Seasons.💪 Like this we can use mere numbers to visual pleasure so that the audience will immerse and understand the key insights behind the data.


Happy Open and Distance Learning with AMET-ODL.👦👧

No comments:

Post a Comment

Making Prompts for Profile Web Site

  Prompt: Can you create prompt to craft better draft in a given topic. Response: Sure! Could you please specify the topic for which you...