How to simulate bimodal distribution?

后端 未结 1 687
悲哀的现实
悲哀的现实 2020-12-18 18:34

I have the following code to generate bimodal distribution but when I graph the histogram. I don\'t see the 2 modes. I am wondering if there\'s something wrong with my code

相关标签:
1条回答
  • 2020-12-18 19:12

    The problem seems to be just too small n and too small difference between mu1 and mu2, taking mu1=log(1), mu2=log(50) and n=10000 gives this:

    enter image description here

    0 讨论(0)
提交回复
热议问题