Step by step explanation on how EDM is represented in linear algebra and how to code it as a function in Python in just one line.

Hi everybody, in this post I want to explain my experience in figuring out how, a rather intuitive concept like that of the Euclidean…


Learn how to code a (almost) one liner python function to calculate (manually) cosine similarity or correlation matrices used in many data science algorithms using the broadcasting feature of numpy library in Python.

Do you think we can say that a professional MotoGP rider and the kid in the picture…


Understanding how the Linear Regression functions in TA-Lib Python Library

For those of you new to TA-Lib and Technical Analysis with Python, I have pasted in the following lines the introduction statement you can find in the website where the TA-Lib Python library is available for download.

So the quick…


My previous story was about the math intuition behind PCA. Today my objective is to apply those concepts to a simple use case and in particular to the part which often is overlooked being that of principal components interpretation.

As you probably know PCA is a sophisticated tool for dimensionality…


(Updated Sep.2021) Step by step intuition, mathematical principles and python code snippets behind one of the most important algorithms in unsupervised learning


If the title looks puzzling let me say that I believe that learning Python (or R) will take you to Machine Learning, but learning Linear Algebra will take you everywhere.

So going from using sw libraries to creating your stuff means moving with agility from numbers to vectors (and matrices)…


Preliminary note: This post is the result of personal study on the subject. I studied computer science years ago at Politecnico of Milano university but data, especially business intelligence, became my profession. Data science has been the next step even if my background is more on programming and IT. I…

Andrea Grianti

IT Senior Manager and Consultant. Data Warehouse and Business Intelligence expertise in design and build. Freelance.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store