Python Numpy Mini Projects:Stock Price Analyzer
This project analyses the stock prices. It has following functionalities. Code Implementation: This program starts by creating stock by using NumPy array. The basic statistics include Average price, maximum, minimum prices and standard deviations. Next, Daily price changes are calculated using np.diff(prices). Daily returns price is calculated and the data is rounded to 2 digit. Stock Volatility is calculated and displayed. 7 day moving window is calculated along with average value. Best and worst days are displayed according to the returns value. It shows how a simple 30,000 initial value gives you profit. Code: import numpy as np # Sample stock closing prices prices = np.array([80, 100, 108, 120, 208, 110, 125, 311, 117]) print("Stock Prices:") print(prices) #Basic statistics print("The basic statistics of the da...