Relying on the same dataset used in the linear regression from Part 1, we built a K-Nearest Neighbors predictive model in Python.
Maderas Partners sought to build a model to predict whether a person would be arrested or frisked during a stop based on the other information provided by the city. To accomplish this goal, we employed a commonly used machine learning technique called K-Nearest Neighbors (KNN)
The Difference-in-Difference (DiD) analysis is a powerful econometric tool with very practical uses. The classical use of DID is to analyze the difference between two groups after some sort of treatment.
In a recent project, the client asked Maderas Partners to run a series of calculations related to their employees’ work history. The calculations themselves were rather basic. However, the real challenge was organizing the dataset in such a way that allowed for the calculations to be run for all employees over the entire time period.