transcripty.probabilitymodels package¶
Submodules¶
transcripty.probabilitymodels.common_probability module¶
-
class
transcripty.probabilitymodels.common_probability.
CommonProbabilityModel
(p, sigma, Tc, ncoursesattempted, ncreditspercourse, ncreditsgrad)¶ Bases:
transcripty.model.CreditAccumulationModel
This is a child class of CreditAccumulationModel. It implements a call method which evaluates the probability of passing courses given an individual’s ability level and gpa. This method allows the parent class to take care of all simulation
In this model, all individual’s share a probability of passing a course.
-
p
¶ The common probability of passing a course
- Type
float64
-
sigma
¶ The standard deviation of the GPA shock. The higher the sigma, the less correlated ability and GPA are.
- Type
float64
-
Tc
¶ The number of years an individual can stay enrolled in college
- Type
int
-
ncoursesattempted
¶ The number of courses an individual attempts per year
- Type
int
-
ncreditspercourse
¶ The number of credits each course is worth
- Type
int
-
ncreditsgrad
¶ The number of credits required to graduate
- Type
int
-
transcripty.probabilitymodels.heterogeneous_probability module¶
-
class
transcripty.probabilitymodels.heterogeneous_probability.
HeterogeneousProbabilityModel
(gamma_min, gamma_1, gamma_2, sigma, Tc, ncoursesattempted, ncreditspercourse, ncreditsgrad)¶ Bases:
transcripty.model.CreditAccumulationModel
This is a child class of CreditAccumulationModel. It implements a call method which evaluates the probability of passing courses given an individual’s ability level and gpa. This method allows the parent class to take care of all simulation
In this model, the probability with which a student passes their courses is given by
\[p(a) = \frac{1 - \gamma_\text{min}}{1 + \gamma_1 \exp^{-\gamma_2 a_i}}\]-
gamma_min
¶ The minimum probability of passing a course
- Type
float64
-
gamma_1
¶ A parameter of the probability function
- Type
float64
-
gamma_2
¶ A parameter of the probability function
- Type
float64
-
sigma
¶ The standard deviation of the GPA shock. The higher the sigma, the less correlated ability and GPA are.
- Type
float64
-
Tc
¶ The number of years an individual can stay enrolled in college
- Type
int
-
ncoursesattempted
¶ The number of courses an individual attempts per year
- Type
int
-
ncreditspercourse
¶ The number of credits each course is worth
- Type
int
-
ncreditsgrad
¶ The number of credits required to graduate
- Type
int
-