Post Reply 
HP 50g — import statistical data into hypothesis test
12-08-2018, 10:52 PM (This post was last modified: 12-08-2018 11:11 PM by DavidM.)
Post: #20
RE: HP 50g — import statistical data into hypothesis test
(12-08-2018 07:42 PM)cdmackay Wrote:  ...you could use these stack arrays to test:
x1 x2: [3. 4.]
s1 s2: [1.5 1.6]
n1 n2: [5. 6.]

I was actually more hoping for an example of the ΣDAT array, as the method I'm suggesting takes care of computing the mean/sdev/count automatically. I have no idea if my data here is sensible, but here's an example of what I'm talking about:

Use whatever means you're comfortable with for creating a ΣDAT array with the following contents:
Code:
[
   [ 1 1.1 ]
   [ 2 2.2 ]
   [ 3 3.3 ]
   [ 4 4.4 ]
   [ 5 5.5 ]
]

Store the following program in the same directory as the above array. I've named mine ST2 for "Student's T-Test 2-variable":
Code:
ST2
\<<
   MEAN AXL EVAL
   SDEV AXL EVAL
   \GSDAT SIZE EVAL NDUPN DROP
\>>

Activate the appropriate form with:
right-shift 5
5 ENTER
6 ENTER

You'll then be shown the input form. With the value for x1 currently highlighted, press alpha, then ST2, then ENTER.

That's where the magic happens. The ST2 program is run, which outputs (in order) x1, x2, s1, s2, n1, n2. These values are then automatically inserted into their corresponding fields in the form. You are then free to enter whatever you like for α and "pooled?" to continue.

For reference, the above data creates the following values when run on my 50g:
x1: 3
x2: 3.3
s1: 1.58113883008
s2: 1.73925271309
n1: 5
n2: 5

Hopefully my intent is clear enough, even if my sample data is totally meaningless!

Does this make sense?

Notes:
- I have no idea if the dimensions of this sample ΣDAT are correct for this type of application
- This method of "auto-populating" fields in a form doesn't work universally. Many forms have special restrictions and utility routines which keep this type of mechanism from working as it does here.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 50g — import statistical data into hypothesis test - DavidM - 12-08-2018 10:52 PM



User(s) browsing this thread: 1 Guest(s)