Challenge 1
Here we are going to work with a distribution from the previous chapter!
Tehtävä
Swipe to start coding
Please calculate the probability that your cat's weight will be exactly 5
kg. Compare it to the graph and the values of confidence intervals. Assume that for this distribution, we have such parameters:
- Mean equals
4.2
. - Stadard deviation equals
1
.
Ratkaisu
9
1
2
3
4
5
6
7
8
9
# Import norm object
from scipy.stats import norm
import numpy as np
np.random.seed(0)
# Calculate the probability
prob = norm.pdf(x = 5, loc = 4.2, scale = 1)
print("The probability is", prob)
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 2
single
9
1
2
3
4
5
6
7
8
9
# Import norm object
___
import numpy as np
np.random.seed(0)
# Calculate the probability
prob = ___
print("The probability is", prob)
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme