Hostname: page-component-76d6cb85b7-jhrpq Total loading time: 0 Render date: 2026-07-14T06:38:42.043Z Has data issue: false hasContentIssue false

Unraveling Hidden Patterns in Fed Cattle Negotiated Cash Prices Using Machine Learning

Published online by Cambridge University Press:  11 June 2025

Zuyi Wang*
Affiliation:
Department of Agricultural Sciences, Clemson University, Clemson, SC, USA
Man-Keun Kim
Affiliation:
Department of Applied Economics, Utah State University, Logan, UT, USA
Hernan Tejeda
Affiliation:
Department of Agricultural Economics and Rural Sociology, University of Idaho, Moscow, ID, USA
*
Corresponding author: Zuyi Wang; Email: zuyiw@clemson.edu
Rights & Permissions [Opens in a new window]

Abstract

The decline in fed cattle cash sales and its impact on price discovery are concerning. This study extends existing literature by utilizing machine learning to explore factors, particularly decision trees and random forests, to explore factors influencing fed cattle price ranges, complementing traditional regression analyses. These models uncover hidden patterns and provide additional insights into the cattle market. Key variables such as weight range, head count, and trade location, are found to be associated with price ranges. Notably, the weight range emerges as the primary variable influencing the price range, with smaller weight ranges linked to lower price ranges.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Southern Agricultural Economics Association
Figure 0

Figure 1. Box plots of cattle price range, average price, weight, and weight range. Box plots are created using the raw dataset with 138,956 observations. Dark circles represent potential outliers, defined as values exceeding Q3 + 1.5 IQR. However, note that price range and weight range are highly skewed with long right tails, making the IQR method less effective for detecting outliers in these variables.

Figure 1

Figure 2. Decision trees demonstration using simulated price range and weight dispersion.

Figure 2

Figure 3. Decision trees demonstration using simulated price range and weight dispersion.

Figure 3

Table 1. Basic statistics of cattle price variables from 2001 to 2019

Figure 4

Figure 4. Cattle price range histogram.

Figure 5

Table 2. Basic statistics of cattle transaction variables from 2001 to 2019 (n = 135,836)

Figure 6

Table 3. Transaction count by day of week and month (2001–2019, n = 135,836)

Figure 7

Figure 5. Decision tree results. Notes: Decision tree with default options, specifically cp = 0.01. At the root node, the average price range is $1.01/cwt. The first attribute used to split the dataset is the weightRange <1. When the weight range is less than 1 lb/head, 41.6% of the dataset is classified with the price range of $0.075/cwt. When the weight ranges are greater than 1 lb/head, the average price range is $1.68/cwt (about 58.4% of transactions), leading to further data partitioning based on the location and selling terms, where DS = dressed and LV = live.

Figure 8

Figure 6. Decision tree results, cp = 0.003. Notes: The decision tree with the optimal complexity parameter (cp = 0.003) is presented. Similar to Figure 5, at the root node, the average price range is $1.01/cwt. The first attribute used to split the dataset is weightRange <1. When the weight range is less than 1 lb/head, 41.6% of the dataset is classified with a price range of $0.075/cwt. When the weight range exceeds 1 lb/head, the average price range increases to $1.68/cwt, representing approximately 58.4% of the transactions. This split leads to further partitioning based on attributes such as location, selling basis, head count, and others. Notably, when the weight range exceeds 60 lbs/head, the price range increases to $2.34/cwt, affecting 17.3% of the dataset.

Figure 9

Figure 7. Important variables with decision tree in Figure 6. Note: Variable importance with cp = 0.003 is determined by calculating the relative influence of each variable: whether that variable was selected to split on during the tree building process, and how much the error in Equation (1) improved (decreased) as a result.

Figure 10

Figure 8. Cumulative distribution of actual and predicted cattle price ranges.

Figure 11

Figure 9. Cumulative distribution of actual and predicted cattle price ranges with Random Forest.

Figure 12

Figure 10. Important variables from Random Forest (RF). Note: Variable importance in the RF model, generated from 1,000 decision trees, is determined by evaluating the relative influence of each variable.

Figure 13

Figure 11. Important variables from Random Forest (RF) after removing zero price range observations. Note: Variable importance in the RF model, generated from 1,000 decision trees, is determined by evaluating the relative influence of each variable.

Figure 14

Figure 12. Important variables from Random Forest (RF) after excluding dairy cattle transactions. Note: Variable importance in the RF model, generated from 1,000 decision trees, is determined by evaluating the relative influence of each variable.