Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge | Discrete Distributions
Probability Theory

book
Challenge

Compito

Swipe to start coding

Imagine you posted something to your favorite social network and decided to calculate the number of likes and decide to calculate the probability receive 990990 likes. Follow the algorithm:

  1. Import poisson object.
  2. Calculate the probability of receiving exactly 990990 likes with the mean value 1000000.

Look to the graph that corresponds to the distribution:

task

Soluzione

# Import 'poisson' object
from scipy.stats import poisson

# Calculate the probability
prob = poisson.pmf(k = 990990, mu = 1000000)

print("The probability is", prob)

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 4. Capitolo 7
# Import 'poisson' object
___

# Calculate the probability
prob = ___.___(k = ___, mu = ___)

print("The probability is", prob)
toggle bottom row
We use cookies to make your experience better!
some-alt