Regression Analysis Report

.pdf

School

University of Houston *

*We aren’t endorsed by this school

Course

3360

Subject

Statistics

Date

Feb 20, 2024

Type

pdf

Pages

4

Uploaded by KidJackalPerson504

Report
Nguyen Bui PSID: 1987401 MECE 3360 Experimental Method Submission date: 02/13/2024 Regression Analysis Report I. Linear Regression Procedures 1. Compute Mean and Standard Deviation of each row. 2. Copy-paste Time values (first column), Mean, and Standard Deviation into another sheet and insert a scatter plot of Time vs. Linear Mean. 3. Display linear trendline on the plot. 4. Display the least squared value and equation for the best fit curve. 5. Calculate the uncertainty of each row by using the equation t*(st dev)/sqrt(n) where t = 2 for 95% confidence interval and n = 40 is the number of data points. 6. Dispaly the error bars for each y-value using the calculated uncertainty. Discussion Out of all data points, six are below and seven are above the best fit curve. However, they are in very close proximity to the curve and the rest of the data points are on the curve, indicating that the curve is a good representation of the output. The errors are also relatively small . y = 0.4243x + 1.2277 R² = 0.9978 0 2 4 6 8 10 12 0 5 10 15 20 25 Linear Mean Time Linear Regression Figure 1. Linear Regression
II. Cubic Regression Procedures 1. Compute Mean and Standard Deviation of each row. 2. Copy-paste Time values (first column), Mean, and Standard Deviation into another sheet and insert a scatter plot of Time vs. Linear Mean. 3. Display linear trendline on the plot. 4. Display the least squared value and equation (3 rd order polynomial) for the best fit curve. 5. Calculate the uncertainty of each row by using the equation t*(st dev)/sqrt(n) where t = 2 for 95% confidence interval and n = 40 is the number of data points. 6. Display the error bars for each y-value using the calculated uncertainty. Discussion As in the case of linear regression, some data points are above and below the best fit curve, but they are in very close proximity to the best fit curve. Having the R 2 close to 1 is another indication that this curve is a good prediction of the output values. y = 0.0246x 3 + 0.246x 2 + 0.3031x + 0.5971 R² = 0.996 0 1 2 3 4 5 6 7 8 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 Cubic Mean Time Cubic Regression Figure 2. Cubic Regression
III. Sine Regression Procedures 1. Compute Mean and Standard Deviation of each row. 2. Copy-paste Time values (first column), Mean, and Standard Deviation into another sheet. 3. Calculate the uncertainty of each row by using the equation t*(st dev)/sqrt(n) where t = 2 for 95% confidence interval and n = 40 is the number of data points. 4. Estimate C 1 , C 2 , C 3 , and C 4 values in the best fit curve function C 1 -eC 2 x sin(C 3 x + C 4 ) where C 1 is the initial amplitude of the sine wave, C 2 is the reciprocal of the time constant (time constant is the time where the amplitude decays to 1/e^(initial amplitude)), C 3 is the angular frequency, and C 4 is the phase shift pi/2. 5. Calculate predicted values using the C’s values and above equation. 6. Calculate the square error with function = (Sine Mean – Predicted Value)^2 and add up the square error values. 7. Use Excel Solver to minimize the sum of the square error values and therefore determine new predicted values and C’s values. 8. Insert a scatter plot of Time vs. Linear Mean and use the new predicted values to construct the best fit curve on the plot. 9. Calculate the uncertainty of each row by using the equation t*(st dev)/sqrt(n) where t = 2 for 95% confidence interval and n = 40 is the number of data points. 10. Display the error bars for each y-value using the calculated uncertainty. -1 -0.5 0 0.5 1 1.5 0 5 10 15 20 25 Sine Mean Time Decaying Sine Wave Regression y = 1.00189e -0.25208x sin(3.00069x + 1.57265) Figure 3. Sine Regression
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Discussion Most of the data points are virtually on the best fit curve. The curve is overlapped by a large number of data points on the time interval 5-20, making it hard to see the curve. However, based on the trendline on the preceding interval 0-5 we can safely assume that most of the data points on this interval would be on the best fit curve. The errors are also relatively small.