> For the complete documentation index, see [llms.txt](https://theshank.gitbook.io/ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theshank.gitbook.io/ai/deep-learning/generative-vs-discriminative/generative-modelling.md).

# Generative Modelling

### Goal

Given training samples from some distribution, learn a model that represents that distribution

### Density Estimation&#x20;

Given the samples, here you learn the density function of the distribution of the samples.&#x20;

![](https://1877261540-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LFDuA0A2VRqmT31Blrq%2F-M9HNhg1s51TgPOzk9TH%2F-M9LMLiBjnShp1UCBsCo%2Fimage.png?alt=media\&token=246aa8e4-f1e9-473b-a47d-f961bda2d7bb)

### Sample Generation

Given the samples, here you learn a model that can generate new sample from the distribution of given samples.

![](https://1877261540-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LFDuA0A2VRqmT31Blrq%2F-M9HNhg1s51TgPOzk9TH%2F-M9LMRmk1Vnv9P-up0Hb%2Fimage.png?alt=media\&token=a160506d-e81a-486b-81dd-893541f64dbf)
