Scorching ray is always more damaging if you have the same chance to hit
I could tell you even before running the numbers that this would be the case. As long as both spells are on equal playing ground (both have adv/dis, etc.), the higher average damage will always win out. This is because even though scorching ray is split among 3 attacks, the average damage will stay the same. The difference between scorching ray and chromatic orb's damage is only going to be the deviation (the likelihood that the result is close to the average) in the damages:

Notice that the scorching ray damage is slightly more likely to hit near the average (since there are more dice involved). As you can see, I had to correct the scorching ray by 3 points for them to line up (to show the different deviations) meaning scorching ray will deal 3 more damage than chromatic orb if they all hit. Since each ray has an independent chance of hitting, the damage output approximates to the same.
The numbers
Linked here, you can find a spreadsheet with all of the calculations you requested (feel free to download a copy if you want to check out the formulas I used). Essentially it only involves figuring out the chance that the character hits and multiplying the average damage by that chance. Since the scorching rays are independent, you can simply multiply this adjusted damage by 3.
In summary, scorching ray will always be more damaging if the chance to hit is the same throughout.
The case for chromatic orb
There is one instance where chromatic orb deal more average damage, and that is when only the first attack will have advantage (such as if you used true strike). The modified damage in this instance is in the spreadsheet linked in the previous section to show how this changes the numbers. In this case, the greater damage that is applicable to an advantage attack does more than the extra average damage of scorching ray. However, as your normal chance to hit increases, this advantage to chromatic orb decreases and scorching ray catches up.
Versatility of chromatic orb
Chromatic orb still has a comparative advantage over scorching ray and that is its versatility. Fire is one of the most resisted damage types in the game, so if you are dealing with a monster with such a resistance, scorching ray falls off hard, but chromatic orb can select a different option. This lets you go around resistances and target vulnerabilities, greatly increasing utility (perhaps at the cost of raw damage).