Challenge 1
Here we are going to work with a distribution from the previous chapter!
Aufgabe
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
.
Lösung
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)
War alles klar?
Danke für Ihr Feedback!
Abschnitt 5. Kapitel 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)
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen