issues
search
AllenDowney
/
ThinkBayes2
Text and code for the forthcoming second edition of Think Bayes, by Allen Downey.
http://allendowney.github.io/ThinkBayes2/
MIT License
1.8k
stars
1.49k
forks
source link
Changed logistic model code to match description
#50
Open
EricRobertCampbell
opened
2 years ago
EricRobertCampbell
commented
2 years ago
In the final exercise, in the exponent of the exponential, the parameter
a
is multiplying the other term
However, in the accompanying code, the parameter
a
is dividing it
The accompanying Wikipedia link about Item Response Theory also uses the convention of multiplying in the factor
a
Easy fix: in the code switch
a
from
a = 100
to
a = 1 / 100
, and switch it to multiplication in the assignment to
x
Code change:
Closes AllenDowney/ThinkBayes2#49
a
is multiplying the other terma
is dividing ita
a
froma = 100
toa = 1 / 100
, and switch it to multiplication in the assignment tox