+ Reply to Thread
Results 1 to 4 of 4

Formula for Weight Avg., Histogram, Std Deviation

  1. #1
    Registered User
    Join Date
    07-24-2007
    Location
    Oregon
    Posts
    79

    Formula for Weight Avg., Histogram, Std Deviation

    Hello,

    I am wondering if there is a formula/script which will do the following:

    1. Plot the histogram
    2. Calculate Weighted Average
    3. Calculate Standard Deviation

    of a given sample data.

    I am attached a sample file with data in it.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Please Login or Register  to view this content.
    The formula in E2 is =SUMPRODUCT(xi, wi) / SUM(wi)

    The array formula in E3 is =SQRT( SUMPRODUCT(wi * (xi - wxAvg)^2) / ( ( COUNTIF(wi, ">0") - 1) * SUM(wi) / COUNTIF(wi, ">0") ) ) (from http://www.itl.nist.gov/div898/softw...2/weightsd.pdf)

    Array formulas MUST be confirmed with Ctrl+Shift+Enter, not Enter. You'll know you did it correctly if curly braces appear around the formula in the Formula Bar; you cannot type in the braces directly.
    Last edited by shg; 09-03-2008 at 08:27 PM.

  3. #3
    Registered User
    Join Date
    07-24-2007
    Location
    Oregon
    Posts
    79
    Thanks for the info. How do I plot the histogram? I tried going through Tools->Data Analysis->Histogram but it gives me weird kind of results.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Just plot the data you have as a scatterplot?

+ 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. A formula template
    By ajaysehgal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 06:12 AM
  2. Conditional formula question
    By odditie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2007, 09:47 PM
  3. How do I subsitute part of a formula linked to another workbook?
    By Scej12 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-03-2007, 10:10 AM
  4. use cell content as cell address in formula
    By nnsc in forum Excel General
    Replies: 4
    Last Post: 11-05-2006, 03:12 AM
  5. Cell References in a Formula
    By cillowjr in forum Excel General
    Replies: 0
    Last Post: 09-12-2006, 10:54 AM

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