Using t-tests to get trials until significance ?

  • Context: Graduate 
  • Thread starter Thread starter mirumirai
  • Start date Start date
  • Tags Tags
    Significance
Click For Summary
SUMMARY

This discussion focuses on using t-tests to determine the number of trials needed to achieve statistical significance in an experiment comparing two datasets. The user is attempting to assess which dataset fits a logarithmic regression line better by calculating r² values and performing a t-test for unequal variances, yielding a p-value of 0.73. The user has derived a formula to estimate the required number of trials until the t-statistic reaches 1.96, indicating significance, but is uncertain about the implications of differing means and variances in their datasets.

PREREQUISITES
  • Understanding of t-tests, specifically t-tests for unequal variances
  • Familiarity with logarithmic regression analysis
  • Knowledge of statistical significance and p-values
  • Basic proficiency in statistical formulas and calculations
NEXT STEPS
  • Research the implications of unequal variances in t-tests
  • Learn about sample size determination for hypothesis testing
  • Explore advanced regression analysis techniques
  • Study the use of bootstrapping methods for estimating sample sizes
USEFUL FOR

Researchers, statisticians, and data analysts involved in experimental design and statistical analysis, particularly those working with t-tests and regression models.

mirumirai
Messages
3
Reaction score
0
Using t-tests to get "trials until significance"?

Hi all,
I am stumped on how to achieve this with the data I have. My PI thinks there is a way, but I can't seem to find it. We want to see whether we should go ahead with this experiment or if it will take too much time.

Basically, I have 2 sets of data. I am looking to see which one conforms to a logarithmic regression line better, i.e. which one has better fit. To do that, I checked the r^2 values, and then did a t-test for unequal variance on the residual sum of squares. The difference was miniscule (p=.73).

Now, what I have at the moment is the formula for the t-test for unequal variances:
t=(xa-xb)/sqrt((sa+sb)/n)

where xa and xb are the sample means, sa and sb are the sample variances, and n is the number of trials (the actual formula uses sa/na + sb/nb, but I have the same number of data points for each set of data)

I manipulated it to show how many trials I need until t=1.96 (basically just close to significance)
n=(sa+sb)/((xa-xb)/t)^2

The issue I have with this, though, is that the means and variances could be different. How can I use this to calculate the estimated number of trials when the data I have may not be accurate? Is there even a way to do this?
Thanks for any help.
 
Physics news on Phys.org

Similar threads

  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K