Predictive Hacks

## Choose category:

### Estimate Probabilities of Card Games

We are going to show how we can estimate card probabilities by applying Monte Carlo Simulation and how we can

### Monte Carlo Integration in Python

We will provide examples of how you solve integrals numerically in Python. Let’s recall from statistics that the mean value

### Newton-Raphson Method in Python

The Newton-Raphson Method is a simple algorithm to find an approximate solution for the root of e real-valued function $$f(x)=0$$.

### How to get Cryptocurrency prices in R

Today, we will show how you can easily get the Cryptocurrency Prices using R. We will work with the crypto

### Caesar Cipher in Python

Caesar Cipher is the most popular encryption technique where each letter in the original text is replaced by a letter

### How to get a Sentiment Score for Words in Python

For this example, we will use a Twitter dataset that comes with NLTK. This dataset has been manually annotated and

What is Market Basket Analysis Intuitively, we could say that the Market Basket Analysis is given a database of customer

### Item-Based Collaborative Filtering in Python

In another post, we explained how we can easily apply advanced Recommender Systems. In this post we will provide an

### How to run Recommender Systems in Python

A Brief Introduction to Recommender Systems Nowadays, almost every company applies Recommender Systems (RecSys) which is a subclass of information

### How to Save & Read a Pandas Dataframe Containing Lists or Dictionaries

There is a common problem when we have nested dictionaries or lists in our Pandas Dataframes. How can we save

### Python String Tutorial

Like many other popular programming languages, strings in Python are arrays of bytes representing unicode characters. However, Python does not have a character data type, a

### How to deal with Dates in Texts using Python

One of the most difficult tasks in data processing and cleansing is to handle dates. The main problem is that

### How to Apply Text Distances and Fuzzy Joins

Edit Distance for measuring the Text Distance Today we will talk about text similarities and how we can “calculate” a

### How to build Stacked Ensemble Models in R

At this post, we will show you how you easily apply Stacked Ensemble Models in R using the H2O package.

### How to determine the number of Clusters for K-Means in R

We will work with the Breast Cancer Wisconsin dataset, where we will apply the K-Means algorithm to the individual’s features ignoring the

### R: How To Assign Values Based On Multiple Conditions Of Different Columns

In the previous post, we showed how we can assign values in Pandas Data Frames based on multiple conditions of

### Pandas: How to assign values based on multiple conditions of different columns

When we are dealing with Data Frames, it is quite common, mainly for feature engineering tasks, to change the values

### Python list comprehension cheat sheet

Python’s list comprehension is a very useful asset for a programmer and a reason for us to love Python. It’s

### How to use Google Translate using Python

All of us are aware of Google Translate. Today, we will provide examples of how we can use the googletrans

### How to Impute Missing Values in R

In the real data world, it is quite common to deal with Missing Values (known as NAs). Sometimes, there is

### Web Scraping worldometers for Coronavirus

One of the most popular web pages about Covid-19 is the worldometers which provides a detailed report about Coronavirus cases