Stochastic assignment is a method used in transportation planning and network analysis where the probability of choosing a particular route is determined by factors such as travel time, cost, and congestion. It accounts for variability in user preferences and network conditions, providing a more realistic representation of traffic distribution compared to deterministic models.