EGR 103/Fall 2019/Lab 7
Jump to navigation
Jump to search
The following document is meant as an outline of what is covered in this assignment.
Contents
Additional References
- Python args and kwargs: Demystified at Real Python
- Draft tutorial:
Typographical Errors
None yet!
Specific Problems
- Note in the skeleton that code is already given to bring in the files and figures. If you use different names, just change the names in the skeleton.
- Be sure to put the appropriate version of the honor code -- if you use the examples from Pundit, the original author is either DukeEgr93 or Michael R. Gustafson II depending on how you want to cite things.
Chapra 14.5
- See Python:Fitting#Polynomial_Fitting
- Be sure to also calculate and report \(s_{y/x}\) and \(r\), along with the \(S_t\), \(S_r\), and \(r^2\) values you have to report for every problem.
Chapra 14.7
- See Python:Fitting#General_Linear_Regression
- Whenever you have values on an axis that makes the axis numbers take up more space that they should, you can tell Python to use scientific notation on that axis. For this code, you will want to use scientific notation on the y axis; you can do this with the code:
plt.ticklabel_format(axis='y', style='sci', scilimits=(0, 0))
- Be sure to calculate, report, and discuss the R value. It is not the same as the slope of the line.
Chapra 14.7
- See Python:Fitting#Polynomial_Fitting and Python:Fitting#General_Linear_Regression
- The reason for having the dashed line plotted after the solid one is because the two lines are somewhat similar and this will let you see the first one in the gaps of the second one.
Chapra 15.10 and
Chapra 15.10 Alternate
- See Python:Fitting#General_Linear_Regression
- Note that there are 5 things plotted on each of the two graphs. Be sure to include a legend.
- Also be sure to answer the questions.
Chapra 15.11
- See Python:Fitting#Nonlinear_Regression
- For the initial guesses, make sure you understand the subscripts for the parameters and then figure out how to approximate their values from the information provided in the problem.
Chapra 15.18
- See Python:Fitting#General_Linear_Regression
- While trying to decide what is going on, think back to the lecture on how computers store numbers and then what some of the potential problems with computers were.
- Note: All the $$r^2$$ for this are really good