From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Normal distribution random numbers Date: Sun, 31 May 2020 01:16:23 +0200 Message-ID: References: <87r1v1glfb.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78942"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: guile-user@gnu.org To: Arne Babenhauserheide Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun May 31 01:16:41 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jfAiW-000KOg-Ty for guile-user@m.gmane-mx.org; Sun, 31 May 2020 01:16:40 +0200 Original-Received: from localhost ([::1]:40992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfAiV-0004Fo-QT for guile-user@m.gmane-mx.org; Sat, 30 May 2020 19:16:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfAiL-0004Fh-2t for guile-user@gnu.org; Sat, 30 May 2020 19:16:29 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:34296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfAiJ-0002ao-M3 for guile-user@gnu.org; Sat, 30 May 2020 19:16:28 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A20C016005F for ; Sun, 31 May 2020 01:16:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1590880584; bh=kJ3UYGAhi4ZyRYR9qjPfAvzsCprQOZUchCjXBvS8Ndg=; h=Subject:To:Cc:From:Date:From; b=i7jULYihXUuq/y1Ikx8Ub4VEeZykeiyQ2fPAybtLa/XFqJnqWvyTZzpmTuOz6GUs4 8YN4zkOgTLVyttEL0uIHHZGSGwY/l5VO9HJiTT2nqQwx3T3eFSESkna7IGbQdvUyN9 SJD0X2Jyg3ywEDE0d6DibD51gbMVh1CmSX+FQS1q2zDla0ReIFwIwlK1m3poRoU3kp N3lGEi8+X05qPqarRixH3PuDtE/vV2W66zDR/L9WS0sTqz7cWDhIVArXiB377/706v 14D5ELAxZcHVD7p6WbtL65E9Eaa2Z1XrA+XPk/Xheh+cyK7dV9b2DtAqe6iMYxwp1u dAczU5GNNeQOQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49ZHPN1S1Yz9rxL; Sun, 31 May 2020 01:16:23 +0200 (CEST) In-Reply-To: <87r1v1glfb.fsf@web.de> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 19:16:24 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16541 Archived-At: Hi Arne! Thanks for the pointers! On 5/30/20 11:30 PM, Arne Babenhauserheide wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: >> Then I thought: How would I get normal distributed random numbers? I >> don't have a project or program in mind for this, but it struck me, that >> I do not know, how to get a normal distribution from a uniform >> distribution. So I dug into the matter … > … >> So my question is: Is there a good implementation in the Guile universe >> already? (Or a simple way to implement it?) I don't really need it right >> now, but I think this thing could be an obstacle for many people without >> serious math knowledge and it would be good to know, where to find it, >> should one have need for normal distributed random numbers. > I don’t know how random:normal does it, just that I used it. > > See https://www.gnu.org/software/guile/manual/html_node/Random.html > > If you want to add defined covariance, you can use cholesky > decomposition: https://hg.sr.ht/~arnebab/wisp/browse/examples/cholesky.scm?rev=91ec8dc32652 > > Best wishes, > Arne