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

book
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

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

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 2
single

single

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

# Calculate the probability
prob = ___

print("The probability is", prob)

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt