Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RSQ function

 
Goto page Previous  1, 2
   Soft32 Home -> Mac -> Excel RSS
Next:  Insert menu missing "from scanner or camera&..  
Author Message
John McGhie

External


Since: Jul 28, 2007
Posts: 1803



(Msg. 16) Posted: Thu Nov 05, 2009 7:20 pm
Post subject: Re: RSQ function [Login to view extended thread Info.]
Archived from groups: microsoft>public>mac>office>excel (more info?)

Thanks Bob:

I flick-passed that to someone who will actually understand the question Smile

I'll get back to you if we get an answer.

Cheers


On 5/11/09 10:07 PM, in article C7191934.B68E%b_jordan@xtra.co.nz, "Bob
Jordan" <b_jordan DeleteThis @xtra.co.nz> wrote:

> No I run 2004 and it pops up occasionally and I have now located a number of
> other people who have seen it. They can be found using refs in my previous
> posting.
>
> The one that stimulated this post was earlier (I think) in this thread
> showing almost exactly the same thing as I have experienced but in Excel
> 2008.
>
> RSQ does not seem to fail very often so there is something I do not
> understand.
>
> I just tried it then and managed to make it fail.
>
> Note this is a first time run of Excel after a clean install last night.
>
> This is not elegant but try it in 2004 (Note I have 11.5.5 running on a
> 10.4.11 Tiger powerPC iMac
>
> In B5-9 put 1,2,3 and 4 i.e. the x values
>
> In C2-4 put 1,2,3
>
> In C5 put equation =$C$2*B5+$C$3*(B5-$C$4)^2 and propogate down to C9
> That is a quadratic which will be most linear when C3=0
>
> In cell c11 put =RSQ(B5:B8,C5:CCool
>
> For test purposes in cell D11 put =RSQ({0,1},{1,0})
> That should always have value 1 but is a perfectly negative correlation
>
> Now run solver to set cell c11 to a maximum by adjusting cells C2-4
>
> It will fiddle with C2 and C4 and may get any value but C3 will come out
> very small. The RSQ is essentially 1 - correct.
>
> But look in cell d11 - it shows -1 that is impossible!
>
> Now set c2-4 back to 1,2,3
>
> The RSQ value goes to -0.48795 or something like it
>
> A negative R2 value - what the?
>
> Now using RSQ and solver is valid to find a quick model fit (if care taken)
>
> But not if it screws up the RSQ function from then on.
>
> I have also seen it in a graph where a -ve R2 is shown on a trendline.
>
> I would love someone to say what this is and how to avoid it.
>
> I have put the file in my drop box and it can be accessed using the link
>
> http://dl.getdropbox.com/u/2835140/RScrewed.xls
>
> If you just load it you will see the -ve values.
>
> But enter the sheet data the long way first.
>
> Take care in interpreting what happens - Excel only recomputes a line if
> something has changed. If you edit the RSQ line or one of the values it will
> become correct.
>
> But the problem goes away sometimes - it is crazy to try and find a pattern.
>
>
> On 11/5/09 10:35 PM, in article C718E797.3AC9%john@mcghie.name, "John
> McGhie" <john DeleteThis @mcghie.name> wrote:
>
>> Hi Bob:
>>
>> I can't produce the fault here, in either Excel 2008 or the next version.
>>
>> Do you have a more extensive test we can try?
>>
>> Cheers
>>
>


--

This email is my business email -- Please do not email me about forum
matters unless you intend to pay!

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:john@mcghie.name
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Need the right function... - I'm working with two worksheets; one has the following columns: (1) name of sponsor, (2) level of sponsor ($ amount),..

function - On worksheet 1 I have a list of suppliers in the first column. On worksheet 2 I have 2 columns: name of supplier and..

SUMIF function - I am trying to use SUMIF function with Excel X, Mac OS 10.2.6 . I want to sum those amounts in col B which have dates i...

Function VLOOKUP - How do I get VLOOKUP to recognize a cell reference for lookup_value? It only works when I enter a number into the..

handout function - When printing a number of slides using the handout function (i.e. 6 slides per page), for an unknown reason only the....

frequency function - Ok, I can use the frequency function. Now, is there a simple way to calculate what the averages are for the different...
       Soft32 Home -> Mac -> Excel All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]