Search
📅 Deadline: 6.11.2024 21:59
🏦 Points: 2
In this assignment, you are tasked with computing a confidence interval using the Hoeffding inequality. You can find the complete description of the assignment in the Assignment PDF.
You are provided with a template containing the following files:
Your objective is to implement the function confidence_interval in main.py.
After completing your implementation, you can test your solution using the following commands before submitting it to BRUTE:
python main.py test-cases/public/instances/instance_1.json
Expected output:
The true risk is in the interval [-0.30, 0.30] with probability atleast 0.95 Comparing with reference solution Test OK
python main.py test-cases/public/instances/instance_2.json
The true risk is in the interval [-0.61, 0.61] with probability atleast 0.95 Comparing with reference solution Test OK
python main.py test-cases/public/instances/instance_3.json
The true risk is in the interval [0.13, 0.37] with probability atleast 0.9 Comparing with reference solution Test OK
python main.py test-cases/public/instances/instance_4.json
The true risk is in the interval [-0.23, 0.75] with probability atleast 0.9 Comparing with reference solution Test OK
python main.py test-cases/public/instances/instance_5.json
The true risk is in the interval [0.06, 0.07] with probability atleast 0.95 Comparing with reference solution Test OK
python main.py test-cases/public/instances/instance_6.json
The true risk is in the interval [0.74, 0.82] with probability atleast 0.95 Comparing with reference solution Test OK