Compute Expectations
The ability to compute the expected value with given probabilities and values.
Question template
You roll a six-sided die. If the number is even, you gain A points, otherwise you lose B points. What's the expected value of your points after one roll? Assume a fair six-sided die with faces numbered 1 to 6.
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.