Updated freq_study() to return Z-scores of None if sd is 0