{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyP4kv2nTUjmvXAcWVDogjyL"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":1,"metadata":{"id":"oh8-XBGY5TtI","executionInfo":{"status":"ok","timestamp":1717751538432,"user_tz":-330,"elapsed":691,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}}},"outputs":[],"source":["import scipy.stats as stats\n","import numpy as np"]},{"cell_type":"code","source":["mu = 128\n","sigma = 13\n","ansa = 1-stats.norm.cdf(140,mu, sigma)\n","ansa"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"DDEatUs25hLj","executionInfo":{"status":"ok","timestamp":1717751538432,"user_tz":-330,"elapsed":9,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"618b7cf8-f153-4d38-acdc-a07bca40c2aa"},"execution_count":2,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.17798355986686554"]},"metadata":{},"execution_count":2}]},{"cell_type":"code","source":["ansa1 = stats.norm.sf(140,mu, sigma)\n","ansa1"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"XUbfJAfs5pFV","executionInfo":{"status":"ok","timestamp":1717751538433,"user_tz":-330,"elapsed":6,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"f3324610-7ad1-4d64-af1d-f4da81fe9383"},"execution_count":3,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.17798355986686554"]},"metadata":{},"execution_count":3}]},{"cell_type":"code","source":["ansb = stats.norm.cdf(115,mu, sigma)\n","ansb"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"Jiutpn3T5pIv","executionInfo":{"status":"ok","timestamp":1717751538433,"user_tz":-330,"elapsed":5,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"d66dbefd-326b-4fe1-d376-c8bad53e9401"},"execution_count":4,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.15865525393145707"]},"metadata":{},"execution_count":4}]},{"cell_type":"code","source":["ansc = stats.norm.cdf(140,mu, sigma)-stats.norm.cdf(115,mu, sigma)\n","ansc"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"IRGnVNjO5pLq","executionInfo":{"status":"ok","timestamp":1717751539042,"user_tz":-330,"elapsed":612,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"48d1296f-dad7-46ec-f1f1-12d1ca2e14ad"},"execution_count":5,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.6633611862016774"]},"metadata":{},"execution_count":5}]},{"cell_type":"code","source":["ansd = stats.norm.cdf(110,mu, sigma)+stats.norm.sf(145,mu, sigma)\n","ansd"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"ner5rrXt5pPB","executionInfo":{"status":"ok","timestamp":1717751539043,"user_tz":-330,"elapsed":12,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"f3eb817e-8cce-4a8c-f9b6-92f22cc66c18"},"execution_count":6,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.1785738990753668"]},"metadata":{},"execution_count":6}]}]}