Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9250293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:24:46+00:00 2026-06-18T10:24:46+00:00

The average of the sum of a normally distributed variable with a mean of

  • 0

The average of the sum of a normally distributed variable with a mean of 0 is zero. That works. The product of e to the power of a normally distributed variable with a mean of 0 should be 1. But when I do it in Python, I get a product that is higher than 1. Any explanation for this?

sumProduct = 0.0
iterations = 100000

for j in range(iterations):

    product = 1.0
    for i in range(10):
        normalVar = numpy.random.normal(0.0, 0.1)
        product *= math.exp(normalVar)

    sumProduct += product

print sumProduct/iterations # Outputs 1.05

Shouldn’t it output 1.0? The expected value of the product variable should be 1.0, and the average of all the product variables should be 1.0. So why does it output 1.05? (Changing the number of iterations and the standard deviation changes the output, but it always greater than one). Thanks for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:24:47+00:00Added an answer on June 18, 2026 at 10:24 am

    The mean of a log-normal variable is exp(mu + 1/2 sigma^2), where mu and sigma are the parameters of the associated normal distribution. In this case, the associated normal distribution is the distribution of the logarithm of the variable ‘product’, which has mu = 10 times 0.0 and sigma^2 = 10 times 0.1^2 = 0.1. Therefore the mean of the log-normal variable is exp(0.0 + 1/2 times 0.1) = exp(0.05) which is approximately 1.05.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to average some .jpg images which are corrupted by zero-mean Gaussian additive
so I'm trying to make a program that will output the sum, average, and
I have a simple general weighed average computation in my SELECT : SELECT ROUND(SUM((G.UnitsAcademic*GD.Grade))/SUM(G.UnitsAcademic),3)
I am trying to overlay a moving average over an OHLC chart but it
I am having some problems creating a query that gives me the average of
I'm writing some python code that's supposed to parse a CSV file. Calculate the
So I am trying to calculate the average and sum of an array, however
I have two tables I need to create an average sum from... Caravan Category
Here's an example table: Location Sum Count Average ---------------------------------------------- - United States 9623 743
I'm trying to query mysql for an average of SUM time (taken from datetime

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.