+ Reply to Thread
Results 1 to 14 of 14

A graph showing normal distribution over Time variable

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    A graph showing normal distribution over Time variable

    I want to have a bell curve showing 1000 people distributed over a time duration. How is it possible in excel?

    Specifically, I want to have my x-axis to be a time duration for example running between 4pm - 6pm with an increment of 1 minute
    On the Y axis I want to show the number of people. So if there are 1000 people in total then according to normal distribution there will be a bell curve showing number of people at any minute in the above mentioned time duration.

    How do I achieve it in Excel.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: A graph showing normal distribution over Time variable

    Hi and welcome. Do you have the distribution already ?

    If you're asking how to set it up I'd put my time data in column A using 120 rows being one row for each 1 min increment between 4pm and 6pm. I'd put my distribution data in column B and chart this data.

    Have I understood your dilemma? If not provide some more info.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Thanks for the reply.

    What I need is like this.

    X-Axis = Time starting from 4:pm and ending at 7:00 pm (total 180 points in increments of 1 minute)

    Y-Axis = Number of Students

    Total Number of Students = 1000

    So at any given time on X-Axis it will show how many students will be there.

    The target is that I want to show when 1000 people will arrive at a destination.

    I do not have any data, except that I know the total should be 1000.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: A graph showing normal distribution over Time variable

    normal distribution curve.xlsx

    I'm still not 100% clear on what you want but look at this. It represents 1000 students distributed over a 3 hour period. I have also created a cumulative column so you can see at what time a particular threshold might be reached.

  5. #5
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Fantastic and thanks this is almost what I was looking for. But I totally dont understand how did you come up with those values. I want to learn it.

    I also want to learn how we can make it to work for variables like changing time from 3 hours to 4 hours. Or changing number of students.

    It would be really helpful if you could give me an idea of how you created these numbers and specially the magic number 22.53049 in the formula.

    Similarly, how did you put the time series in the graph.

    A step by step elaboration may help me learn to do it myself. I really appreciate your help.

  6. #6
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: A graph showing normal distribution over Time variable

    OK. Lets start with the explanation first.

    You have 180 rows of data for a three hour spread with 1 minute intervals.

    A normal distribution curve is normally drawn showing + and - 3 standard deviations but in reality it is asymptopic so it never ends. I decided to go to 4 stadard deviations just to be sure.

    So in column A I created your time intervals starting at 4 pm (16:00:00) and incrementing by 1 minute. The easieist way to do this is to type 16:00:00 into the first cell and Excel will recognise this as a time format. It actuall stores it as 0.666667 because this is what 16 divided by 24 is decimally. Now in the cell below that I typed 16:01:00 and again excel recognises this as a time. Highlighting both cells you can drag down to fill the full 180 rows with all the times you require.

    In column B I wanted to put equivalent x axis normal distribution figures in. As I said above I wanted it to span from -4 to 4. This is a range of 8 across 180 cells so the interval between cells was 0.0444444. Again starting with the first cell in column B I typed in -4 then the next cell, -4 +0.0444 = -3.955556. Draging and copying these down the full 180 rows gave me my normal distribution range of x values.

    The Normdist formula in column C takes the value in column B, applies a mean of 0 (ie centres the curve on 0) and a standard deviation of 1 (so that 1 in my x axis is equal to 1 SD) and gives me a corresponding y value. Now the area under a normal distribution chart will = 1. If you add all the values up you actually get 22.5. Why? because the area is actually the sum of all the numbers multiplied by the width of each increment. In this instance each increment isn't 1 but is 0.04444. So we have to correct for the width of the increments not being 1. If we multiply by 0.044444 its actually the same as dividing by 22.5 (i was just a bit sloppy with my arithmetic before and was working backwards and I think I only used 0.044 rounded too early and got a slight error). Applying this correction factor to each cells in column C ensures the area under the curve (or all the sum of the individual values is equal to 1). Then becasue you wanted to use 1000 students I simply multiplied each cell by 1000 to factor it up.

    Interestingly this took me longer to write the explanation than it did to create the sheet

    Now to work out how to make it variable for you. I may not get a chance today but I'll see what I can do

  7. #7
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Thats awesome.

    I understand it completely now. Just dont know how you managed to put the time labels on the x-axis.

  8. #8
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Thats awesome.

    I understand it completely now. Just dont know how you managed to put the time labels on the x-axis.

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: A graph showing normal distribution over Time variable

    normal distribution curve.xlsx

    Didn't take as long as I thought.

    Enter variables into the yellow shaded cells - student number, start time and stop time.

    To answer your question above, the chart is a scatter chart. When you enter a range of data that is a time series it automatically uses time formats in the x axis.

  10. #10
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Thanks a lot. That is really wonderful. I am very happy with your help.

    I have another question, but dont know if I should post it as a separate one. Actually, now I want to achieve two things
    1- Create another graph with the same method you used, but this time the peak in the curve should be 5% (or any other %age) less in height and it may be fatter on the edges.
    2- I want to show both the curves to appear in a same window.

    Can you please suggest what can be done. If I simply reduce the overall data generated, by 5%, it does not give the desired result. I am assuming there should be some way to modify the data.

  11. #11
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Never mind for the 2nd point. I have found how to put two graphs in one box.
    However I am still trying to achieve the first point.

  12. #12
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: A graph showing normal distribution over Time variable

    normal distribution curve.xlsx

    The web site was playing up. This should do what you want. Use the sd number to make your graph shorter and wider numbers greater than 1 or slimmer and taller - numbers less than 1. I left teh baseline graphs in so you can see.
    If you use Sd numbers of say 0.8 to 1.2 the cumulative will stay about right but if you start putting in big numbers - say 3 or 4 then you'll notice hte cumulative doesn't add up to the total. this is because you're pushing the tails of the graph out beyond the calcualted range

  13. #13
    Registered User
    Join Date
    02-09-2015
    Location
    australia
    MS-Off Ver
    2010
    Posts
    8

    Re: A graph showing normal distribution over Time variable

    Thats awesome !!!
    Totally does what I wanted it to do.

  14. #14
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: A graph showing normal distribution over Time variable

    Great. Glad it worked for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Normal distribution shaped graph
    By pulsewidth in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 05-25-2013, 10:18 AM
  2. normal distribution graph
    By pulsewidth in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-24-2013, 12:25 AM
  3. How to create a bell curve / normal distribution graph
    By anstasija in forum Excel General
    Replies: 5
    Last Post: 04-17-2011, 10:21 PM
  4. Replies: 5
    Last Post: 01-31-2011, 12:21 AM
  5. Graph a normal distribution chart?
    By Barbara in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-02-2006, 03:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1