Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6537 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a file where the field in each record holds a sample value, in this case the number of stems in vegetation plots. For example:

Record 1 - #stems = 0

Record 2 - # stems = 1

Record 3 - # stems = 0

Record 4 - # stems = 2

etc.

As this data accumulates I would like to calculate the sample standard deviation as a running function. For example:

Record 1 - #stems = 0

Record 2 - # stems = 1 - s[records 1 to 2] =1.4142

Record 3 - # stems = 1 - s[records 1 to 3] =1.0

Record 4 - # stems = 2 - s[records 1 to 4] =0.8164

etc.

Unfortunately, the default standard deviation function in FM is only for all records. It only calculates the function for the entire population of records and will not produce a running amount.

I know I could do repeated finds for a subset of the records, use the summary standard deviation function, and then transfer that number into another field for the particular record. But it seems so crude. I'd like to simply have a calculation field that would calculate and retain the running standard deviation. Does anyone know of a simple way to do this?

Posted

Lol, I remember very little about stDev since last year... I'm never doing statistics again!...

But see if the attached looks right.

test.zip

Posted

Wouldn't the standard deviation between

Record 2 - # stems = 1 - s[records 1 to 2] =.5

Record 3 - # stems = 1 - s[records 1 to 3] =.4714045207910317

Record 4 - # stems = 2 - s[records 1 to 4] =.7071067811865475

Posted

That's what i get if i use the StDevP() function and use 0,1,1,2 for the stem values.

Posted (edited)

http://www.csgnetwork.com/stddeviationcalc.html

http://invsee.asu.edu/srinivas/stdev.html

was telling me something different. Dont know which is supposed to be used in this case but the one thing that that is certain is that I have no idea where he was getting those other figures at.

Edited by Guest
reworded
Posted

I'm not arguing, i think those figures were just made up :P . Steve'll probably know which one he needs in the end, i forget what they are for anyway lol, all i remember is linear regression, variance, median, mean and that's about it.

Posted

Beautiful! Just what I needed.

And I understand your feeling about statistics. I used to feel that way, but I've had way too many experiences of driving several hundred miles to (for example) census a rare plant population and then found several months later when I analyzed the data that there weren't enough samples to have reasonable confidence in the results. And its a lot worse when you try to compare different years and find that you can't really say if the population is the same, declining or increasing. Now I probably spend as much or more time planning than actually collecting data.

Thanks.

Posted

I need the sample standard deviation, not the population standard deviation. Population standard deviation is the square root of the population variance; sample standard deviation is the square root of the sample variance. For my particular use right now, I need the sample standard deviation. Of course, that's easy enough to change if I need to.

Posted

I was thinking of doing that, but what if the records are entered out of order and then sorted for some reason?

... Or doesn't it matter in this case?

Posted

I so have no clue what you did there, but i'm sure it was brilliant so I'll pull it apart later. I always learn things from your files comment so thanks for always posting so many alternative ways of doing things :P Your my role model.

Posted

Lol, I think you give me too much credit, but still it's nice to hear that from someone like you (even if it is jokingly :P )

This topic is 6537 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.