Sunday, December 26, 2021
The abundant unused love
Friday, November 26, 2021
The beauty of Impermanence.
Margazhi is a Tamil month. Its considered auspicious and temples will be busy throughout the month. We used to wake up to devotional songs from the speakers, piercing our ears, from a temple near our home at around 5 30 am. My cousins and I, would get up, brush our teeth and rush to the temple to get "sakkara pongal", a never to be missed, delicious food given as prasatham. My great grand parents typically started their day with prayers and would draw three lines with ash on our foreheads too, murmuring some blessings. Apart from that, I don't remember being religious or devotional when I was young. I grew up mostly agnostic of God. But my mother's illness made me feel helpless and so I prayed, wishing He would save her miraculously as often told by religions. Unfortunately, the miracle didn't happen and I lost the last bit of faith in God.
The incident shook my reality and kind of threw me off from everything I believed. Not just in God and religion but others like rituals, festivals, culture, marriage, morality and values. After a period of grieving, I realized life doesn't have any intrinsic meaning and I might die anytime. Hence, I turned into a hedonist and an atheist, a staunch one at it. The only thing I believed was "Happiness and compassion". I did everything that I have only wished doing so far. Indeed it was refreshing, life felt exciting and I was happy. But it didn't last long. I was soon bored. Then started bouts of depression and anxiety, on and off. I had to distract constantly with one thing or the other, to keep life going. But it wasn't easy. At some point, there was nothing that would bring me happiness nor joy. I started questioning the purpose of my life and everything felt pointless. I was desperate but nothing changed for years. I felt something was missing in my life and content was a rare rare feeling,, even though I had every comfort. But I looked around me and I can say no one was happy with what they were doing, how they life was or their relationship was. There was suffering everywhere and only made me think why endure this. We dont stop there, we bring lives into the world, only to see them go through the same. But most of my friends carried on saying its how their fate is. Ahh. I wished I believed in fate or in God or had faith in something like astrology, u know just to feel a little secured.
Google and reddit told me I was going through an existential crisis and so I thought spirituality might offer some insight. The religion I was born into always spoke about supernatural powers and it felt like bed time stories for adults and even other religions were not very different. To be honest, I have felt religions didn't do any good for the humanity, in fact it only made it worse by encouraging fanatics and fascists'. To be honest, I dismissed anything to do with religion or rituals. In the core of my heart, I know I cant walk that path back.
So the next stop was philosophies. Most of them agreed life was miserable and meaningless and we cant do much about it. Accepting this somehow brought some relief to me. I turned into a Nihilist which I believe I was since long before I know the term. If this is how its going to be, then I thought I should learn to deal with it. I read about how mind works and took classes on human psychology. It got better, Forming habits and making routines helped a lot. I thought "Of course, life is pointless but lets at least try to be healthy and make it painless".
If I have to be honest, my days still varied from "what's the point" to "hmmm, not bad". But never contented and happy. So my search still continued. Meditation was slapped onto our face by every self help page and books. Meditation is still sold as a way to motivate, achieve our goals and stay focused, which I was not very keen. But still meditated as it was advocated as an anti depressant. In between all this, I got in touch with my old friends who were into meditation and Buddhism, who helped me see the real deal of meditation. This was a important turning point.
I started reading about Buddhism. To my surprise, it was the closest religion to rationality one can ever find. There is no supernatural stories nor stories to terrorize you into following it nor to keep in check.
Western science is advanced, I agree but it is mostly anatomical. It doesn't have much to say about why we feel the way we feel or why some are "too good to be true" kinds while some are crazy enough to shoot at strangers. Science is way behind when it comes to psychology. While in east, there was not much anatomical studies (We have Siddha and Ayurveda. Unfortunately it didn't live up to the modern science due to constraints) but the focus on mind and spirituality had really flourished.
Buddhism speaks about the nature of world (Dhamma) that all life is suffering and it is caused by desire and ignorance and it can be ended by following a certain path. He has detailed the problem of life, and what causes it and there is a solution to it and he has charted a pathway for it. He has spoken about envy, desire, loneliness, boredom, loss, attachment as the major cause of suffering. I was awed. 2500 years ago, he has spoken about how mind works in such detail, that science is still struggling to figure out.
I also found, the real purpose of meditation is not just to be more focused or less depressed, although we could still reap these benefits. Meditation is not just avoiding thoughts. Meditation is focusing on an object without getting distracted but not just that, though we start there. Its about being present in the moment but not just that. Its about being present in the moment and skillfully investigating the nature of our mind. Meditation is a tool to see a different perspective of reality, that every moment, every thing is constantly undergoing change. We all know this as a matter of fact, but to see it and experience it, we need to meditate and calm our mind to notice. Not just an hour or two. Not by starving or becoming a monk but by being mindful all the time, every waking moment. By understanding impermanence, we can respond rather than react to situations. I believe this could solve a lot of problems.
I am still an amateur in meditation and spirituality but I do relate to a lot of things said in Bhuddism and I kind of feel this is the path for me. May be its just the other side looks green now and not sure what it will hold for me when I arrive. I do wonder if that is real and green, then is our reality which we are living right now, a dream? But one can only find out by walking the path. Honestly hoping the other side turns out to be green.
Tuesday, November 23, 2021
Surprise! Surprise!!
Ladies and Gentlemen, looks like not everyone get depressed. Looks like not everyone will understand what it is like to be depressed. Ahh! Now I see why the conversation I had with my friend about anxiety and depression felt like different species shouting at each other in their own language.
I have always felt like life was pointless and there is no meaning to enduring all the suffering in the name of living. I have always been a Nihilist. No Gods, godmen or anything for that matter helped me change that view of mine. I have had my good vibrant days but those days look like eons ago and rare recently. The joy of living has drained from me. I have been assuming that all adults are naturally downers like me. To my surprise, I found out its not the case. Looks like most of the people are enjoying their lives. Of course, a little ups and downs here and there but overall they are driven by goals, ambitions, love and family. Even during hardships, these people are doing better than what I do on my best day. :P
Oh, I envy these people. How nice it would be just to be joyful without any efforts? How fun it would be just to be positive and driven all the time? I want to meet one such happy soul and want to bask in their joy and happiness just to get a hang of it. To be honest, I have met such people and have only been judgmental of them. They appeared fake or superficial to me without any depth. May be I should be more open, welcoming and stop smirking at them so much ;).
So I am trying my best, checking out everyone on the self help list of "how to be happy and joyful in 30 days". Meditation? Walking? Nature? Travel? You name it, I have done it. Definitely seeing some change. But the effort I have to put unlike these naturals, make me kind of "what the". But, but, but, we cant give up on ourselves, can we? I hope I will reach that place someday. See you all naturals soon.
Monday, November 22, 2021
Who are we?
Who are we? We probably will answer with our name, along with our parent's name or the education we got or the work identity or the religion or the nationality. But really, who are we without these tags. Nothing?, Everything? We always identify ourselves with the body we have, the relationships we have, the emotions we have, the likings and aversions we have. We are what we have. If so, aren't we all keep changing all the time? We get old, relationships change, our emotions change and our likings and aversions too change over time. If so, which us is the real us?
Irrespective of everything around us and including us are changing, the only thing we have with us all the time is our mind. Our mind is where we live and where everything and anyone is given any meaning. So the better answer to who we are would be " Our own mind". Is it not?
Sunday, November 21, 2021
Earliest memory
Hey people. I wish to know what is the earliest memory you have of yourself. I mean memory of your youngest self. Pls comment.
Monday, November 15, 2021
Note to self
Tuesday, November 9, 2021
Road not taken
Am I living in a dreamland? While the whole world is striving to make money and achieve goals, I feel I am just day dreaming and living a life far from reality. Even though I don't want to participate in the rat race, the question "am I doing enough? " lingers on my mind. If survival of the fittest is true, ain't I doing just the opposite? Not fighting enough. Not trying my best. With this attitude I am afraid what ideas I will pass on to my daughter.
Yet I console myself saying I have taken the road less travelled. With lethargy, I am not sure if I will make it to the destination. Even if I make it, will I like what I will find there? What if I am proven wrong? What if the society was right all along? I can only find out when I arrive. I wish I can keep up the drive. I wish I don't spiral down every other week. I wish someone tells me I am not just day dreaming. I wish I could meet someone who has all the answers.
All I have now is me and I have to keep trying. I hope I will have all the answers one day and be the hope someone is looking for.
Wednesday, October 27, 2021
What is reality?
I was on this trip. I saw a monkey feeding its infant. There was another monkey around who kissed the infant and threw its arms around. After a while, they dispersed and were their things like climbing trees and looking for food and just playing with random things and hanging around and chilling with other monkeys. Made me wonder, what we humans would be doing now, had we not developed the cognitive skills? May be we will still be doing the same. A realization hit me. How everything that’s been taught to us from the young age, everything we believe, everything we do and want to do are all social constructs. Right from language, money, time, society, government, god, what is right and what is not, what is respected and what is cringey? Every single thing was an idea born in some brilliant mind either to solve a problem or for survival. Its astonishing to think how we (at least the majority) don’t question any of these and believed almost everything that were told to us. I know we are changing and question a few of these constructs now. But what change will it bring to the human mind when it sees none of these are real? Not just one, what if a large population stops believing in money, saving for the future, the respect that money brings? How differently will they live after? Will we live like monks? Isnt that again a social construct?
I wonder if constructs gives us some kind of blueprint for the otherwise senseless lives. If not for these constructs, will our lives turn chaotic and we may go back being barbaric? How will we build or project our images?
Thinking about this, makes me wonder if this is all man made, what is the reality?
Wednesday, February 3, 2021
Descriptive statistics
Types of data:
There are two types of data.
- Qualitative data
- Quantitative data
Qualitative data(categorical data):
- Nominal data: Nominal attributes are those qualitative attributes which there is no any natural order that the attributes can take.
- Ordinal data: Ordinal attributes are those qualitative attributes which there is a natural order that the attributes can take.
Quantitative data:
- Discrete data: Discrete attributes are those quantitative attributes which can take on only finite number of numerical values(Integers).
- Continuous data: Continuous attributes are those quantitative attributes which can take on fractional values(Real numbers).
How to describe Qualitative data?
- How many red color shirts in the catalogue?
- How many times does LWB appear?
- How many kharif crops are there in the data?
Here, the horizontal axis is the categorial attribute and its frequency is mapped along the Y axis. The height of the bar is proportionate to the the count.
Frequency plots- Long tailed distribution:
As shown in the above graph, a long tailed distribution has,- A large number of tall bars at the beginning.
- A large number of short bars at the end.
- Very common in real world scenarios.
Frequency plots - Uniform distribution:
Relative frequency tables:
Grouped frequency plots:
Till now, we had one data set and were plotting the frequencies for that set. Suppose if I want to compare two data sets. If I have farming data for two or three consecutive years and I want to find if the farming pattern has changed over the years, I go for grouped frequency plots as shown below.How to describe Qualitative data?
- What would be the histogram of sachins score would look like?
- Where would the tallest bar be?
- Would there be some regions along the x- axis which would have a bar height of 0?
Surprisingly the tall bars are at the beginning indicating he has scored more low scores. There are blank regions along the x-axis.
- Too many unique values along the x- axis.
- How many times was he dismissed in his 90s or single digits? Its difficult to answer these questions. And we are not keen about how many times he scored 40?
How to choose the right bin size?
Relative frequency histograms:
Frequency Polygons:
- We individually have to check different charts for each dataset which is cumbersome.
- We can overlap charts but its hard to distinguish between individual histograms.
- We can draw grouped bar charts but we will lose the overall trend.
Frequency polygons for continuous data:
- These are similar to histograms but has more details in the bars. With the first digit of the value as the stem and remaining digits as leaves.
- As the number gets larger, we take two, three digits as stems. This is more like choosing the Bin size.
- It is not useful if the dataset is large and it is efficient for small data sets as its easy to see the patterns.
- It is good to compare two datasets side by side.
- Can be done for continuous data by rounding the number.
Monday, February 1, 2021
Statistics
Statistics in Data science:
What is statistics?
How to select a sample?
How to design an experiment to collect data?
How to describe and summarize data?
(Relative) Frequency charts(Relative) Frequency polygonsHistogramsStem and leaf plotsBox plotsScatter plots
Measures of centrality and spread
Why do we need probability theory?
How do we give guarantees for the estimate made from the sample?
Point estimatesDistributions of sampling statisticsInterval estimates
What is hypothesis and how do we test it?
How to model relationship between the variables?
Estimating parametersEstimating confidence bands
Measuring goodness of fit.
How well does the model fits the data:
Determine the goodness of fitDetermine if two variables are independent
We will be covering the below topics in the next chapters.
Engineering Data Science systems
Systems thinking:
Engineering aspects of Data Science:
This is a way of thinking of systems as encompassed and global rather than focusing on one particular issue. Suppose if we have to do a sort. we could use the bubble sort algorithm but it doesn't take advantage of the caches. Rather we can use the quick sort which uses the cache to sort as thus makes it more efficient. Hence while building a system always see the larger picture rather than the particular issue.
In data science, systems thinking need Domain knowledge, Hacking skills and Math and Stats.
Roles involved in Data Science:
To have system perspective of data science, one needs business knowledge, programming, statistics and Communication. Data analyst knows the Business knowledge, statistics and communication. Research analyst knows Communication, Statistics and programming.
Processes involved in Data Science:
- Process
- Programming.
So to become a data engineer, the person should know not just the programming, but also the process.
Process :
Process has two components.1. Flow of steps (What are the steps I take?)
2. Agile improvement. (How to improve each step in an agile way?)
One such process followed in data science is CRISP-DM.
CRISP-DM:
1. Business understanding. One needs to understand the context one is working on and should be able to specify the problems we are trying to solve.
2. Data understanding. What data do I have? will this solve the problem I have?
3. Data preparation.
4. Data modelling. How do I model? How do I analyze the hypothesis?
5. Evaluate the model.
6. Deploy the system.
All the steps in the process are iterative and repeated a lot of times till we achieve the expected output. Data science follows MVP where we build a simple complete system and build/add up on the existing system iteratively. This is agile improvement.
Programming tools:
No code environments like IBM Watson, Amazon Lex. Paid interfaces that anyone can use to analyze data.
Spreadsheets and BI tools like Microsoft Excel, Google sheets, power BI, Tableau.
Programming languages like Weka, MATLAB, Mathematica, Python and R.
High performance stacks like Hadoop and Spark.
Why Phython?
1. Python is beginner friendly
2. Python is increasingly the popular choice for data science
3. Python is good for production and planning
4. Availability of open source libraries which are used in Data science
5. Python is cool beyond the data science. eg as a script language, web applications. programming IOT devices.
Disadvantages:
Python is a interpretable file. Can make it slower.
Sunday, January 31, 2021
Introduction to Data Science
What is Data Science?
As Data science is an assortment of several tasks and attention of tasks depend on the application, definition varies largely. The data science tasks include,
- Collection of data
- Storage of data
- Processing of data
- Description of data
- Modeling of data
Collection of data:
- the question on which the data scientist is trying to answer.
- the environment the data scientist is working.
Storing Data:
|
Relational
Database |
Data
warehouse |
Data lakes |
|
Structed data |
Structured data |
Un-structured
data |
|
Optimised for
SQL queries |
Curated data |
Un-curated
data |
|
|
Optimized for
analytics |
|
Programming and EngineeringKnowledge of Relational databaseKnowledge of NoSQLKnowledge of data warehouseKnowledge of data lakes(Hadoop)
Processing Data:
1) Data wrangling/Munging:
Wrangling involves extracting, transforming and loading data from an external source to the organizational database. Suppose the book store wants to store the data of the courier service details which is outsourced. The formats which the courier service uses may be different from the book store database. Say the courier service stores its data in Json files (which is a semi structured file) and the book store, stores it in relational database. Hence the data has to be extracted from json file and transformed into the format of the organizational database and loaded into it. This is called Wrangling or Munging.
2) Data Cleaning:
- Fill the missing values(by the mean of the column)
- Standardize keywords. Suppose someone entered 'half' instead of 'half sleeve'. Replace with the correct word.
- Correcting the spelling errors.
- Identify and remove outliers.
3) Data Scaling, Normalizing and Standardizing:
Scaling:
Kms to MetersRupees to Dollars
Normalizing:
Converting the data to zero mean data
Standardizing:
Standardize values between 0 to 1. Uniformize the details.
If data processing is to be performed on Big data (on millions of rows of data), then performance becomes a key consideration. So we distribute the data processing among different processors and aggregate the results. This is called as distributed processing. Hadoop (map reduce) allows to deal with the large amount of data efficiently.
Skills required:
Programming skillsHadoopSql and NoSql databasesBasic statistics
Describing data:
1) Visualizing:
Representing data in graphical form as it will be easy to draw insights from itBar chart, scatter plots, grouped bar charts are example of graphs
2)Summarizing data:
Mean, median, mode and variance. These numbers are important as it gives an idea of typical data.Skills required:
StatisticsPythonRTableuExcel
Modelling:
Statistical modelling:
- Modelling underlying data distribution.
- Modelling underlying relations in data (between various variables).
- Formulate and test Hypotheses.
- Give statistical guarantees.
Algorithmic Modelling(Machine Learning):
- Formulate f using data and optimizing techniques
- For the new patient plug in the value of x to get the value of y.
- Focus on prediction(dont care about underlying phenomena)
|
Statistical Modelling |
Algorithmic
modelling |
|
Simple,
Intuitive models |
Complex, flexible
models |
|
More suited
for low dimensional data |
Can work with
high dimensional data |
|
Robust
statistical analysis is possible |
Not suitable
for robust statistical analysis |
|
Focus on interpretability |
Focus on prediction |
|
Data lean
models |
Data hungry
models |
|
More of
statistics |
More of ML,
DL |
|
Linear regression, Logistic regression, Linear
discriminant analysis |
Linear regression, Logistic regression, Linear
discriminant analysis Decision
Trees, K-NNs, SVMs, Naïve bayes, Multi layered neural networks. |
When you have a large amount of high dimensional data and you want to learn very complex relationships between output and input using a specific class of complex ML models and algorithms collectively referred to as Deep Learning.Skills required:
Inferential statisticsProbability theoryCalculasOptimization algorithmsML and DLPython packages and frameworks(numpy, scipy, scikit learn, TF, pytorch, keras)
Artificial Intelligence:
problem solving:
No data and no modelling. Here we build a system to solve a problem with simple rules. Like a maze game.
Knowledge representation and Reasoning:
No data and no modelling. Here we build a system to solve a problem with complex rules based on the knowledge and reasoning.
Decision making:
Expert systems are systems created based on rules giving by field experts and rules encoded using knowledge representation. The execution of rules and reasoning done by a program. The drawback in expert systems is it doesn't work if the rules are complex or the rules are inexpressible or the rules may be unknown. So the alternative approach is learning from large amount of data. i.e. Machine Learning. Here we intersect with Data science. When you have a large amount of high dimensional data and you want to learn very complex relationships between output and input using a specific class of complex ML models and algorithms collectively referred to as Deep Learning. Here again we intersect with Data science. Reinforcement Learning where the environment is dynamic, Information is partial, decision making is sequential, No explicit supervision at each step, One- Off rewards from the environment (chess match), the decision is made by learning from large data. Hence we intersect with Data Science.
So this data driven part of AI intersects with Data science.
Descriptive statistics describes data (for example, a chart or graph).
Inferential statistics allows you to make predictions (“inferences”) from that data.














