Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge 1 | Normal Distribution
Probability Theory

book
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

# 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?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 5. Kapitel 2
single

single

# Import norm object
___
import numpy as np
np.random.seed(0)

# Calculate the probability
prob = ___

print("The probability is", prob)

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt