Compute Expectations
The ability to compute the expected value with given probabilities and values.
Question template
A fair N-sided die is rolled once. What is the expected value of the number shown?
Use it
from datasets import load_dataset
ds = load_dataset("narunraman/steer", "compute_expectations")curl "https://steer-benchmark.cs.ubc.ca/api/sample?element_name=compute_expectations&n=5&seed=42"
See the Reference for the parameters.