Related Experiment Video
Updated: Jul 9, 2025

Lab-Scale Model to Evaluate Odor and Gas Concentrations Emitted by Deep Bedded Pack Manure
Published on: July 19, 2018
Discriminant analysis as a tool to classify farm hay in dairy farms
Aldo Dal Prà1,2, Riccardo Bozzi3, Silvia Parrini3
1Centro Ricerche Produzioni Animali-Soc. Cons. p. A., Reggio Emilia, Italy.
Abstract:
Hay is one of the primary constituents of ruminant feed, and rapid classification systems of nutritional value are essential. A reliable approach to evaluating hay quality is a combination of visual combined inspection by NIRS analysis. The analysis was carried out on 1,639 samples of hay collected from 2016 to 2021 in northern Italy. Discriminant analysis (DAPC) on five hay types (FOM, forage mixtures; APG, first alfalfa cutting with prevalence of graminaceous >50%; PRA, prevailing alfalfa >50%; PUA, purity alfalfa >95%; and PEM, permanent meadows) was performed by ex-ante visual inspection categorization and NIRS analysis. This study aimed to provide a complementary method to differentiate hay types and classify unknown samples. Two scenarios were used: i) all data were used for model training, and the discriminant functions were extracted based on all samples; ii) the assignment of each group was assessed without samples belonging to the training set group. DAPC model resulted in an overall assignment success rate of 66%; precisely, the success was 84, 79, 69, 37, and 27% for PUA, FOM, PRA, APG, and PEM, respectively. In the second scenario, three groups showed percentages of posterior assignment probability higher than 70% to only one group: PUA with PRA (~ 99%), PRA with PUA (~71%), and PEM with FOM (~75%). Discriminant analysis can be successfully used to differentiate hay types and could also be used to assess factors related to hay quality in addition to NIRS analysis.
Related Concept Videos
Chi-square Analysis
The chi-square test was developed by Pearson in 1990.
The first step of performing a Chi-square analysis is to establish a null hypothesis, which assumes that there is no real...
Multiple Regression
Farmers can use multiple regression to determine the crop yield based on more than one factor, such as water availability, fertilizer, soil properties, etc. Here, the crop yield is the response or dependent variable as it depends on the other independent variables. The analysis requires the construction of a scatter plot...
One-Way ANOVA
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...
Types of Hypothesis Testing
When the null and alternative hypotheses are stated, it is observed that the null hypothesis is a neutral statement against which the alternative hypothesis is tested. The alternative hypothesis is a claim that instead has a certain direction. If the null hypothesis claims that p = 0.5, the alternative hypothesis would be an opposing statement to this and can be put either p > 0.5, p < 0.5, or p...
One-Way ANOVA: Unequal Sample Sizes

