Inspiration
I major in Math with emphasis in financial mathematics. I am taking The Mathematics of Option Pricing this semester. We do hand calculations in class but since we do not use any programming language in class, I was interested to learn what I can do with Python using the knowledge in finance.
What it does
I used Python for this project. Using a mathematical model called Black-Scholes model, I calculated the fair price of option (both call and put option) for NVDA stock. Black-Scholes model theoretically estimates the price of European-style options. It considers factors such as the current stock price, strike price, time to expiration, risk-free interest rate and asset’s volatility to calculate the option’s premium. Using the spot price, current risk free rate and other inputs, I was able to calculate the fair prices of the option. I compared them with the market order data provided through yahoo finance. The Black-Scholes model was very accurate. I concluded we should buy the call option and should not buy the put option given today's market data. At last, I calculated delta and created the graph. Delta tells the probability that the call/put option will finish in-the-money.
How we built it
I used Python and Black-Scholes model.
Challenges we ran into
The biggest challenge was to use a class in Python. It was my first time using the class and I realized its usefulness. A class in Python is a user-defined template for creating objects. It bundles data and functions together, making it easier to manage and use them. Since we need a lot of input variables from a dataset and equation to make Black-Scholes model, the class was very useful. While using class, I also got to know about self. Self represents the instances of the class and we can access the attributes and methods of the class in Python using the “self.” I did not have any problems besides coding skill.
Accomplishments that we're proud of
I am proud that I incorporated market data to do real-time analysis.
What we learned
The key concepts were definitely Black-Scholes model and Python. It was the first time for me to combine programming skill and knowledge in finance. Since the financial market data gives a lot of data such as market stock price and interest rate, we can do in-depth data analysis and make investment decisions from it. I was also amazed by the accuracy of Black-Scholes model because the computed number was very close to market price. I am now convinced why many investment bankers use this model for option trading.
What's next for Analyzing the option pricing of NVDA stock
I am interested in coding more mathematical model used in investment descision.
Log in or sign up for Devpost to join the conversation.