+ Reply to Thread
Results 1 to 3 of 3

Aggregate Mean and Std Dev

  1. #1
    Forum Contributor
    Join Date
    10-08-2018
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 365
    Posts
    104

    Aggregate Mean and Std Dev

    Hi,

    Does Excel have the formula to calculate aggregate mean and standard deviation for a data set whose subpopulation Ns, means and SDs are known?
    Please see the attached example. I need values for Mean and SD for the total sample in row 28.

    Thanks for your help in advance.

    Bharath
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Aggregate Mean and Std Dev

    The aggregate mean, E[X], is simple: dot product of sample mean and sample size arrays divided by sum of sample size array.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Aggregate standard deviation is more involved. Assuming each sample's variance were based on dividing by the sample's N-1 rather than N, I believe it should be

    SD[Xs]2 = Var[Xs] = sum((Xsi - E[Xs])2) / (Ns - 1)

    (Ns - 1) SD[Xs]2 = sum((Xsi - E[Xs])2) = sum(Xsi2) - Ns E[Xs]2

    sum(Xsi2) = (Ns - 1) SD[Xs]2 + Ns E[Xs]2

    Var[X] = sums(sum(Xsi2)) / sums(Ns) - E[X]2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by hrlngrv; 03-31-2021 at 10:06 PM. Reason: correction

  3. #3
    Forum Contributor
    Join Date
    10-08-2018
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 365
    Posts
    104

    Re: Aggregate Mean and Std Dev

    Perfect! I am so grateful to you hrlngrv!! Thank 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. [SOLVED] Aggregate Max versus Aggregate Large
    By ChemistB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2020, 03:38 PM
  2. aggregate function
    By jojo101 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-10-2020, 01:16 AM
  3. Aggregate Help
    By mike2246 in forum Excel General
    Replies: 2
    Last Post: 04-24-2020, 01:45 AM
  4. Aggregate by ID in DAX
    By JB_100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2017, 02:35 AM
  5. [SOLVED] Aggregate Formulas
    By excel girl in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2014, 11:09 AM
  6. Best way to aggregate?
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2009, 04:38 PM
  7. [SOLVED] aggregate calculations
    By [email protected] in forum Excel General
    Replies: 0
    Last Post: 05-26-2005, 05:15 PM

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