Skip to content

Michael Grogan

  • Facebook
  • Twitter
  • LinkedIn
  • Google Plus
  • Github
  • Home
  • Work With Me
  • Blog
  • Youtube Videos
  • Terms and Conditions
  • Contact Me

Tag: python

k-Nearest Neighbors: Analysis of Breast Cancer Data

October 31, 2017 Michael GroganLeave a comment
kNN

We have already seen how the k-Nearest Neighbors algorithm can be used to solve classification problems in R – the example used was the winery classification example from the UCI Machine Learning Repository. Here, let us see how kNN can […]

Continue reading »

How To Create a Twitter App and API Interface Via Python

October 18, 2017 Michael GroganLeave a comment
twitter

This tutorial illustrates how to use a Python API to connect to a Twitter account using the Twitter library. Specifically, this API allows a user to extract high quantities of data pertaining to a specific Twitter account, as well as […]

Continue reading »

psycopg2: Connect Python to PostgreSQL Database – Part II

August 6, 2017 Michael Grogan
psycopg2

In a previous tutorial, we looked at how to create a simple PostgreSQL database of temperature across different world cities. The PostgreSQL database was created through a Linux terminal, and the same was then connected to R to import data/commit […]

Continue reading »

Poisson and Cumulative Binomial Probabilities

July 1, 2017 Michael Grogan

A Poisson Distribution is a probability distribution which calculates the probability of a set of independent occurrences within a fixed time or space. e.g. Let us suppose that a prestigious college receives 1000 applications in a particular time interval. On […]

Continue reading »

Python: Implementing a K-Means Algorithm With sklearn

June 17, 2017 Michael Grogan

The below is an example of how sklearn in Python can be used to develop a k-means clustering algorithm. The purpose of k-means clustering is to be able to partition observations in a dataset into a specific number of clusters […]

Continue reading »

Machine Learning and Statistics: Recommended Texts

April 16, 2017 Michael Grogan
machine learning

For learning the latest machine learning and statistics techniques, I’ve found certain guides to be much more useful than others. The two main languages that I currently rely on are R and Python. I’ve found that R comes out on […]

Continue reading »

Implement an ARIMA model using statsmodels (Python)

April 5, 2017 Michael Grogan

In a previous tutorial, I elaborated on how an ARIMA model can be implemented using R. The model was fitted on a stock price dataset, with a (0,1,0) configuration being used for ARIMA. Here, I detail how to implement an […]

Continue reading »

MySQLdb: Connect Python and mySQL Databases Together

October 16, 2016 Michael Grogan

In a previous tutorial, we set up a financial database using a range of mySQL queries, and used such queries to create separate tables and discriminate among data in those tables. However, there are many occasions when a user needs […]

Continue reading »

Linear regression in Python: Use of numpy, scipy, and statsmodels

July 10, 2016 Michael Grogan

The numpy, scipy, and statsmodels libraries are frequently used when it comes to generating regression output. While these libraries are frequently used in regression analysis, it is often the case that a user might choose different libraries depending on the […]

Continue reading »

Normal Distributions, Monte Carlo Simulations and Random Walks

March 30, 2016 Michael Grogan

A key concept in dealing with statistical data is the law of large numbers; meaning that the more observations we have across any particular dataset, the more that the data will resemble a normal distribution where the majority of results […]

Continue reading »

Search This Website…

Recent Posts

  • k-Nearest Neighbors: Analysis of Breast Cancer Data
  • tidytext: Word Clouds and Sentiment Analysis in R
  • How To Create a Twitter App and API Interface Via Python
  • How To Integrate Shiny and R
  • kNN: K-Nearest Neighbours Algorithm in R
  • Big Data Helps You Target The Right Market
  • Why All Professional Bloggers Should Use Data Science

Categories

  • Business Intelligence
  • Data Science
  • mySQL
  • PostgreSQL
  • Python
  • R
  • SQL
©2017 Michael Grogan