Inference just matrix algebra