Notices
Non Scooby Related Anything Non-Scooby related

mathematics problem - (and excel)

Thread Tools
 
Search this Thread
 
Old 24 August 2003, 05:51 PM
  #1  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 24 August 2003, 10:37 PM
  #2  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 24 August 2003, 10:51 PM
  #3  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 24 August 2003, 10:53 PM
  #4  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
Post

try fitting a different type of curve?
Old 24 August 2003, 11:01 PM
  #5  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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!
Old 24 August 2003, 11:06 PM
  #6  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 August 2003, 11:16 PM
  #7  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
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...
Old 24 August 2003, 11:21 PM
  #8  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 August 2003, 11:27 PM
  #9  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 August 2003, 11:33 PM
  #10  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 August 2003, 11:36 PM
  #11  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
Post

glad to be of help!

Do you have any options set in the trendline options, like trying to force an intercept?
Old 24 August 2003, 11:38 PM
  #12  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 24 August 2003, 11:38 PM
  #13  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
Post

yeah exactly the same! That is really strange!
Old 24 August 2003, 11:40 PM
  #14  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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...
Old 24 August 2003, 11:42 PM
  #15  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
Post

mines on XP pro.

I'll try it on Win2K in the morning to see if it makes any difference
Old 24 August 2003, 11:44 PM
  #16  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 August 2003, 11:46 PM
  #17  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
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!
Old 24 August 2003, 11:52 PM
  #18  
midget1500
Scooby Regular
Thread Starter
 
midget1500's Avatar
 
Join Date: Sep 2001
Location: Bangor, Northern Ireland
Posts: 2,033
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 August 2003, 11:57 PM
  #19  
ajm
Scooby Regular
 
ajm's Avatar
 
Join Date: Sep 2002
Location: The biosphere
Posts: 7,824
Likes: 0
Received 0 Likes on 0 Posts
Post

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



Quick Reply: mathematics problem - (and excel)



All times are GMT +1. The time now is 11:09 PM.