Two Categorical Variables: Fertilizer Treatment and Plant Health

An agricultural researcher is testing whether a new fertilizer treatment reduces plant disease. They randomly assign plants to either fertilizer treatment or control. After growing, they record whether each plant is disease-free or diseased.

Compare the two groups and explore risk, odds, relative risk, and risk difference to understand if the treatment is effective.

To use the interactive with a keyboard, press Tab to move through the controls. When sample size box is selected, use arrow keys to change the value. Then tab to Generate Data or Reset and press Enter.

Setup

Each click generates a new random experiment.

Click "Generate Data" to start