A small package for econometrics and finance.
Project description
Pyconometrics
A small and simple Python library equipped with tools for finance and econometrics.
Installation
To install the library using pip:
pip install pyconometrics
To use, simply import the library:
import pyconometrics as pn
Documentation
The library contains various tools for data retrieval, anaylsis, and prediction.
Data:
The data module focuses on data collection and manipulation.
pn.data.history() #Retrieves the High, Low, Open, Close, Volume, Adj Close for a security
pn.data.center() #Centers the data around the mean
pn.data.normalize() #Normalizes the data
Moving Average:
The moving average (ma) module focuses on creating moving averages.
pn.ma.sma() #Creates a simple moving average across a period
pn.ma.ema() #Creates an exponential moving average across a period
pn.ma.macd() #Creates the MACD line
pn.ma.bollinger() #Creates bollinger bands
Metric:
The metric module contains tools to help with data anylsis.
pn.metric.volatility() #Returns the historical volatility across a period
Model:
The model module contains tools for creating models to help forecast and examine correlation.
reg = pn.model.LinearRegression() #The linear regression class contains methods for analysis of the linear fit between a set of observations and features.
reg.fit() #Fits the data
reg.predict() #Creates a prediction based on a defined fit
reg.error() #Returns the Mean Squared Error for the prediction
reg.m #Returns the slope m for the prediction
reg.c #Returns the y-intercept c for the prediction
Final Notes
This project is very much still in development. Econometrics and finance are topics that are endlessly interesting as well as computer science and programming. There is always more to be added, learned, and improved upon. I'm excited to see where this project goes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyconometrics-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da3e09c55ed2fa449c8bb9dca6ab5c85dd451d8b1c10e7492addb840cbf4e60 |
|
MD5 | ac23e228779f16453da344df54ea8cfd |
|
BLAKE2b-256 | dd2ba38ff7794a66b0bc992b665e6e0a4c227c54963179b8d41e2e69550f8457 |