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
 DavidM Senior Member Posts: 757 Joined: Dec 2013
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.
 « Next Oldest | Next Newest »

 Messages In This Thread HP 50g — import statistical data into hypothesis test - cdmackay - 12-03-2018, 11:48 PM RE: HP 50g — import statistical data into hypothesis test - BartDB - 12-04-2018, 10:53 AM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-04-2018, 07:07 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-04-2018, 07:27 PM RE: HP 50g — import statistical data into hypothesis test - Carsen - 12-05-2018, 06:15 AM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-05-2018, 06:06 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-06-2018, 11:25 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-06-2018, 11:40 PM RE: HP 50g — import statistical data into hypothesis test - Carsen - 12-07-2018, 04:22 AM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-07-2018, 05:55 AM RE: HP 50g — import statistical data into hypothesis test - Carsen - 12-08-2018, 02:43 AM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-08-2018, 07:28 PM RE: HP 50g — import statistical data into hypothesis test - John Keith - 12-08-2018, 09:11 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-08-2018, 10:47 PM RE: HP 50g — import statistical data into hypothesis test - DavidM - 12-07-2018, 05:30 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-07-2018, 11:53 PM RE: HP 50g — import statistical data into hypothesis test - DavidM - 12-08-2018, 04:55 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-08-2018, 07:37 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-08-2018, 07:42 PM RE: HP 50g — import statistical data into hypothesis test - DavidM - 12-08-2018 10:52 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-08-2018, 11:34 PM RE: HP 50g — import statistical data into hypothesis test - cdmackay - 12-08-2018, 11:47 PM

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