The alternative parameter

What it does

Alternative hypothesis for two-sample/one-sample tests and correlations: "two-sided", "greater" or "less"; 1 and -1 (number or text) mean greater and less.

Case and spaces around do not matter ("Greater", " less "). Another value is an error: alternative must be two-sided, greater or less (or 1, -1), got "grater". Empty — the default from Settings.

A one-sided hypothesis gives a one-sided interval: [lower, ∞) for greater, (−∞, upper] for less (for correlations [lower, 1] and [−1, upper]).

Values

Optional; default "two-sided".

Allowed values: "two-sided", "greater", "less"

In plain words

A coach tried a new warm-up with 12 players, and their time on a long run went down by 3 seconds on average. With the setting two-sided, which asks whether the times changed in either direction, the drop could easily be luck. With less, which asks only whether the times went down, the same drop was hard to put down to chance alone. So the one-way question is easier to pass, and that is why he must choose it before he looks at the times. Picking it afterwards would not be fair. The setting greater asks the same one-way question about going up.

Where you use it

Examples

Get it in your sheet

ALS Stats is a free add-on for Google Sheets™.

Install ALS Stats from Google Workspace Marketplace (opens in a new tab)