Engineering With Python Rotating Header Image

Posts under ‘linear regression’

Fitting Polynomials and Correlation Equations to Vapor Pressure Data – Solution

Solve the problem: 1. Fit the Data to a Polynomial Below is the program output in IPython with values for the various data fits. It is a little confusing, but now you know why in the earlier post that the polynomial coefficients are ‘backwards’.   You see the polynomial defined as p = 0.0007449*x3 + 0.03945*x2 […]

Fitting Polynomials and Correlation Equations to Vapor Pressure Data – Programming Approach

Plan your solution: Draw a picture, in this case, list all of your data and equations Remember the fundamentals and apply Draw your material or energy balance envelope (If necessary, not in this case) Remember [Accumulation = In – Out + Source/Sink] Think about what you need to do and the answer you want You […]

Fitting Polynomials and Correlation Equations to Vapor Pressure Data – Problem Description

Reference: This is Problem 3 in the ASEE 1997 problem set.   We will be fitting vapor pressure data for benzene to  a polynomial and then to a couple of correlating equations. Concepts: Put the data into arrays so that we can work with it Use Ipython with Scite editor to edit and save files Import […]