malee/_malee.py
def aar(rors):
    """The Arithmetic Average Return is a way of calculating
    an average return for an investment over multiple periods.
    It is simply the average of all the arithmetic returns for
    each period. To calculate it, you add up the individual
    Arithmetic Return values, rarith, for each period, then
    divide by the number of periods `n`.

    Args:
        rors: List of all rate of returns over multiple time periods

    Returns:
        The arithmetic average return of a given investment

    Example:
        Here's how you can calculate the arithmetic average
        return by providing a list of individual returns in
        multiple periods of time:

        >>> import malee
        >>> malee.aar([.1, -.05, .07])
        0.04
    """
    R = 0
    for ror in rors:
        R += ror
    R /= len(rors)
    return R
The Arithmetic Average Return is a way of calculating
    an average return for an investment over multiple periods.
    It is simply the average of all the arithmetic returns for
    each period. To calculate it, you add up the individual
    Arithmetic Return values, rarith, for each period, then
    divide by the number of periods `n`.

    Args:
        rors: List of all rate of returns over multiple time periods

    Returns:
        The arithmetic average return of a given investment

    Example:
        Here's how you can calculate the arithmetic average
        return by providing a list of individual returns in
        multiple periods of time:

        >>> import malee
        >>> malee.aar([.1, -.05, .07])
        0.04
    
The Arithmetic Average Return is a way of calculating
an average return for an investment over multiple periods.
It is simply the average of all the arithmetic returns for
each period. To calculate it, you add up the individual
Arithmetic Return values, rarith, for each period, then
divide by the number of periods `n`.
The Arithmetic Average Return is a way of calculating an average return for an investment over multiple periods . It is simply the average of all the arithmetic returns for each period . To calculate it you add up the individual Arithmetic Return values rarith for each period then divide by the number of periods ` n ` .
def aar(rors):
    R = 0
    for ror in rors:
        R += ror
    R /= len(rors)
    return R
def aar ( rors ) : R = 0 for ror in rors : R += ror R /= len ( rors ) return R
The Arithmetic Average Return is a way of calculating
an average return for an investment over multiple periods.
The Arithmetic Average Return is a way of calculating an average return for an investment over multiple periods .
"""The Arithmetic Average Return is a way of calculating
    an average return for an investment over multiple periods.
    It is simply the average of all the arithmetic returns for
    each period. To calculate it, you add up the individual
    Arithmetic Return values, rarith, for each period, then
    divide by the number of periods `n`.

    Args:
        rors: List of all rate of returns over multiple time periods

    Returns:
        The arithmetic average return of a given investment

    Example:
        Here's how you can calculate the arithmetic average
        return by providing a list of individual returns in
        multiple periods of time:

        >>> import malee
        >>> malee.aar([.1, -.05, .07])
        0.04
    """
The arithmetic average return of a given investment
The arithmetic average return of a given investment
rors
List of all rate of returns over multiple time periods
List of all rate of returns over multiple time periods
examples
Here's how you can calculate the arithmetic average
return by providing a list of individual returns in
multiple periods of time.


Here ' s how you can calculate the arithmetic average return by providing a list of individual returns in multiple periods of time .