ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Mean squared likelihood score as Fisher-information estimate

For a scalar parameter, Fisher information is the expected square of the derivative of log likelihood. The implementation averages squares of the supplied scores. It estimates that information only when the inputs actually are likelihood-score samples drawn from the…

Implementation mathematicsSource recovered; runtime not executed
Learn with the Atlas

Learn to read this model

Start with the symbols, follow the operations, and check what the result means.

Open guided lesson
gh-eq-48991e9920d7a078source-comment-equation
FisherInformationcomputesI(θ)=E[(∂logp/∂θ)2]FisherInformation computes I(θ) = E[(∂log p/∂θ)²]

Read the equation

For a scalar parameter, Fisher information is the expected square of the derivative of log likelihood. The implementation averages squares of the supplied scores. It estimates that information only when the inputs actually are likelihood-score samples drawn from the intended model; arbitrary scalar scores merely produce a mean square.

Terms & definitions

TermMeaning in this source
scores

Samples of ∂log p/∂θ

theta

Scalar parameter

I

Fisher-information estimate

How it works

Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.

Assumptions & limits

Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.

Original context

Read the surrounding source passage
func MutualInformation(px, py, pxy []float64) float64 {
	hx := ShannonEntropy(px)
	hy := ShannonEntropy(py)
	hxy := ShannonEntropy(pxy)
	return hx + hy - hxy
}

// FisherInformation computes I(θ) = E[(∂log p/∂θ)²]
func FisherInformation(scores []float64) float64 {
	if len(scores) == 0 {
		return 0.0
	}

	sum := 0.0
	for _, s := range scores {
		sum += s * s
	}
	return sum / float64(len(scores))
Exact original notation
FisherInformation computes I(θ) = E[(∂log p/∂θ)²]

Related builds

Sources & provenance

01
Go mathematical helpers
Lines 114–114 · 33aa84f2aa61
02
Go mathematical helpers
Lines 114–114 · 33aa84f2aa61

Search equations, builds, manuscript text, and recovered sources.