[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: Subject: Linear Regression / Linear Regression Slope Relationship



PureBytes Links

Trading Reference Links

On 15 Aug 2004 13:27:05 -0000, Roy Larsen wrote:

Since I only pick up my E-mail once a day or so, I see you have
several other folks trying to provide a formlation. I didn't check to
see if their code made sense.

To answer your question: Yes---if you convert "b" to Metastock Code
you will have the correct slope for the Linear Regression formula. 

Will that give you the same result as using linregslope ()? I have no
idea. As you have taught me several times, just because it is
programmed by Equis doesn't make it correct! I suggest you take a data
set and test it in Excel with the Excel formula I listed, and compare
that to the results you get from the Metastock formula.

If you need clarification of my math formulation, I can send you a
Word document with all the correct symbols!

Harry


>>Hi Harry
>>
>>I'm totally lost with this mathematical jargon (which I admit is what I asked for), but there a
>>couple of lines of your post that make sense to me. They are...
>>
>>b=the slope (Linear Regression Slope)
>>
>>and
>>
>>b=[(x1-xbar)(y1-ybar)+.......+(xn-xbar)(yn-ybar)]/
>>   [(x1-xbar)sq +......+(xn-xbar)sq]
>>
>>Putting these two statements, can I assume that converting b correctly into MetaStock code will give
>>me an exact replica of the MFL Linear Regression Slope function?




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/