Linear regression. How to calculate this problem

Click For Summary
SUMMARY

The forum discussion centers on discrepancies in linear regression calculations using Excel and online calculators, specifically from the site www.alcula.com. The user initially calculated the linear equation as y = -0.29967x + 12.5667 but found differing results from Excel. The resolution revealed that the user had mistakenly switched the X and Y data sets, which led to incorrect results. Correctly entering the X values first followed by the Y values in the online calculator aligned the results with Excel's output.

PREREQUISITES
  • Understanding of linear regression concepts
  • Familiarity with Excel for statistical calculations
  • Basic knowledge of data entry in online calculators
  • Ability to interpret linear equations
NEXT STEPS
  • Learn how to use Excel for linear regression analysis
  • Explore the functionality of online statistical calculators like www.alcula.com
  • Study the principles of data visualization to better interpret regression outputs
  • Investigate common pitfalls in data entry for statistical calculations
USEFUL FOR

Students, data analysts, and anyone interested in understanding linear regression calculations and resolving discrepancies in statistical software outputs.

Drudge
Messages
30
Reaction score
0

Homework Statement


Why does excel give me this:

http://postimg.org/image/68b9z1lqt/

And various online calulators (for example http://www.alcula.com/calculators/statistics/linear-regression/), and my own calulations give me this:

http://postimg.org/image/kpljm4awx/


Homework Equations



Raw data:

Y: 18.9, 31.9, 18.5, 33.9, 24.9, 15.2, 26.9, 26.9, 29.9, 29.9, 35.9, 21.9, 16.9, 8.9, 24.9

X: 5, 4, 3, 1, 4, 8, 3, 6, 7, 5, 3, 3, 9, 14, 4

The Attempt at a Solution



I get the linear equation of: y = -0.29967x + 12,5667

The book I am studying has the answer that you get from excel

Which one is right? Am I going insane or is there somwthing really wrong here?

 
Last edited by a moderator:
Physics news on Phys.org
Drudge - I plugged the numbers into your suggested application (from www.alcula.com) and I get the Excel results. It looks like you switched the x and y data sets. Enter the x values first, then the y values, and you should get the Excel results.
 
TheoMcCloskey said:
Drudge - I plugged the numbers into your suggested application (from www.alcula.com) and I get the Excel results. It looks like you switched the x and y data sets. Enter the x values first, then the y values, and you should get the Excel results.

O no! of course. thank you very much
 

Similar threads

Replies
10
Views
9K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
9K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
6K
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K