Go Back  PPRuNe Forums > Other Aircrew Forums > Flight Testing
Reload this Page >

MS Excel. XY scatter graph - Linear regression trend line.

Flight Testing A forum for test pilots, flight test engineers, observers, telemetry and instrumentation engineers and anybody else involved in the demanding and complex business of testing aeroplanes, helicopters and equipment.

MS Excel. XY scatter graph - Linear regression trend line.

Old 12th Dec 2009, 19:34
  #1 (permalink)  
Considerably Bemused Wannabe
Thread Starter
 
Join Date: May 2003
Location: UK
Posts: 497
Likes: 0
Received 0 Likes on 0 Posts
MS Excel. XY scatter graph - Linear regression trend line.

Hi guys, hope you don't mind me posting this here, just seems the type of question could answer...

I've plotted an XY scatter graph in MS excel, and added a linear regression trend line. How can I now calculate the difference between the data points I've entered and the linear regression line?

I'm trying to work out error between each XY data point and the linear regression trend line.

Thanks all.

S.
scruggs is offline  
Old 12th Dec 2009, 21:46
  #2 (permalink)  
 
Join Date: Aug 2006
Location: UK
Posts: 43
Likes: 0
Received 0 Likes on 0 Posts
You can do it manually by taking the equation of the line (which is a display option within the excel line plot options) and then generate another set of y data using your data set x values and then do a simple calculation to work out the delta between your data set and your new idealised data set.

This would give you an error for each value.

Is this the sort of thing you are after?

Pruner.
FTE Pruner is offline  
Old 13th Dec 2009, 04:39
  #3 (permalink)  
Prof. Airport Engineer
 
Join Date: Oct 2000
Location: Australia (mostly)
Posts: 726
Likes: 0
Received 0 Likes on 0 Posts
FTE Pruner has a nice solution which goes to the heart of the matter in statistical terms, and this made me think of the more detailed statistical functions in Excel which can deliver the needed answers.

These are not enabled as a default, and need to be enabled (but worth doing). My own copy of Excel was disabled (thanks to those lovely folks at Microsoft who issue all these updates with disabling powers), so I had to do it from scratch.

Start Excel; top menu: TOOLS ADDINS and then enable the ‘analysis’ ones. On my version, the screen blinked a few times, and then they were working. Then TOOLS DATA ANALYSIS and choose the regression option. Pick the ‘X’ values and the ‘Y’ values, and (before the analysis) I ticked all the options. In the resultant new screen or printout, the “residual options” gave me the predicted values and the error (the so-called ‘residuals’). Very neat.

A word of warning to the serious scholars, Excel is good in this sort of simple analysis (and there are lots more statistical methods in the ADDINS toolpak), and these would satisfy many test pilots/engineer needs. However, they have limitations for serious statistical analysis, and if you are doing a Masters or PhD, or a flight test programme with more than 100 datasets, then my experience says invest in SPSS. Copies can be purchased from eBay at very good prices, and Julie Pallant's book (from Amazon) helps you gets answers straightaway.
OverRun is offline  
Old 17th Dec 2009, 21:04
  #4 (permalink)  
Considerably Bemused Wannabe
Thread Starter
 
Join Date: May 2003
Location: UK
Posts: 497
Likes: 0
Received 0 Likes on 0 Posts
Cheers guys!

S
scruggs is offline  
Old 20th Dec 2009, 16:48
  #5 (permalink)  
 
Join Date: Feb 2005
Location: KPHL
Posts: 340
Likes: 0
Received 0 Likes on 0 Posts
Rather than copying the result from the graph, use the LINEST() function. It will give you m and b from y=mx+b. That way if your data changes, then you don't have to enter the coefficients manually from the graph.
Matthew Parsons is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.