Design the study
Effect size (correlation)
Correlation under the null (often 0 for "no association").
Small effects: ~0.1, moderate: ~0.3, large: ~0.5 or more.
Effect size (regression)
Baseline correlation under the null hypothesis for the slope test (often 0 for "no linear association").
The correlation you would consider a meaningful regression effect to be able to detect.
For simple regression with one predictor, the significance test on the slope is determined by the correlation between \(X\) and \(Y\). This view lets you set \(r_0\) and \(r_1\) while thinking in "slope" language; the planner uses these same values to compute how many observations you need for both the Pearson correlation and the simple regression slope test.
Confidence = 1 - alpha for a two-sided test.
Common choices are 80% or 90% power.
Advanced settings
Two-sided tests are standard when any increase or decrease in the association matters. One-sided tests focus on a directional effect and reduce the required sample size, but must be justified by your decision context.
Additional info about these settings
Confidence level & alpha: The confidence level (for example, 95%) describes how often the procedure would capture the true correlation if you repeated the experiment many times. Alpha is the tolerated false-positive rate (for example, 5% for a 95% confidence, two-sided test).
Effect size (correlation r): The null correlation \(r_0\) and expected correlation \(r_1\) describe how strong a linear relationship you want to be able to rule out or detect. Small correlations (around 0.10) are subtle; moderate (around 0.30) are noticeable; large (around 0.50+) indicate a strong linear trend.
Power: Power is the probability that your test will detect the specified correlation if it is really present in the population. Higher power reduces the risk of a false negative but requires more observations.
Test type (one- vs. two-sided): Two-sided tests look for any increase or decrease in the correlation, which is standard when you care about changes in either direction. One-sided tests focus on a specific direction (for example, positive correlation only) and can reduce required sample size, but they ignore evidence in the opposite direction.