Difference between revisions of "EGR 103/Fall 2019/Lab 7"

From PrattWiki
Jump to navigation Jump to search
(Additional References)
 
Line 3: Line 3:
 
== Additional References ==
 
== Additional References ==
 
* [https://realpython.com/python-kwargs-and-args/ Python args and kwargs: Demystified] at Real Python
 
* [https://realpython.com/python-kwargs-and-args/ Python args and kwargs: Demystified] at Real Python
 +
* Draft tutorial:
 +
<html>
 +
<iframe src="https://trinket.io/embed/python3/2ff0898517" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
 +
</html>
  
 
== Typographical Errors ==
 
== Typographical Errors ==

Latest revision as of 15:36, 29 October 2019

The following document is meant as an outline of what is covered in this assignment.

Additional References

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

Chapra 15.10 and

Chapra 15.10 Alternate

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

General Concepts

General Linear Regression...