Mathe am 24.02.2025
This commit is contained in:
parent
ca5d922ff2
commit
464ad80789
2 changed files with 70 additions and 0 deletions
29
schule/mathe/calc/2025-02-24.jl
Normal file
29
schule/mathe/calc/2025-02-24.jl
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Mathe am 24.02.2025
|
||||
|
||||
## Nr. 7a-c)
|
||||
|
||||
#TODO: herausfinden, wie man sowas berechnen kann
|
||||
# Zudem mir Lernvideos anschauen
|
||||
|
||||
## Nr. 10
|
||||
### b)
|
||||
|
||||
n=100 # Nummer an Versuchen
|
||||
x=3 # Wie viele Wappen geworfen werden
|
||||
p=0.5 # Chance auf Wappen(oder x)
|
||||
binomial(n,x) * p^x * (1 - p)^(n-x)
|
||||
|
||||
|
||||
## Sigmaregel
|
||||
erwartungswert(n,p) = n*p
|
||||
mu(n,p) = erwartungswert(n,p)
|
||||
standardabweichung(n,p) = sqrt(n*p*(1-p))
|
||||
sigma(n,p) = standardabweichung(n,p)
|
||||
|
||||
function sigmaregel(i, n, p)
|
||||
sigma = sigma(n,p)
|
||||
mu = mu(n,p)
|
||||
mu - i * sigma
|
||||
end
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue