def sub_arp(L: list):
    L_final = []
    for i in range(len(L)):
        result = L[(- i)]
        for i in range(len(self.coef_.values['coefficient'])):
            elem = self.coef_.values['predictor'][i]
            if (elem.lower() == 'intercept'):
                result -= self.coef_.values['coefficient'][i]
            elif (elem.lower()[0:2] == 'ar'):
                nb = int(elem[2:])
                try:
                    result -= (self.coef_.values['coefficient'][i] * L[(- nb)])
                except:
                    result = None
            L_final = ([result] + L_final)
    return L_final
def sub_arp(L: list):
    L_final = []
    for i in range(len(L)):
        result = L[(- i)]
        for i in range(len(self.coef_.values['coefficient'])):
            elem = self.coef_.values['predictor'][i]
            if (elem.lower() == 'intercept'):
                result -= self.coef_.values['coefficient'][i]
            elif (elem.lower()[0:2] == 'ar'):
                nb = int(elem[2:])
                try:
                    result -= (self.coef_.values['coefficient'][i] * L[(- nb)])
                except:
                    result = None
            L_final = ([result] + L_final)
    return L_final