{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyPNg5323z/qxFv1GqjGrWdx"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":1,"metadata":{"id":"lIv3TDA2pe-L","executionInfo":{"status":"ok","timestamp":1717752871251,"user_tz":-330,"elapsed":1307,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}}},"outputs":[],"source":["import scipy.stats as st\n","import numpy as np"]},{"cell_type":"code","source":["ansa = round(st.t.ppf(q = 0.975, df=16),3)\n","print(\"Upper tail area of .025 with 16 degrees of freedom:\", ansa)"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"ih4USyCupv6V","executionInfo":{"status":"ok","timestamp":1717752871252,"user_tz":-330,"elapsed":7,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"1da3ce45-7287-4f10-86e1-50b1c8b716b1"},"execution_count":2,"outputs":[{"output_type":"stream","name":"stdout","text":["Upper tail area of .025 with 16 degrees of freedom: 2.12\n"]}]},{"cell_type":"code","source":["ansb = round(st.t.ppf(q = 0.99, df=35),3)\n","print(\" Upper tail area of .01 with 35 degrees of freedom:\", ansb)"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"UzztNTvjpv9m","executionInfo":{"status":"ok","timestamp":1717752871953,"user_tz":-330,"elapsed":7,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"fbc6e1a5-6774-4461-b9d9-da8086a7328e"},"execution_count":3,"outputs":[{"output_type":"stream","name":"stdout","text":[" Upper tail area of .01 with 35 degrees of freedom: 2.438\n"]}]},{"cell_type":"code","source":[],"metadata":{"id":"-6X7QZI0pwA5","executionInfo":{"status":"ok","timestamp":1717752871954,"user_tz":-330,"elapsed":3,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}}},"execution_count":3,"outputs":[]}]}