def inv_cor2raw(p,s,v):
    """ Type I & II error inversion in reverse direction. From corrected to raw.
    
    Args:
        p : corrected positive (prevalance) fraction [0,1]
        s : specificity [0,1]
        v : sensitivity [0,1]
    
    Returns:
        q : raw positive fraction [0,1]
    """
    q = p*(v+s-1)-s+1
    return q