In [ ]:
 

Download (right-click, save target as ...) this page as a jupyterlab notebook Lab 30


Laboratory 30: Logarithmic and Power-Law Models

LAST NAME, FIRST NAME

R00000000

ENGR 1330 Laboratory 30 - In Lab


Background

The last couple lessons contain the needed logic, so just apply to the problem below

Exercise 1

Using methods in the lesson, fit an appropriate data model to the voltage versus time data below. Use the data model to determine

  1. What voltage do you expect after 1.5 seconds?
  2. What voltage do you expect after 15.0 seconds?
  3. How long will it take for the voltage to decline to 1.5 volts?
  4. How long will it take for the voltage to decline to 0.17 volts?
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
In [ ]:
# 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