Docsity

Regression Analysis - Example with Solutions | M E 345, Study notes of Mechanical Engineering

Toggle sidebar
bg1
M E 345 Fall 2009 Professor John M. Cimbala Lecture 09 09/14/2009
Today, we will:
•
Finish reviewing the pdf module: Regression Analysis
•
Do some example problems – regression analysis
•
Review the pdf module: Outlier Points
•
Do some example problems – outlier points
Example: Regression Analysis
Given: Twenty data points of (x,y) pairs with lots of scatter (see Excel spreadsheet on
website for the raw data).
Data point x y
1 0 1.924
2 0.1 2.377
3 0.2 2.088
4 0.3 3.245
5 0.4 3.031
6 0.5 2.779
7 0.6 3.186
8 0.7 4.102
9 0.8 4.278
10 0.9 3.701
11 1 3.654
12 1.1 3.991
13 1.2 3.891
14 1.3 3.790
15 1.4 3.437
16 1.5 4.080
17 1.6 3.204
18 1.7 3.130
19 1.8 2.614
20 1.9 2.066
To do: Perform regression analysis – linear, quadratic, and cubic – and compare how
the fitted curves fit to the data points.
Solution:
See Excel spreadsheet – I will show in class how to do the regression analysis in Excel.
pf3
pf4

Partial preview of the text

Download Regression Analysis - Example with Solutions | M E 345 and more Study notes Mechanical Engineering in PDF only on Docsity!

M E 345 Fall 2009 Professor John M. Cimbala Lecture 09 09/14/

Today, we will :

• Finish reviewing the pdf module: Regression Analysis

• Do some example problems – regression analysis

• Review the pdf module: Outlier Points

• Do some example problems – outlier points

Example: Regression Analysis

Given : Twenty data points of ( x , y ) pairs with lots of scatter (see Excel spreadsheet on

website for the raw data).

Data point x y 1 0 1. 2 0.1 2. 3 0.2 2. 4 0.3 3. 5 0.4 3. 6 0.5 2. 7 0.6 3. 8 0.7 4. 9 0.8 4. 10 0.9 3. 11 1 3. 12 1.1 3. 13 1.2 3. 14 1.3 3. 15 1.4 3. 16 1.5 4. 17 1.6 3. 18 1.7 3. 19 1.8 2. 20 1.9 2.

To do : Perform regression analysis – linear, quadratic, and cubic – and compare how

the fitted curves fit to the data points.

Solution :

See Excel spreadsheet – I will show in class how to do the regression analysis in Excel.

Example: Outliers – single set of data

Given : Four data points are measured.

Data point x 1 38 2 42 3 44 4 53

To do : Eliminate any “official” outliers, one at a time.

Solution :

Example: Outliers – single set of measurements

Given : Janet takes 12 temperature measurements ranging from

23.0 o^ C (lowest reading) to 25.7 o^ C (highest reading).

  • The sample mean of all 12 readings is 24.88o^ C.
  • The sample standard deviation is 1.04o^ C.

To do : Determine which, if any, of the extreme readings (lowest or

highest) is an outlier.

Solution :

sample mean = 44.

sample standard deviation =6.

Example: Outliers – data pairs

Given : Twenty data points of ( x , y ) pairs are measured. To do : Eliminate any “official” outliers, one at a time. Solution :

  • 1 0 3. Data point x y
  • 2 0.1 4.
  • 3 0.2 5.
  • 4 0.3 6.
  • 5 0.4 7.
  • 6 0.5 8.
  • 7 0.6 10.
  • 8 0.7 10.
  • 9 0.8 11.
  • 10 0.9 11.
  • 11 1 12.
  • 12 1.1 14.
  • 13 1.2 15.
  • 14 1.3 16.
  • 15 1.4 17.
  • 16 1.5 5.
  • 17 1.6 19.
  • 18 1.7 4.
  • 19 1.8 21.
  • 20 1.9 22.