{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"This notebook shows you how to use the pybettor python package to calculate a horse's implied win probability based on the horse's odds.","metadata":{}},{"cell_type":"code","source":"!pip install \"pybettor\"\nimport pybettor as pb","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-08-23T13:45:22.317725Z","iopub.execute_input":"2022-08-23T13:45:22.318182Z","iopub.status.idle":"2022-08-23T13:45:22.322903Z","shell.execute_reply.started":"2022-08-23T13:45:22.318145Z","shell.execute_reply":"2022-08-23T13:45:22.321932Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"print (pb.implied_prob(2/1, category=\"frac\"))\n\nprint (pb.implied_prob(7/2, category=\"frac\"))\n\nprint(pb.implied_prob(12/1, category=\"frac\"))\n\nprint(pb.implied_prob(36/1, category=\"frac\"))","metadata":{"execution":{"iopub.status.busy":"2022-08-23T13:51:26.505194Z","iopub.execute_input":"2022-08-23T13:51:26.505650Z","iopub.status.idle":"2022-08-23T13:51:26.513085Z","shell.execute_reply.started":"2022-08-23T13:51:26.505602Z","shell.execute_reply":"2022-08-23T13:51:26.512033Z"},"trusted":true},"execution_count":null,"outputs":[]}]}