Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
772 views
in Technique[技术] by (71.8m points)

statistics - How to approximate a 2d distribution with mu and covariance in python

I want to create a heatmap, depending on just the mu and the covariance. The background is, that I want to approximate a specific complex distribution with just these two parameters. I don't want to sample from these distribution, but assign values between 0 and 1, while at mu the value should be 1.

I already found a way to use the precision matrix for that purpose, i.e. approximate using the first two moments:

enter image description here

In this equation, u refers to a specific coordinate. Can anyone explain me, how this is done with the covariance matrix? Is there maybe an easy way to do this in python?

The heat maps I want to generate look as follows:

enter image description here

question from:https://stackoverflow.com/questions/65848422/how-to-approximate-a-2d-distribution-with-mu-and-covariance-in-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...