where Q is either defined by equation (24) if the pattern is over-represented or by equation (28) if under-represented.