{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyPDqXjNyEWHjGtdjmTOJN8j"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":1,"metadata":{"id":"-gCsq8JkTzVI","executionInfo":{"status":"ok","timestamp":1717751199321,"user_tz":-330,"elapsed":660,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}}},"outputs":[],"source":["import scipy.stats as stats\n","import numpy as np"]},{"cell_type":"code","source":["λ=5\n","ansa=stats.poisson.pmf(3,λ)\n","ansa"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"E77iwdBvT0sE","executionInfo":{"status":"ok","timestamp":1717751199321,"user_tz":-330,"elapsed":8,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"3e051a73-3f63-4744-f49d-4607edcd51fb"},"execution_count":2,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.1403738958142805"]},"metadata":{},"execution_count":2}]},{"cell_type":"code","source":["ansb=stats.poisson.pmf(3,λ)+stats.poisson.pmf(4,λ)+stats.poisson.pmf(5,λ)\n","ansb"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"VebLKrZmT0pL","executionInfo":{"status":"ok","timestamp":1717751199321,"user_tz":-330,"elapsed":6,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"c96f6f7f-1876-41d0-bd86-6fa5900eb76b"},"execution_count":3,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.4913086353499818"]},"metadata":{},"execution_count":3}]},{"cell_type":"code","source":["λ=5/5\n","ansc=stats.poisson.pmf(1,λ)\n","ansc"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"0qX-Yg7QT0mW","executionInfo":{"status":"ok","timestamp":1717751199321,"user_tz":-330,"elapsed":4,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"a6cd1be8-462a-4e15-a518-8085f6464e29"},"execution_count":4,"outputs":[{"output_type":"execute_result","data":{"text/plain":["0.36787944117144233"]},"metadata":{},"execution_count":4}]},{"cell_type":"code","source":[],"metadata":{"id":"t1wIZW_jT0jX","executionInfo":{"status":"ok","timestamp":1717751199835,"user_tz":-330,"elapsed":516,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}}},"execution_count":4,"outputs":[]}]}