GAD: Analysis of variance from general principles