Description: This is for learning, studying, researching, and analyzing stock in deep learning (DL) and machine learning (ML). Predicting Stocks with a Machine Learning method or Deep Learning method with different types of algorithm. Experimenting with stock data to see how it works and why it works or why it does not work that way. Using different types of stock strategies in machine learning or deep learning. Using Technical Analysis or Fundamental Analysis in machine learning or deep learning to predict the future stock prices. In addition, to predict stocks in the long terms or short terms.
Machine learning is a subset of artificial intelligence involved with the creating of algorithms that can change itself without human intervention to produce an output by feeding itself through structured data. On the other hand, deep learning is a subset of machine learning where algorithms are created, but the functions are like machine learning and many of the different types of algorithms give a different interpretation of the data. The network of algorithms is called artificial neural networks and is similar to neural connections that exist in the human brain.
- Categorical variable(Qualitative): Label data or distinct groups.
Example: location, gender, material type, payment, highest level of education - Discrete variable (Class Data): Numerica variables but the data is countable number of values between any two values.
Example: customer complaints or number of flaws or defects, Children per Household, age (number of years) - Continuous variable (Quantitative): Numeric variables that have an infinite number of values between any two values. Example: length of a part or the date and time a payment is received, running distance, age (infinitly accurate and use an infinite number of decimal places)
- For 'Quantitative data' is used with all three centre measures (mean, median and mode) and all spread measures.
- For 'Class data' is used with median and mode.
- For 'Qualitative data' is for only with mode.
- Classification (predict label)
- Regression (predict values)
- Bias is the difference between our actual and predicted values.
- Bias is the simple assumptions that our model makes about our data to be able to predict new data.
- Assumptions made by a model to make a function easier to learn.
- Variance is opposite of bias.
- Variance is variability of model prediction for a given data point or a value that tells us the spread of our data.
- If you train your data on training data and obtain a very low error, upon changing the data and then training the same.
Overfitted is when the model memorizes the noise and fits too closely to the training set. Good fit is a model that learns the training dataset and genernalizes well with the old out dataset. Underfitting is when it cannot establish the dominant trend within the data; as a result, in training errors and poor performance of the model.
Overfitting model is a good model with the training data that fit or at lease with near each observation; however, the model mist the point and random noise is capture inside the model. The model have low training error and high CV error, low in-sample error and high out-of-sample error, and high variance.
- High Train Accuracy
- Low Test Accuracy
- Early stopping - stop the training before the model starts learning the noise within the model.
- Training with more data - adding more data will increase the accuracy of the modelor can help algorithms detect the signal better.
- Data augmentation - add clean and relevant data into training data.
- Feature selection - Use important features within the data. Remove features.
- Regularization - reduce features by using regularization methods such as L1 regularization, Lasso regularization, and dropout.
- Ensemble methods - combine predictions from multiple separate models such as bagging and boosting.
- Increase training data.
- High Train Accuracy
- High Test Accuracy
Underfitting model is not perfect, so it does not capture the underlying logic of the data. Therefore, the model does not have strong predictive power with low accuracy. The model have large training set error, large in-sample error, and high bias.
- Low Train Accuracy
- Low Test Accuracy
- Decrease regularization - reduce the variance with a model by applying a penalty to the input parameters with the larger coefficients such as L1 regularization, Lasso regularization, dropout, etc.
- Increase the duration of training - extending the duration of training because stopping the training early will cause underfit model.
- Feature selection - not enough predictive features present, then adding more features or features with greater importance would improve the model.
- Increase the number of features - performing feature engineering
- Remove noise from the data
Step 1 through step 8 is a review on python.
After step 8, everything you need to know is relates to data analysis, data engineering, data science, machine learning, and deep learning.
- Linear Regression Model
- Logistic Regression
- Lasso Regression
- Support Vector Machines
- Polynomial Regression
- Stepwise Regression
- Ridge Regression
- Multivariate Regression Algorithm
- Multiple Regression Algorithm
- K Means Clustering Algorithm
- NaΓ―ve Bayes Classifier Algorithm
- Random Forests
- Decision Trees
- Nearest Neighbours
- Lasso Regression
- ElasticNet Regression
- Reinforcement Learning
- Artificial Intelligence
- MultiModal Network
- Biologic Intelligence
Algorithms is a process and set of instructions to solve a class of problems. In addition, algorithms perform computation such as calculations, data processing, automated reasoning, and other tasks. A machine learning algorithm is a method that provides systems with the ability to automatically learn and improve from experience without being having formulated.
Python 3.5+
Jupyter Notebook Python 3
Windows 7 or Windows 10
π» Do not use this code for investing or trading in the stock market. However, if you are interest in the stock market, you should read π books that relate to stock market, investment, or finance. On the other hand, if you into quant or machine learning, read books about π machine trading, algorithmic trading, and quantitative trading. You should read π about Machine Learning and Deep Learning to understand the concept, theory, and the mathematics. On the other hand, you should read academic paper and do research online about machine learning and deep learning on π»