Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 10 Solutions - Definition / Implementation mismatch for the logistic #49

Closed
EricRobertCampbell opened this issue Oct 6, 2021 · 1 comment · May be fixed by #50
Closed

Chapter 10 Solutions - Definition / Implementation mismatch for the logistic #49

EricRobertCampbell opened this issue Oct 6, 2021 · 1 comment · May be fixed by #50

Comments

@EricRobertCampbell
Copy link

In the final exercise for Chapter 10, there is a slight mismatch between the definition of the 3-parameter logistic function and its implementation. In the definition, we see that the parameter a is multiplying the other term in the exponent of the exponential.

original

However, in the implementation in the next cell, we see that the variable a is dividing the rest of the terms (in the assignment to x).

original code

The Wikipedia link also uses the convention of having the parameter a multiply the terms. I believe that the easiest solution would be to change the value of a to 1/100 and change it to multiplication in the definition of x.

EricRobertCampbell added a commit to EricRobertCampbell/ThinkBayes2 that referenced this issue Oct 6, 2021
- 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 it multiplication in the assignment to `x`
- Closes AllenDowney#49
@AllenDowney
Copy link
Owner

Got it. Will fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants