Notices
Non Scooby Related Anything Non-Scooby related

mathematics problem - (and excel)

Thread Tools
 
Search this Thread
 
Old Aug 24, 2003 | 05:51 PM
  #1  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

folks

this has been pissing me off all afternoon.

in excel i have a graph (and it looked exponential so i added a trendline) and it give me the formula of the curve as

y = 1444e^(-0.1802x)

well the ^ and () weren't there but i used that so you know what it looks like.

so, if i plug in x as 80 i should get 96 but i get all sorts of values nowhere near this, like -7000 and such like.

can anyone get it to give the correct value?

cheers
steven

[Edited by midget1500 - 8/24/2003 6:54:51 PM]
Reply
Old Aug 24, 2003 | 10:37 PM
  #2  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

well I get y=0.00079 !?

maybe the approximation isn't as good as you thought!

[Edited by ajm - 8/24/2003 10:38:53 PM]
Reply
Old Aug 24, 2003 | 10:51 PM
  #3  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

okay - as you can see the generated curve is very close so i'm guessing excel has given me the wrong formula??? don't want to rant off about good old MS, but we shall see




[Edited by midget1500 - 8/24/2003 10:52:09 PM]
Reply
Old Aug 24, 2003 | 10:53 PM
  #4  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

try fitting a different type of curve?
Reply
Old Aug 24, 2003 | 11:01 PM
  #5  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

yeah, that is the closest by far - so i'm now guessing excel is showing the wrong formula - i.e., it's not like the results are a wee bit out (from the graph) but bloody lightyears away!
Reply
Old Aug 24, 2003 | 11:06 PM
  #6  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

ok - a log curve isn't as close but i've added that and the formula is also miles out, i.e. for x=80 it gives y=700 or something (not 96). i guess i'm either really stupid or excel is pants.



steven
Reply
Old Aug 24, 2003 | 11:16 PM
  #7  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

Thats really weird. You don't have a random spurious data point that we can't see do you?

What are your data values, I can try duplicating the problem here...
Reply
Old Aug 24, 2003 | 11:21 PM
  #8  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

nope, my data is (X then Y)

10
15
20
25
30
35
40
45
50
55
60
65
70
75
80
85
90
95
100

-------------------

1,405
1,111
885
711
575
468
384
317
263
219
184
155
132
112
96
82
71
62
54

cheers
steven
Reply
Old Aug 24, 2003 | 11:27 PM
  #9  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

Ok, I get 1729.1e^-(0.036x)

plugging in x=80

y = 97.06

What version of excel are you using? This was using Excel 2000
Reply
Old Aug 24, 2003 | 11:33 PM
  #10  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

man that is perfect!!!

i'm using excel 2000 (9.0.2720)

i can't believe f**king excel has just wasted about 8 hours of my sunday. bloody microsoft

cheers man, you're a star! time to find out what is wrong with excel now...(just tried a new spreadsheet with those values in case something mad was happening but nope, exact same crap)

steven
Reply
Old Aug 24, 2003 | 11:36 PM
  #11  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

glad to be of help!

Do you have any options set in the trendline options, like trying to force an intercept?
Reply
Old Aug 24, 2003 | 11:38 PM
  #12  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

no - i don't have an intercept option set.

are you using that exact same revision of excel 2000?

cheers
steven

oh, and if you do set the intercept the line is visually wrong anyhow...mine looks right - just the bloody formula is wrong

[Edited by midget1500 - 8/24/2003 11:38:48 PM]
Reply
Old Aug 24, 2003 | 11:38 PM
  #13  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

yeah exactly the same! That is really strange!
Reply
Old Aug 24, 2003 | 11:40 PM
  #14  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

damn it! same version - well, i'm running windows2k pro sp4 - not that this *should* make any difference. of to see if microsoft have a solution...
Reply
Old Aug 24, 2003 | 11:42 PM
  #15  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

mines on XP pro.

I'll try it on Win2K in the morning to see if it makes any difference
Reply
Old Aug 24, 2003 | 11:44 PM
  #16  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Red face



got it to work - using scatter chart instead of line chart (so, is this a bug or my very small brain being stoopid)?

many thanks
steven
Reply
Old Aug 24, 2003 | 11:46 PM
  #17  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

ah, that sort of makes sense...

Unless you use scatter graph excel will not recognise the true values of X, it just uses the numbers you give it as labels and spaces them out evenly.

God only knows how it came up with the answer it did though!
Reply
Old Aug 24, 2003 | 11:52 PM
  #18  
midget1500's Avatar
midget1500
Thread Starter
Scooby Regular
 
Joined: Sep 2001
Posts: 2,033
Likes: 0
From: Bangor, Northern Ireland
Post

so line graphs in excel aren't really curves or anything, just pretty pictures whereas scatter graphs are actual mathematical models? if so then why the hell does it let you select to perform add trendline? just for visual fun? ok, then disable the formula bit - other graph types obviously don't let you add the line.

cheers anyhow - at least i can continue on my merry way
Reply
Old Aug 24, 2003 | 11:57 PM
  #19  
ajm's Avatar
ajm
Scooby Regular
 
Joined: Sep 2002
Posts: 7,824
Likes: 0
From: The biosphere
Post

if so then why the hell does it let you select to perform add trendline?
fwd to bill.gates@microsoft.com :P
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
leg200
Subaru Parts
5
Oct 7, 2015 07:31 AM
has-scooby
Subaru Parts
4
Oct 6, 2015 03:47 PM
bluebullet29
General Technical
9
Oct 5, 2015 02:17 PM




All times are GMT +1. The time now is 08:24 AM.