Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,39 @@
|
|
1 |
---
|
|
|
|
|
2 |
license: gpl
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: "Linear Regression Model for Energy Consumption Prediction"
|
3 |
+
description: "This model predicts energy consumption based on meteorological data and historical usage."
|
4 |
license: gpl
|
5 |
---
|
6 |
+
|
7 |
+
# Linear Regression Model for Energy Consumption Prediction
|
8 |
+
|
9 |
+
## Description
|
10 |
+
This linear regression model predicts energy consumption based on meteorological data and historical energy usage from 2021 to 2023. It utilizes time series data from a transformer station to forecast future energy demands. It is built using the `statsmodels` library in Python and incorporates both time-based and weather-related variables to enhance prediction accuracy.
|
11 |
+
|
12 |
+
## Model Details
|
13 |
+
- **Model Type:** Linear Regression
|
14 |
+
- **Data Period:** 2021-2023
|
15 |
+
- **Variables Used:**
|
16 |
+
- `Lastgang`: Energy consumption data
|
17 |
+
- `Hour`: Hour of the day
|
18 |
+
- `DayOfWeek`: Day of the week
|
19 |
+
- `Lastgang_Moving_Average`: Moving average of energy consumption
|
20 |
+
- `Lastgang_First_Difference`: First difference of energy consumption
|
21 |
+
|
22 |
+
## Features
|
23 |
+
The model splits the data into training and testing sets, with the last 192 data points (equivalent to 48 hours at 15-minute intervals) designated as the test dataset. It defines target variables (`Lastgang`) and explanatory variables including hourly and daily patterns as well as derived features from the consumption data. The dataset includes preprocessed features such as scaled energy consumption (`Lastgang`), and time-related features (`Hour`, `DayOfWeek`).
|
24 |
+
|
25 |
+
## Installation and Execution
|
26 |
+
To run this model, you need Python along with the following libraries:
|
27 |
+
- `pandas`
|
28 |
+
- `numpy`
|
29 |
+
- `matplotlib`
|
30 |
+
- `statsmodels`
|
31 |
+
- `sklearn`
|
32 |
+
|
33 |
+
To execute the model:
|
34 |
+
1. Load your dataset into a pandas DataFrame.
|
35 |
+
2. Ensure that the data is formatted according to the specifications mentioned in the model details.
|
36 |
+
3. Run the script provided in the `Prediction_Linear-Regression.ipynb` notebook.
|
37 |
+
|
38 |
+
## Contributions
|
39 |
+
Contributions to this project are welcome. You can improve the existing model, add new features, or enhance the documentation. Please submit a pull request or open an issue if you have suggestions or need further information.
|