From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Arne Babenhauserheide Newsgroups: gmane.lisp.guile.user Subject: Re: Normal distribution random numbers Date: Sat, 30 May 2020 23:30:48 +0200 Message-ID: <87r1v1glfb.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="45798"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.4; emacs 26.3 Cc: guile-user@gnu.org To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat May 30 23:31:56 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 1jf95A-000Bo5-P6 for guile-user@m.gmane-mx.org; Sat, 30 May 2020 23:31:56 +0200 Original-Received: from localhost ([::1]:60978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf959-0000b1-9G for guile-user@m.gmane-mx.org; Sat, 30 May 2020 17:31:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf948-0000XV-Co for guile-user@gnu.org; Sat, 30 May 2020 17:30:52 -0400 Original-Received: from mout.web.de ([217.72.192.78]:49879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf947-0007rG-12 for guile-user@gnu.org; Sat, 30 May 2020 17:30:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590874248; bh=P1+zHKpmXPd/SiZKpHJ7dO55bU9G4hEtxBs1OE6DWOE=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=fltTa2dbyihfGwQRVsAl8AjgB1duBJF5T62DD5c5yAlvWMGbejesdoM6S5XEGLBxC HDzifbarEr43IpgkTmSicI+8MAI3NKhavjtWH5PzYlBJOrOiWGhNqpPUVqsutKiloB pHPl0eCCqY+ppvpc4lNnVMigwqsiDbjMI6PrSnCI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from fluss ([80.136.16.82]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MTPit-1jX90Z1fiZ-00SLZR; Sat, 30 May 2020 23:30:48 +0200 In-reply-to: X-Provags-ID: V03:K1:bc8pMmk23uovHaOnffjBclIfJlgxGDxXtQaRDpUmxZf3DHmQNCU weEgJKS615y5b2YKJ6TG9W59uqNov9dsXB08FL3Xxu6jDKdwC2lR0VR6rRJENKlBs2vFldG kZTeFZj/7UeIj4DQDGvpDfOrRADI2QgeDCW7+MTOZjtlAIXaDWUDEQ+mJW6Tsz+v9FijX4Y CHGBJFKzeN9/C8p2kyrjg== X-UI-Out-Filterresults: notjunk:1;V03:K0:ccLp61YKAg8=:D5w6ArqVQgiF0s4Ni9G1Iz jtHun++omGTY7yo4xR2g3EfS6J+zGfyx9jQ1tWiOdULTeKU729Q8Mgsdx/rLFvynsFce/HoBd vh56RJ/iAA6a/6NahOHRuskToi7+bvjWQPXdz9wS2pFz5FBPBIpiKsYai0ODotiFB/RGJqcFz vmwmO4ZThmx5S5xeUp30mj9z+RNQ2kiKuIsMSd1fkCFV4SSQzN8rT5GtrxfNUvQzHe5gTcXlk /Xvxrv5gzkFmcfxmcbwcy3DnfNqZiqDDd6murhuw/OBBJO64CC9klzI2u8SAh+OuWXEqxH9tK AWx8IQHZL2dNFBQbJe6+iYYzWs3oRXdfSqP4DdUtuazflgDFOeOLSxii6D4G130AqnXczlG79 ybkf1GVubKF4f3KDkFfMR+FI/EyF+wvxpXiIfId4H0KEuuWixxB5JmA1tcCw2zFsBJVSMqROZ EMn9DSKbBK6ujpc4ciRAUmUH3ZCHA9xP5v0G3lAVvC/Y0mwlrQAjGTtXyhZC4xmJvYMn23tEW PhJmV/k6kvY6EGBnzPiYoltvOLhD1So6KFuGmYLzmcmHJX1592PwZkDXeFgauK4vUQJspt9DB 9PH2tohsCm2ItRQUUQ2dZPpARVtZLvYoxtqcw/1wR4OSv1PfJnqIMaU0Q6PoJFE1aMslQQRuw aW06OlXGOrN6b3U/Si13z+ac+6X1t1BBjm//uAhKst2vX1/RDk7xN13sbctAz7qzfsd19OiXE mgXc2ssbISJ/D/u4JdCuW/wstk2T+1yY2atMKSvdKAGXLBiVxsAUoSG0se708JjXfLow8Hfi Received-SPF: pass client-ip=217.72.192.78; envelope-from=arne_bab@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 17:30:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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:16540 Archived-At: 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 =E2=80=A6 =E2=80=A6 > 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=E2=80=99t 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=3D91ec8dc32652 Best wishes, Arne --=20 Unpolitisch sein hei=C3=9Ft politisch sein ohne es zu merken