def scale_p(p, L, pc, nu):
    """
     Scales the probability p according to finite size scaling.

     :param p: List of values p to be scaled.
     :param L: System size.
     :param pc: Critical threshold.
     :param nu: Critical exponent.

     :return list: Scaled probabilites.
     """

    return (p - pc) * L**(1 / nu)