Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

This is kind of a programming question, but really it's math in disguise!

I'm working on a little project that will look at the size of a file and make sure it's in within an acceptable range based on previous file sizes. I know how to get the average file size of previous files and all that.

I'm wondering if there is an equation or a method that I can dynamically create an acceptable range depending on avg file size, number of files, or some other statistical value. I can provide more details if needed, but I really don't know where to start.

share|improve this question
    
I apologize if this is better suited for Statistical Analysis -- I figured Mathematics would cover that subset so I didn't really look further until after I posted. Migrate if necessary. –  Shaded Feb 4 '11 at 15:36

1 Answer 1

up vote 1 down vote accepted

You may want to try testing whether the size of the file in question is within say 1 standard deviation of the average size.

share|improve this answer
    
That will probably work, my only concern is in cases where the sample size is small. For example one case I have in testing my results give me an average size of 234 kB and a Standard Deviation of 204 kB which is kind of a huge range. Never-the-less thank you very much for the response! –  Shaded Feb 4 '11 at 15:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.