A matrix equation arising in statistical filter theory