VARMA For Battery Voltage Forecasting 1
VARMA For Battery Voltage Forecasting 1
Forecasting
-the prediction of the future using the
information from the historical data.
Brief introduction to forecasting
Application of forecasting
1. Weather forecasting
Brief introduction to forecasting
Application of forecasting
4. Political forecasting
Brief introduction to forecasting
Application of forecasting
5. Sales forecasting
Brief introduction to forecasting
Machine learning
Statistical method
method
Brief introduction to VARMA
File name
Menu bar tools
Input cell
Output cell
Get started
3. Useful shortcuts
Execute code (Shift + Enter)
2
Get started
4.1 NumPy
Array creation
>>>print( )
Get started
4.1 NumPy
Printing arrays
TASK: Create array a with values from 0 to 6.
Get started
4.1 NumPy
Printing arrays
TASK: Create array a with values from 0 to 6.
Get started
4.1 NumPy
Printing arrays
TASK: Print array a.
Get started
4.1 NumPy
Printing arrays
TASK: Print array a.
Get started
4.1 NumPy
NumPy attributes
attributes Description
ndarray.ndim the number of axes (dimensions) of the
array.
ndarray.shape the dimensions of the array.
ndarray.size the total number of elements of the
array.
ndarray.dtype an object describing the type of the
elements in the array.
Get started
4.1 NumPy
Example
Create array a with values from 0 to 15 and shape 3 by 5.
Get started
4.1 NumPy
Example
ndarray.ndim
Get started
4.1 NumPy
Example
ndarray.shape
Get started
4.1 NumPy
Example
ndarray.size
Get started
4.1 NumPy
Example
ndarray.dtype
Get started
4.1 NumPy
Exercises
1. Write a NumPy program to create an element-wise
comparison (greater, greater_equal, less and
less_equal) of two given arrays.
2. Write a NumPy program to create an array with the
values 1, 7, 13, 105 and determine the size of the
memory occupied by the array.
Get started
4.1 NumPy
Exercises
1. Write a NumPy program to create an element-wise
comparison (greater, greater_equal, less and less_equal)
of two given arrays.
2. Write a NumPy program to create an array with the
values 1, 7, 13, 105 and determine the size of the
memory occupied by the array.
3. Write a NumPy program to create a 3x3 identity matrix,
i.e. diagonal elements are 1, the rest are 0.
Get started
4.1 NumPy
Solution
1.
Get started
4.1 NumPy
Solution
2.
Get started
4.1 NumPy
Solution
3.
Get started
4.2 Pandas
Importing the Pandas module
1
2
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
2. Convert data to a DataFrame type
3. Read data from a file
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
TASK: Create DataFrame df with three columns.
Column1: 0, 1, 2, 3, 4
Column2: 5, 6, 7, 8, 9
Column3: 10, 11, 12, 13, 14
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
TASK: Create DataFrame df with three columns.
Column1: 0, 1, 2, 3, 4
Column2: 5, 6, 7, 8, 9
Column3: 10, 11, 12, 13, 14
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
using attribute “.T” transpose the DataFrame df.
Get started
4.2 Pandas
DataFrame creation
1. Create DataFrame
DataFrame vs. Array
Array DataFrame
Get started
4.2 Pandas
DataFrame creation
2. Read data from a file
>>>pd.read_csv()
Get started
4.2 Pandas
DataFrame creation
3. Convert array to DataFrame
>>> pd.DataFrame(array)
Get started
4.3 How to be familiar with other libraries
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
Get started
4.3 How to be familiar with other libraries
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
Get started
4.3 How to be familiar with other libraries
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html