Skip to content

Commit efede08

Browse files
committed
adapt scipy linregress exercise aufgabe to loesung
1 parent 8bb58ec commit efede08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: exercises-toolbox/4-scipy/2-linregress/aufgabe.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Dabei gilt (Σ = Summe):
1010
N = Anzahl Datenpunkte
1111
Δ = N * Σ(x²) - (Σx)²
1212
A = (N * Σ(x * y) - (Σx) * (Σy)) / Δ
13-
B = (Σ(x²) * (Σy) - (Σx) * (Σx * y)) / Δ
13+
B = (Σ(x²) * (Σy) - (Σx) * Σ(x * y)) / Δ
1414
σ_y = sqrt(Σ((y - A * x - B)²) / (N - 2))
1515
A_error = σ_y * sqrt(N / Δ)
1616
B_error = σ_y * sqrt((Σx²) / Δ)

0 commit comments

Comments
 (0)