In my last blog, I began to discuss Linear Regression using weight/height data. Linear Regressions are among the simplest of models to learn and consequently are usually the first to be taught in a curriculum of machine learning. Because of it’s simplicity, regression analysis has a wide variety of applications in scientific disciplines and in business. What is Linear Regression? At it’s simplest, it is used to predict an outcome or value of a variable called the target based upon the value of another variable or variables, called predictors, upon which the target is based. If we utilize one variable…


I’ll start to discuss linear regression today by building a simple regression model. In the subsequent blog, We’ll unpack some of the results for a better understanding of what linear regressions are and how we can interpret the data.

Regressions are a way to model the relationship between features of a data set such that one feature is dependent upon one or more other features. For example, we would generally say there is a relationship between a person’s height and their weight, ie, people who are taller will generally weigh more than people who are shorter. …


You won’t always have GPS coordinates in your data set. A frequent use case might be that you have a list of addresses that correspond to other features of interest. Imagine having a list of crime locations, or addresses of people infected with COVID or rental vacancies. In order to plot these points graphically to convey something meaningful, you'll have to get the coordinates. There are different ways of doing this. Since you’ll frequently begin with a csv or spreadsheet, we’ll take a look at a relatively simple way you can do this.

As I’m sure you know, you can…


I’ll use geojson to generate data for a route I walk so that it can later be used in mapping the route using folium. Arriving at geojson you’ll see there are two panes: the pane on the left is the map who starting point is zoomed out to display in mercator projection the visible landmass of the earth. The pane on the right will display the json data for the locations you select on the map pane.

I live in Brooklyn and routinely walk around Prospect Park so I’ll take a look at that route. …


Previously I showed how you can generate a map and map a location in python using a mapping library called Folium. I wanted to get away from New York and I chose someplace about as far away you can get: the roof of the world- Lhasa, Tibet¹.

lhasa_lat = 29.654839
lhasa_long = 91.140549
Lhasa_Map = folium.Map([lhasa_lat, lhasa_long])
Lhasa_Map

If you are ever working with geographic data, you’ll find an awesome tool for visualization in the Folium library. Here we’ll demonstrate how to graph geographic locations in python from Jupyter Notebook.

First, open your Jupyter Notebook and install folium.

!pip install folium


In my previous blog, I discussed a number of places you can find data for various research projects. However, there are times where the data you need may not be easy to come by. In such cases, you can generate data. Here I will review a number of ways you might wish to do just that. I’ll start with general methods that don’t require any prior background in a coding environment and conclude with methods requiring some background in python.

There are a number of sites that offer a limited ability to create data in a pinch for free. They…


There are countless sources where one might obtain data. All of our devices and anything connected to those devices are sources of data. When employed as a data scientist, your employer may specify data sources that you are to use but oftentimes, you will have leeway to choose your sources. Here, I‘ll cover some places you wish to search for data should the need or curiosity arise.


These are difficult times for most people in the world: with the ongoing pandemic threatening people’s health & changing the way people work, with an election that has deeply polarized the nation and the world and causing a great deal of anxiety to those of us who are witnessing events as they unfold, To find oneself in a place of transition personally and professionally can be extremely challenging.

I’m hoping to provide some guidelines here for how one can undertake this professional challenge of finding a new position or a new career amidst such turbulent times I hope these reflections…


(Draft- Needs substantial editing and additional materials)

The actual program consisted of six modules of which the first module covered basic Python programming and was roughly parallel to what we had already been working on in the free online platform.

Right off the bat we were thrown into this environment an what I could tell immediately about flatiron as a school was was that it’s a place that exudes the sense of positive iti and the sense that really anybody can anybody can do this and I was so appreciative of that again because I did have a lot of…

raphael krantz

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