Download (right-click, save target as ...) this page as a jupyterlab notebook Lab 30
LAST NAME, FIRST NAME
R00000000
ENGR 1330 Laboratory 30 - In Lab
The last couple lessons contain the needed logic, so just apply to the problem below
Using methods in the lesson, fit an appropriate data model to the voltage versus time data below. Use the data model to determine
Time(sec) | Voltage(V) |
---|---|
0 | 9.8 |
1 | 5.9 |
2 | 3.9 |
3 | 2.1 |
4 | 1.0 |
5 | 0.8 |
6 | 0.6 |
7 | 0.4 |
8 | 0.3 |
9 | 0.2 |
10 | 0.1 |
# Load the necessary packages
# build the data lists
# build a dataframe
# Initialise and fit regression model using `statsmodels`
# Predict values
# Plot regression against actual data
# Is the model "good" if not try a different data model (linear,exponential,power law,logarithmic,polynomial)
# with your "good" model answer the questions