The point of trolley car problems is to try to remove any uncertainty from the process of making moral choices, because uncertainty makes the entire utilitarian consequence evaluation process unmanageable. Pragmatically, there is massive uncertainty in all moral choices, even in trolley problems.
Examples --
there are people on the two lines. Are either group certain to be killed? Most people on rail lines know there can be rail traffic, and are listening/looking for rail hazards. And plan on getting out of the way on their own. Maybe the people on the lines are deaf, or stoned, or injured/pinned? If this is specified in the "problem", it is basically NEVER going to be knowledge one actually has in such a crisis.
Are there people ON the trolley? If so, those people should probably be your greatest concern, per 1 above. Do you even know? Is there a curve in one of the lines, such that the trolley would derail and roll at speed? Are there other people who might be endangered by the derailing on either line? Is one only a siding, and is the siding a place the trolley could derail into a field, and come to a stop, or instead crash into a building, or a solid barrier? Should possible people in buildings be your even greater concern than either the passengers or the people on the tracks? Is one of the lines a long stretch of level that the trolley can come to a stop safely on? Can you even SEE what the two lines do, beyond where the people on them are?
What are the properties of the switch? Is is on the slope, such that the trolley is at a lower speed at the switch? Is the switch analog, such that one can try to set it between the two lines? If so, would that derail the trolley, or just POSSIBLY derail it? And would that be preferable to letting it run down one of the lines?
Is there a way to stop the trolley? A "fat man on a bridge" is in some of these problems, to tempt one to kill him by pushing him in the way of the trolley. Is the s feasible? a) CAN one push a much heavier person onto the tracks? What is the probability of success of this? b) CAN a person's body stop a runaway trolley? My strong suspicion on this is "no", people are soft and small compared to what is needed to stop a trolley, no matter how much fat is in the "fat person", but that is added to the uncertainties. c) are there other more likely options to stop the trolley, such as stacked railway ties, or a metal bar near the tracks? If so, what tare THEIR odds of stopping the trolley, and of your being able to get them on the tracks quickly enough?
People are not of identical worth, as well as not being in identical risk. A labor gang of murderers chained together overseen by a sexually abusive deaf guard on one line, vs. a future Mother Teresa who is incapacitated by an ongoing mystic vision on the other, can tremendously change the calculus. IF you only knew.
In a crisis, one has to act quickly, and much of the important information and probabilities needed to arrive at a morally optimal outcome are not available to the actor. We have a chance to reflect when studying moral issues academically, and it should be the purpose of these studies, to prepare us for these crises. I consider trolley problems to be the ANTITHESIS of useful preparation for a crisis. The whole POINT of trolley problems is to try to force a decision between bad outcomes, and inure one to deliberately sacrificing others lives. They also are premised on no uncertainty for any critical issue. Anyone who did their moral training on trolley problems, will START by looking to sacrifice people, and will be befuddled by how to deal with real world uncertainties.
In a real crisis, one will have massive uncertainties. The actions one should take, AS A CONSEQIENTIALIST, should be based on trying to find a possible solution which does no harm to ANYONE. Applied to a trolley problem, and with the multiple uncertainties listed above, I would almost certainly try to derail the trolley at the switch, where it can derail in a wide railbed and probably not kill its passengers or the people on the track, or bystanders near the two rail lines it would careen down out of sight if it went down either. An analog switch in a middle position is the first thing I would look for. If that isn't possible, I would recruit the fat person to help me try to wedge bars or railroad ties into the gaps of the rail intersection, to try to make the wheels jump off the track. I would focus on the intersection, as straight track has little opportunity to wedge anything, and my object is likely to just be pushed out of the way. Then try to get far enough away from the track that we are not crushed by the trolley ourselves.
This recommendation is an example of how to apply uncertainty to consequentialist ethics. And try to salvage "trolley problems" as a moral training device.