def seasonal_naive(data, n=7, **kwargs):
    """The seasonal naive forecast for the next point is the value observed ``n`` points
    prior in the series. 

    The seasonal parameter (``n``) does not have units of time, but rather units of one 
    observation. For example, to account for weekly cycles within daily observations, ``n=7``.

    Args:
        data (np.array): Observed data, presumed to be ordered in time.
        n (int): period of data seasonality 

    Returns:
        float: a single-valued forecast for the next value in the series.
    """
    forecast = data[-n]
    return forecast
