Kullback-Leibler divergence for vector and normal distribution

Hi @Rehana_popy welcome to the discourse ! Maybe you should open a new thread instead of resurecting a 2 years old one ? Also have a look at Please read: make it easier to help you :slight_smile:

Otherwise yes, your strategy looks globally OK but without a MWE I cannot judge much more.