Skip to content

Commit

Permalink
try obs item info
Browse files Browse the repository at this point in the history
  • Loading branch information
giadasp committed Apr 6, 2021
1 parent 99496ef commit 5c6b4fc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/information/item_observed_information.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,20 @@ function _item_observed_information(
latent::Latent1D,
response_val::Float64
)
return _item_expected_information(parameters, latent)::Matrix{Float64}
#return _item_expected_information(parameters, latent)::Matrix{Float64}
p = _probability(latent, parameters)
i = (1 - p) * p
h = (- p^2) * i
j = response_val * i
den = p^2
i_aa = - h * (latent.val - parameters.b)^2 / den # v p.49 Kim, Baker: - L_11
i_ab =
(
p * ((parameters.a * (latent.val - parameters.b) * h) +
(p * (response_val - p)))
) / den # X p.50 Kim, Baker: - L_12 #TODO
i_bb = - parameters.a^2 * h / den # v p.49 Kim, Baker: - L_22
return [i_aa i_ab; i_ab i_bb]::Matrix{Float64}
end

########################################################################
Expand Down

0 comments on commit 5c6b4fc

Please sign in to comment.