I have a 2d Data Matrix $X_{i,j}$ with a corresponding error matrix $E_{i,j}$. I now have a model $X_{i,j} = a_i + b_j + u_{i,j}$ with $u_{i,j}$ being distributed as $N(0, E_{i,j}^2 + \delta_j^2)$. I want to determine the parameters $a_i, b_j$ and $\delta_j$. Currently I am minimizing the following log likelihood function: $$\text{logL}_{i,j} = 1/2 \text{log}(2\pi(E_{i,j}^2 + \delta_j^2) - 1/2(X_{i,j} - a_i - b_j)^2 / (E_{i,j}^2 + \delta_j^2)$$ with logL = -$\sum\limits_{i,j}\text{logL}_{i,j}$. I am minimizing with the constraint that $\sum\limits_j b_j= 0$ (edit: fixed expression). Therefore I can cannot use the scipy methods which would give me directly an estimation for the inverse hessian (edit: I am currently using SLSQP). The model works very well but I have no access to the fit uncertainties. My question is: How can I determine the covariance matrix in my problem. edit:correctet equation typo
2026-03-26 04:53:16.1774500796
Maximum Likelihood Fit of Matrix: How can I find the Covariance Matrix?
95 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in STATISTICS
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- Statistics based on empirical distribution
- Given $U,V \sim R(0,1)$. Determine covariance between $X = UV$ and $V$
- Fisher information of sufficient statistic
- Solving Equation with Euler's Number
- derive the expectation of exponential function $e^{-\left\Vert \mathbf{x} - V\mathbf{x}+\mathbf{a}\right\Vert^2}$ or its upper bound
- Determine the marginal distributions of $(T_1, T_2)$
- KL divergence between two multivariate Bernoulli distribution
- Given random variables $(T_1,T_2)$. Show that $T_1$ and $T_2$ are independent and exponentially distributed if..
- Probability of tossing marbles,covariance
Related Questions in OPTIMIZATION
- Optimization - If the sum of objective functions are similar, will sum of argmax's be similar
- optimization with strict inequality of variables
- Gradient of Cost Function To Find Matrix Factorization
- Calculation of distance of a point from a curve
- Find all local maxima and minima of $x^2+y^2$ subject to the constraint $x^2+2y=6$. Does $x^2+y^2$ have a global max/min on the same constraint?
- What does it mean to dualize a constraint in the context of Lagrangian relaxation?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Building the model for a Linear Programming Problem
- Maximize the function
- Transform LMI problem into different SDP form
Related Questions in MAXIMUM-LIKELIHOOD
- What is the point of the maximum likelihood estimator?
- Finding a mixture of 1st and 0'th order Markov models that is closest to an empirical distribution
- How does maximum a posteriori estimation (MAP) differs from maximum likelihood estimation (MLE)
- MLE of a distribution with two parameters
- Maximum Likelihood Normal Random Variables with common variance but different means
- Possibility of estimating unknown number of items based on observations of repetitions?
- Defects of Least square regression in some textbooks
- What is the essence of Least Square Regression?
- Finding maximum likelihood estimator of two unknowns.
- Mean of experiment results is the maximum likelihood estimator only when the distribution of error is gaussian.
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
This is more of an extended comment rather than an answer.
First, I wonder if you really want just a common $a$ rather than $a_1, a_2,\ldots$. Otherwise you have a case where the number of parameters increases with sample size which can make obtaining good estimators more difficult.
If the model is $X_{i,j}=a+b_j+u_{i,j}$ with the $u_{i,j}$'s being independent and $u_{i,j}\sim N(0,E_{i,j}^2+\delta_j^2)$, then the log likelihood is
$$\log(L)=-\sum _{i=1}^I \sum _{j=1}^J \left(\frac{(X_{i,j}-a-b_j)^2}{E_{i,j}^2+\delta_j^2}+\log \left(2 \pi \left(E_{i,j}^2+\delta_j^2\right)\right)\right)/2$$
The constraint $\sum_{j=1}^{J} b_j=0$ can be implemented by letting $b_1=-\sum_{j=2}^{J} b_j$.
Rather than listing all of the second order partial derivatives, it's much easier to use a computer algebra system (CAS). The example below uses Mathematica.
$$\left( \begin{array}{cccc} 0.0427931 & -0.00181719 & \text{4.3471562574947714$\grave{ }$*${}^{\wedge}$-18} & 0. \\ -0.00181719 & 0.0427931 & -\text{4.347156257494772$\grave{ }$*${}^{\wedge}$-18} & 0. \\ \text{4.347156257494772$\grave{ }$*${}^{\wedge}$-18} & -\text{4.347156257494772$\grave{ }$*${}^{\wedge}$-18} & 0.0548579 & 0. \\ 0. & 0. & 0. & 0.0514367 \\ \end{array} \right)$$
A bootstrap as suggested by @MarkLStone is a good choice that generally gives good results with a wider variety of distributions but does require a bit more programming and more details to implement than what is given in the referenced answer.