Help with creating residual plot
#1

Hello!
I searched the internet high and low, but I could not find any information how to create a residual plot after you run the linear regression. It is simple on a TI calculator used as an example in my class, but I am clueless on how to do the same on my HP50g.
When I attempt to create a list of residual by entering "L2-Y1(L1)" it creates an error because "Y1(L1)" creates a list with one additional number that I am not sure where is coming from.
But, yes, I am very clueless on how to do this.

Hope you all can help,
Phillip

#2

I've got a 48gII, not a 50, but my understanding is that it's similar enough to be getting on with. The question then becomes: how are you creating your L1, your L2, and your Y1?

A bit of playing around shows that if I have something like '.505+1.475*X' stored into Y1, if I then execute Y1 on a list L1 (in either RPN or alg mode) I get a result list whose first element is .505 and the other elements are 1.475 times the elements of L1.

If I write Y1 instead using "ADD" instead of + (in RPN, << 1.475 * .505 ADD>>; probably something similar in alg) then it works as expected. Also, if I rewrite the equation to '1.475*X-(-.505)' it works as expected.

It looks like + is the only operator that doesn't act on each member of a list, which seems a little annoying.

#3

Hi I don't undersstand what are L1 and L2 here...

Perhaps one way is a small program considering that:

- The stat matrix is \GSDAT (SigmaDAT)

- The predicted value given with the PREDV command

And add a new column in the stat matrix with mesured vaue minus expected value

Are you in RPL mode ?

Example :

« \GSDAT DUP ->COL DROP SWAP « PREDV » MAP - 3 COL+ »

[[ 1. 10. ]
[ 2. 23. ]
[ 3. 29. ]]

-> '1.66666666667+9.5*X'

[[ 1. 10. -1.1666666667 ]
[ 2. 23. 2.3333333333 ]
[ 3. 29. -1.1666666667 ]]

Then you can draw the plot


Edited: 10 Oct 2012, 2:39 p.m.



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP PRIME -- How to plot a phase Bode plot ? dg1969 0 918 11-02-2013, 03:22 PM
Last Post: dg1969
  Creating an App, and evolution for the extreme beginner (me) Geoff Quickfall 4 1,928 10-20-2013, 01:27 AM
Last Post: Geoff Quickfall
  wp34s Emulator (Display Residual) Barry Mead 3 1,430 07-23-2013, 04:22 AM
Last Post: Barry Mead
  HP 48G -- entering more than one equation into the PLOT application Randal B 1 1,040 01-24-2013, 12:25 AM
Last Post: Chris Dreher
  OT: Calculator as a plot device Ethan Conner 11 2,947 05-07-2012, 08:41 PM
Last Post: Matt Agajanian
  [WP34S] Creating My Own calc_full.bin Les Wright 14 3,502 04-05-2012, 03:39 PM
Last Post: Marcus von Cube, Germany
  HP 39gII plot speed Alex Mark (Greece) 5 1,914 02-12-2012, 03:04 PM
Last Post: Gilles Carpentier
  50g won't plot summation function, but emulator will. Hal Bitton in Boise 2 1,139 04-12-2011, 07:14 PM
Last Post: Hal Bitton in Boise
  unable to plot UTPN stroran 3 1,341 04-21-2010, 12:10 PM
Last Post: Kiyoshi Akima
  MCODE (what else?): Creating a new ROM from the 41 --> Transfer? Geir Isene 16 3,796 01-19-2010, 08:10 AM
Last Post: Ángel Martin

Forum Jump: