title: How to generate lognormal distribution with specific mean and std in python?
body: <p>I need to generate a lognormal distribution with mean=1 and std=1. That is:<code>w~logN(1,1)</code>. I need the variable <code>w</code> has <code>mu=1</code> and <code>sigma=1</code>. However, when I use <code>scipy.stats.lognorm</code>, I have trouble on manipulating the parameters <code>s,loc,sigma</code>. The code is as follows:</p>
  <pre><code>import numpy as np
  from scipy.stats import lognorm
  
  lo = np.log(1/(2**0.5))
  sig = (np.log(2.0))**0.5
  print(lognorm.stats(s=sig,loc=lo,scale=1.0,moments='mv'))
  </code></pre>
  <p>The result is:</p>
  <pre><code>(array(1.06763997), array(2.))
  </code></pre>
  <p>This is clearly not I want. I want the mean=1 and sigma=1.</p>
  <p>Could anyone please tell me how to manipulate with s,loc, and scale to get desired results?</p>