Skip to content
Ben Alex Keen
  • Home
  • About
  • Blog
Menu Close
  • Home
  • About
  • Blog

Python

  1. Home>
  2. Python>
  3. Page 3

Working with timezones in python

  • Post author:Ben Keen
  • Post published:27th May 2018
  • Post category:Python

Working with timezones in python This very short post looks at converting dates between timezones. The most prevalent library for timezones in python is pytz, which can be installed by:…

Continue ReadingWorking with timezones in python

BG-NBD Model for Customer Base Analysis in Python

  • Post author:Ben Keen
  • Post published:26th April 2018
  • Post category:Python

BG-NBD Model for Customer Base AnalysisIntroductionIn this post we will use python to replicate the BG-NBD (Beta Geometric Negative Binomial Distribution) model that is described in the paper “Counting Your…

Continue ReadingBG-NBD Model for Customer Base Analysis in Python

Using Azure Cognitive Services to Caption Video

  • Post author:Ben Keen
  • Post published:10th April 2018
  • Post category:Python

Using Azure Cognitive Services to Caption VideoIn this post we will explore the use of Microsoft Azure Cognitive Services to caption video images caught from a webcam in real time.…

Continue ReadingUsing Azure Cognitive Services to Caption Video

Creating graphs using Flask and D3

  • Post author:Ben Keen
  • Post published:21st October 2017
  • Post category:Javascript/Python

Creating graphs using flask and D3There are some great libraries out there to help you get up and running quickly with interactive JavaScript graphs, including C3, NVD3, highcharts and plotly.…

Continue ReadingCreating graphs using Flask and D3

KDE and violin plots using seaborn

  • Post author:Ben Keen
  • Post published:7th September 2017
  • Post category:Python

KDE and violin plots using seabornIn this post we're going to explore the use of seaborn to make Kernel Density Estimation (KDE) plots and Violin plots. Both of these plots…

Continue ReadingKDE and violin plots using seaborn

Discrete Probability Distributions (Bernoulli, Binomial, Poisson)

  • Post author:Ben Keen
  • Post published:6th September 2017
  • Post category:Python

Bernoulli and Binomial DistributionsA Bernoulli Distribution is the probability distribution of a random variable which takes the value 1 with probability p and value 0 with probability 1 - p,…

Continue ReadingDiscrete Probability Distributions (Bernoulli, Binomial, Poisson)

Gradient Descent for Linear Regression

  • Post author:Ben Keen
  • Post published:9th August 2017
  • Post category:Python

Gradient Descent for Linear Regression In this post we'll explore the use of gradient descent to determine our parameters for linear regression. For simplicity's sake we'll use one feature variable.…

Continue ReadingGradient Descent for Linear Regression

Comparative Statistics in Python using SciPy

  • Post author:Ben Keen
  • Post published:1st June 2017
  • Post category:Python

Comparative Statistics in Python using SciPy One-Sample T-TestWe use a one sample T-test to determine whether our sample mean (observed average) is statistically significantly different to the population mean (expected…

Continue ReadingComparative Statistics in Python using SciPy

Basic Statistics in Python

  • Post author:Ben Keen
  • Post published:1st June 2017
  • Post category:Python

Basic Statistics in Python Let's create a dataset to work with and plot a histogram to visualise: In [1]: import numpy as np from scipy import stats import matplotlib import matplotlib.pyplot…

Continue ReadingBasic Statistics in Python

Random Forests in python using scikit-learn

  • Post author:Ben Keen
  • Post published:31st May 2017
  • Post category:Python

Random Forests in python using scikit-learnIn this post we'll be using the Parkinson's data set available from UCI here to predict Parkinson's status from potential predictors using Random Forests. Decision…

Continue ReadingRandom Forests in python using scikit-learn
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Go to the next page
© Ben Alex Keen