| ... | ... | @@ -153,7 +153,7 @@ For each of the numerical features (Open, High, Low, Close, Adj Close, Volume), |
|
|
|
Purpose:
|
|
|
|
Random Noise: The random noise is added by generating values from a normal distribution centered around the mean of the feature, with a standard deviation scaled to 5% of the original data's standard deviation. This introduces slight variations to simulate natural fluctuations.
|
|
|
|
Ensuring Realism: This noise ensures the generated data has a similar range and distribution as the original data, making it realistic and useful for model training.
|
|
|
|
####Step 4: Generate Synthetic Volume Data with Spikes
|
|
|
|
#### Step 4: Generate Synthetic Volume Data with Spikes
|
|
|
|
Volume data is particularly important in financial markets as it reflects the trading activity. Synthetic volume data is generated with added variability to simulate real-world market behavior.
|
|
|
|
|
|
|
|
|
| ... | ... | |
| ... | ... | |