Coder Social home page Coder Social logo

monthly_armed_robbery's Introduction

Time Series Analysis of Monthly Robberies in Boston (1966-1974)

Project Overview

This project focuses on analyzing the monthly robbery incidents in Boston from 1966 to 1974 using a manually configured ARIMA model. The aim is to identify patterns and make future predictions based on historical data. The project model is saved at models/.

Dataset

The dataset consists of monthly records of robbery incidents in Boston between 1966 and 1974. The data is sourced from and is stored in the file data/Robberies.csv.

Project Structure

The project is organized into the following directories and files:

.pickle_files/
    
data/ 
    nb_data/
        
    Robberies.csv
        
    armed_robberies.zip
        
images/
    
model/
    
notebook/
	
README.md

Installation

Clone the repository:

git clone https://github.com/kanish-h-h/monthly_armed_robbery.git
cd monthly_armed_robbery

Pickle file

model.pkl can be found at folder .pickle_files/ for storing the model as pkl.

Usage

  1. Data Preparation: Start by running the Armed_Robberies_in_Boston.ipynb notebook to clean and prepare the dataset and converts those into datasets.csv, validation.csv and stationary.csv.
  2. ARIMA Modeling: Use the Armed_Robberies_in_Boston.ipynb notebook to configure and train the ARIMA model on the prepared data over manually configured.
  3. Fine Tuning: Fine tuning is done via Grid Search method for finding the optimal p, d and q, for the ARIMA.

Results

The results of the analysis, including time series plots and ARIMA model diagnostics, are saved in the images/ directory.

Result on validation dataset

Time Series Plot

Residual Error

Conclusion

The ARIMA model provides a robust framework for analyzing and predicting time series data. This project demonstrates how to manually configure and apply an ARIMA model to real-world data, yielding insights into the patterns of robbery incidents in Boston over the observed period.

monthly_armed_robbery's People

Contributors

kanish-h-h avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.