Data Visualization

How to Develop LARS Regression Models in Python?

What is LARS regression? Regression is the analysis of how a variable (the outcome variable) depends on the evolution of other variables (explanatory variables). In regression, we are looking for the answer to the question of what is the function that can be used to predict the value of another variable Y by knowing the …

How to Develop LARS Regression Models in Python? Read More »

bootstrap_plot() – Pandas Plotting Module

A bootstrap plot is a graphical representation of uncertainty in a characteristic chosen from within a population. While we can usually calculate data confidence levels mathematically, gaining access to the desired characteristics from some populations is impossible or impracticable. In this case, bootstrap sampling and the bootstrap plot come to our aid. This article will …

bootstrap_plot() – Pandas Plotting Module Read More »

Analyzing News Articles with Newspaper3k, TextBlob, and Seaborn

In this final installment of my series on Newspaper3k, we will see the real possibilities of what we can do after scraping massive amounts of news articles.  To demonstrate data will be collected from 3 popular American news websites for a full year, from September of 2020 to August of 2021.  We will analyze articles …

Analyzing News Articles with Newspaper3k, TextBlob, and Seaborn Read More »

Plotting a Load-Duration Curve with Python

You can check out the code in this article in the interactive Jupyter notebook here (Google Colab). Introduction A popular query in Google is about load-duration curves. Some of the questions are: What is a load-duration curve? What is the importance of a load-duration curve? How do you calculate a load-duration curve? What is the …

Plotting a Load-Duration Curve with Python Read More »

Bollinger Bands Algorithm – Python Binance API for Crypto Trading

A Bollinger Band consists of three lines: a simple moving average, an upper band, and a lower band. The assumption is that if the real price crosses over one of the bands, this can be seen as a signal to trade in or our of a given asset. For cryptocurrencies, breakout trades are more frequently …

Bollinger Bands Algorithm – Python Binance API for Crypto Trading Read More »

The Pandas Plotting Module: Generating Andrews Curves

Andrews curves are used to identify structure in a multi-dimensional data set. By reducing complex data to a two-dimensional graph, we can more easily identify variables in the data that are associated, form clusters, or are outliers. We’ll show you how to plot such graphs, but before we get to that, let’s ensure every reader …

The Pandas Plotting Module: Generating Andrews Curves Read More »

How to Change the Figure Size for a Seaborn Plot?

Seaborn is a comprehensive data visualization library used for the plotting of statistical graphs in Python. It provides fine-looking default styles and color schemes for making more attractive statistical plots. Seaborn is built on the top portion of the matplotlib library and is also integrated closely with data structures from pandas.                                                             How to change …

How to Change the Figure Size for a Seaborn Plot? Read More »

Smoothing Your Data with the Savitzky-Golay Filter and Python

This article deals with signal processing. More precisely, it shows how to smooth a data set that presents some fluctuations, in order to obtain a resulting signal that is more understandable and easier to be analyzed. In order to smooth a data set, we need to use a filter, i.e. a mathematical procedure that allows …

Smoothing Your Data with the Savitzky-Golay Filter and Python Read More »