Quality assurance and statistical control