Statistics for Lower Bounds on Quantum Query and Learning Graph Complexities