Does Supreme Court Judgement Effect Stock Market? How Severe Judgements are For Market
Today we are going to code a paper which talk about how supreme court judgement or order effects stock market, or stock price. Check paper out here.
If you want to read the paper then: Check paper out here.
This is part 1 of our series. In this newslatter, we are going to analyze regression. We will be coding in Python, So basic knowledge of Python is required.
Let’s start coding:
%matplotlib inline
# Imports
import matplotlib.pyplot as plt
import numpy
import os
import pandas
import re
import scipy.stats
import seaborn
import string
# sklearn
import sklearn
import sklearn.tree
import sklearn.utils
# Style
seaborn.set_style("darkgrid")
The Python code is a setup script for data analysis and visualization related to the study of abnormal stock returns influenced by Supreme Court decisions. The %matplotlib inline line is a magic command for Jupyter Notebooks or IPython interfaces which ensures that any plots created by matplotlib will be displayed inline, i.e., directly below the code cells that produce them. The second section of the code is where a series of Python libraries are imported. The code imports matplotlib.pyplot for creating static, animated, or interactive visualizations in Python.