by Suf | Sep 14, 2024 | Data Science, Python, Tips
Python’s scikit-learn library is a popular toolkit for machine learning, but sometimes you may encounter an error like: ModuleNotFoundError: No module named ‘sklearn.datasets.samples_generator’ This error occurs when the samples_generator module is not...
by Suf | Sep 14, 2024 | Finance, Programming, Python, Tips
Introduction If you are working with financial data, you may have come across Quandl, a popular platform for accessing historical financial data and economic information. While working on a Python project that uses the Quandl API, you might encounter an error that...
by Suf | Sep 11, 2024 | Pandas, Programming, Python, Tips
When working with Pandas, it’s common to face an error like AttributeError: ‘Series’ object has no attribute ‘colNames’. This blog post will explore this error, why it occurs, and how to use the apply() function to avoid or fix it. What is the...
by Suf | Oct 9, 2022 | Finance, Programming, Python, Tips
Implied volatility tells us the expected volatility of a stock over an option’s lifetime. Implied volatility is directly influenced by the supply and demand of the options and the market’s expectation of the direction of the price of the underlying...
by Suf | Sep 30, 2022 | C++, Finance, Programming, Python, R, Tips
Options Greeks are a set of quantities representing an option’s price sensitivity to its underlying parameters. Each of them measures a different dimension of the risk in an option position. They fall out elegantly from derivatives of the Black-Scholes options...
by Suf | Sep 27, 2022 | Finance, Programming, Python, Tips
The Black-Scholes or Black-Scholes-Merton model is a financial mathematical equation for pricing options contracts and other derivatives. Fischer Black and Myron Scholes published the formula in their 1973 paper “The Pricing of Options and Corporate...