All Projects → nbhaip → markov_stock_analysis

nbhaip / markov_stock_analysis

Licence: other
Machine learning simulation for security prices.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to markov stock analysis

TraderBot
No description or website provided.
Stars: ✭ 39 (+160%)
Mutual labels:  finance, stock-prices
yfMongo
MongoDb tool to store stock Yahoo Finance market data in a consistent way
Stars: ✭ 32 (+113.33%)
Mutual labels:  finance
finql
A quantitative finance toolbox
Stars: ✭ 21 (+40%)
Mutual labels:  finance
piker
#nontina, #paperhands,, #pwnzebotz, #tradezbyguille
Stars: ✭ 63 (+320%)
Mutual labels:  finance
Lecture-3-Linear-Models
ICDSS Machine Learning Workshop Series: Linear Models
Stars: ✭ 19 (+26.67%)
Mutual labels:  finance
FinanceKit
FinanceKit is a Framework for iOS and Mac to build apps working with financial data, like money, currencies, stocks, portfolio, transactions and other concepts.
Stars: ✭ 15 (+0%)
Mutual labels:  finance
Personal-Finance-Net-Worth-Tracker
Personal Finance (Net Worth Tracker) Wealth Management Spreadsheet
Stars: ✭ 31 (+106.67%)
Mutual labels:  finance
black-scholes
Black Scholes formula and greeks
Stars: ✭ 34 (+126.67%)
Mutual labels:  finance
investbook
Оценка эффективности инвестиций с учетом комиссий, налогов (удержанных и ожидающихся), дивидендов и купонов.
Stars: ✭ 83 (+453.33%)
Mutual labels:  finance
ynab.go
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.
Stars: ✭ 49 (+226.67%)
Mutual labels:  finance
FinRL
FinRL: The first open-source project for financial reinforcement learning. Please star. 🔥
Stars: ✭ 3,497 (+23213.33%)
Mutual labels:  finance
AlphaVantageAPI
An Opinionated AlphaVantage API Wrapper in Python 3.9. Compatible with Pandas TA (pip install pandas_ta). Get your FREE API Key at https://www.alphavantage.co/support/
Stars: ✭ 77 (+413.33%)
Mutual labels:  finance
adp-portfolio-selection
Approximate Dynamic Programming for Portfolio Selection Problem
Stars: ✭ 29 (+93.33%)
Mutual labels:  finance
iwfp
A utility (Android/iOS/web) app to help maximize your credit card cashback rewards with math and magic. May the five percent be with you ;)
Stars: ✭ 24 (+60%)
Mutual labels:  finance
turingquant
No description or website provided.
Stars: ✭ 19 (+26.67%)
Mutual labels:  finance
coinbase-fix-example
Simple example application for Coinbase Pro FIX API
Stars: ✭ 42 (+180%)
Mutual labels:  finance
GoPlan-app
An intuitive portfolio mangaer !
Stars: ✭ 27 (+80%)
Mutual labels:  finance
GOAi
No description or website provided.
Stars: ✭ 57 (+280%)
Mutual labels:  finance
simulatePortfolio
class for simulation of stock investing portfolios based on historical data
Stars: ✭ 18 (+20%)
Mutual labels:  finance
trading-rules-using-machine-learning
A financial trading method using machine learning.
Stars: ✭ 16 (+6.67%)
Mutual labels:  finance

markov_stock_analysis

The program implements an algorithm that finds the percentage change in a security based on historical daily data from Yahoo Finance and visualizes the information as a time series plot in matplotlib. The program also creates a Markov chain model in which the states are bull market, bear market, and stagnant market. Using the probabilities associated with this Markov chain model, the program will model the estimated growth of the security price through a Gaussian random walk.

The real purpose of the program is not to accurately predict the growth or fall fall of a security price. Instead, the program serves as a simple simulation to study finite markov chain model behavior in an applied context. Currently, I occasionally use the program as a research tool to study the long and short term behavior of individual securities and indices using experimental markov models.

The current problem I face is that I assumed, for simplicity, that the historical percentage price changes are all normally distributed with a definite mean and standard deviation. My shifts from one state to another are heavily dependent on this not-so-normal price change distribution. Of course, this assumption is most likely not necessarily true; in my Gaussian walk, we cannot assume that the pricing changes are even approximately normal because the data is NOT identically and independently distributed.

To resolve the faulty assumption, the next steps in the model would be to use a nonparametric distribution to model the steps in my random walk. A nonparametric distribution would not have any mean, standard distribution, etc. I would probably get a more realistic model if I used one, and I would not need to worry about too many assumptions. Once I am very familiar with the details and theory on nonparametric statistics will I resolve this issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].