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

Fix issues in the normalization of log-likelihoods in outputAnalysis classes #770

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

abensonca
Copy link
Collaborator

Compute likelihood for the scatter in the stellar mass-halo mass relation using only active bins. Specifically, removes inactive bins from the data vector and covariance matrix before evaluating the likelihood.

In the normalization of a multivariate Gaussian, there is a term $\mathrm{det}(\mathbf{\Sigma})^{-1/2}$. Previously, when evaluating log-likelihoods, this was included as $-(1/2) \mathrm{det}(\mathbf{\Sigma})$ instead of $-(1/2) \log \mathrm{det}(\mathbf{\Sigma})$. This is now corrected.

… relation using only active bins

Removes inactive bins from the data vector and covariance matrix before evaluating the likelihood.
…minant of the covariance matrix

In the normalization of a multivariate Gaussian, there is a term $\mathrm{det}(\mathbf{\Sigma})^{-1/2}$. Previously, when evaluating log-likelihoods, this was included as $-(1/2) \mathrm{det}(\mathbf{\Sigma})$ instead of $-(1/2) \log \mathrm{det}(\mathbf{\Sigma})$. This is now corrected.
@abensonca abensonca added bug Something isn't working constraints labels Jan 22, 2025
@abensonca abensonca self-assigned this Jan 22, 2025
Copy link

⚠️ Possible misspelled word 'mx' in file 'source/output.analyses.correlation_function.F90'
⚠️ Possible misspelled word 'ₐₓ' (3 instances) in file 'source/output.analyses.correlation_function.F90'
⚠️ Possible misspelled word 'pᵢ' (3 instances) in file 'source/output.analyses.volume_function_1d.F90'
⚠️ Possible misspelled word 'pᵢ' in file 'source/output.analyses.volume_function_1d.F90'
⚠️ Possible misspelled word 'unoperator' in file 'source/output.analyses.volume_function_1d.F90'

@abensonca abensonca added this pull request to the merge queue Jan 23, 2025
Merged via the queue into master with commit f7dab50 Jan 23, 2025
303 of 304 checks passed
@abensonca abensonca deleted the fixLikelihoodNormalization branch January 23, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working constraints
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant