Predict first
Before you run the code, decide what result would make sense. For the binomial example, try calculating the probability by hand first.
Use the language statisticians actually use. Change a distribution, fit a model, reproduce a published comparison, or write your own code. Your calculations run locally through WebAssembly.
Explore with base R. Choose a prepared lesson example or edit any part of the script. The selected example never runs automatically.
Mean, median, variance, and a histogram · Read the related lesson →
R has not started. Select an example, then press Run R.
Output appears here after you run the script.
No plots yet.
Base R plotting is available, but this is not a managed compute service. A long-running or infinite loop may require reloading the tab, especially with the PostMessage runtime channel. The workbench has no external package installation button and no automatic server-side data storage.
Before you run the code, decide what result would make sense. For the binomial example, try calculating the probability by hand first.
Replace a sample, alter a seed, or change a model. Inspect what happened rather than simply trusting a p-value.
Ask which statistical assumptions your change preserved, which it violated, and whether you could reproduce the result elsewhere.
Runtime implementation: webR. For more examples, explore the interactive laboratories and research bibliography.