Prompted by a question from @LordFerret , I went through the EDSM data again to make an analysis of mass codes and star types, in a more thorough way than I did before. The data is from the EDSM dumps, and @Orvidius 's processed data dumps on EDAstro saved me quite a lot of work to be done there, so thanks for making and sharing those!
I looked at primary stars (when the star is the main star, visible on the galaxy map, and there are other stars in the system) and single stars, excluding secondaries. There are three categories: one with only primaries, one with only singles, and one with the two combined. Usually, there's barely any difference between the two: pretty much the only time there is a significant difference is with T and Y dwarfs, as there are very few systems where they are the primary stars and there are other stars present too.
Here's the data: https://docs.google.com/spreadsheets/d/1auRhEiIvl7o5bpCY-68tgAnGlpp44qSoSIDVL0WOOW8/edit?usp=sharing
Broken down into just main sequence (for easier visibility there), and into an extended version with the "exotic" stars as well.
Don't forget that this data would be affected by peoples' travel habits too! While all stars are auto-scanned since 2018. Dec., many people restrict their route plotter to scoopable stars only. It's likely that those are over-represented to some degree. (Then they might also be leaving out M, K, and so on.)
So, what is there to be found from this? Let's see...
First, most star types fall strongly into one mass code, with G stars being an interesting exception: they are split almost evenly between mass codes C and D. There are always some outliers though, and don't forget that the data includes giant stars as well. Also, the suppression corridor sometimes produces some weird stuff. (For example, mass code H, single T star.)
As an interesting bit, M dwarfs and T Tauri Stars are the only star types which appear across all mass codes, although this should be little wonder. In the case of M, this is only because of giant stars, too - if we were to move those into their own categories, then it'd be only TTS.
Second, if we look at things the other way, to see what types of stars the different mass codes are made up of, this is what we get:
Mass code A: T (35.81%), Y (30.12%), L (24.26%), M (6.79%), TTS (3.02%)
Mass code B: M (96.19%), TTS (1.79%), K (1.02%), L (0.99%)
Mass code C: K (73.69%), G (15.83%), M (9.45%), TTS (1.03%)
Mass code D: F (42.03%), A (20.34%), NS (15.5%), G (15.27%), K (3.11%), WD (1.62%), M (1.24%), C (0.35%), TTS (0.3%), L (0.23%)
Mass code E: B (49.31%), NS (30.45%), A (7.62%), BH (4.31%), TTS (4.19%), Ae/Be (2.86%), F (0.44%), G (0.43%), M (0.22%), K (0.16%), L (0.02%)
Mass code F: BH (53.33%), B (30.11%), O (6.05%), Ae/Be (4.96%), NS (2.55%), TTS (2.52%), A (0.48%)
Mass code G: O (50.03%), BH (33.79%), B (7.46%), Ae/Be (5.04%), TTS (2.94%), K (0.25%), M (0.16%), G (0.11%), WD (0.08%), A(0.07%), L (0.05%), C (0.01%)
Mass code H: BH (41.49%), WR (29.57%), O (10.68%), B (7.3%), A (5.41%), Ae/Be (3.98%), TTS (0.86%), K (0.21%), M (0.2%), G (0.14%), WD (0.08%), L (0.05%). F (0.04%), C (0.01%)
Do bear in mind that some star types can be seriously restricted in where they appear! So this isn't an "if I go to a mass code F systems, I have a 53% chance of coming across a black hole" thing. Still, it might be useful to know what seems to be possible, and also what seems to be more (or less) common.
I looked at primary stars (when the star is the main star, visible on the galaxy map, and there are other stars in the system) and single stars, excluding secondaries. There are three categories: one with only primaries, one with only singles, and one with the two combined. Usually, there's barely any difference between the two: pretty much the only time there is a significant difference is with T and Y dwarfs, as there are very few systems where they are the primary stars and there are other stars present too.
Here's the data: https://docs.google.com/spreadsheets/d/1auRhEiIvl7o5bpCY-68tgAnGlpp44qSoSIDVL0WOOW8/edit?usp=sharing
Broken down into just main sequence (for easier visibility there), and into an extended version with the "exotic" stars as well.
Don't forget that this data would be affected by peoples' travel habits too! While all stars are auto-scanned since 2018. Dec., many people restrict their route plotter to scoopable stars only. It's likely that those are over-represented to some degree. (Then they might also be leaving out M, K, and so on.)
So, what is there to be found from this? Let's see...
First, most star types fall strongly into one mass code, with G stars being an interesting exception: they are split almost evenly between mass codes C and D. There are always some outliers though, and don't forget that the data includes giant stars as well. Also, the suppression corridor sometimes produces some weird stuff. (For example, mass code H, single T star.)
As an interesting bit, M dwarfs and T Tauri Stars are the only star types which appear across all mass codes, although this should be little wonder. In the case of M, this is only because of giant stars, too - if we were to move those into their own categories, then it'd be only TTS.
Second, if we look at things the other way, to see what types of stars the different mass codes are made up of, this is what we get:
Mass code A: T (35.81%), Y (30.12%), L (24.26%), M (6.79%), TTS (3.02%)
Mass code B: M (96.19%), TTS (1.79%), K (1.02%), L (0.99%)
Mass code C: K (73.69%), G (15.83%), M (9.45%), TTS (1.03%)
Mass code D: F (42.03%), A (20.34%), NS (15.5%), G (15.27%), K (3.11%), WD (1.62%), M (1.24%), C (0.35%), TTS (0.3%), L (0.23%)
Mass code E: B (49.31%), NS (30.45%), A (7.62%), BH (4.31%), TTS (4.19%), Ae/Be (2.86%), F (0.44%), G (0.43%), M (0.22%), K (0.16%), L (0.02%)
Mass code F: BH (53.33%), B (30.11%), O (6.05%), Ae/Be (4.96%), NS (2.55%), TTS (2.52%), A (0.48%)
Mass code G: O (50.03%), BH (33.79%), B (7.46%), Ae/Be (5.04%), TTS (2.94%), K (0.25%), M (0.16%), G (0.11%), WD (0.08%), A(0.07%), L (0.05%), C (0.01%)
Mass code H: BH (41.49%), WR (29.57%), O (10.68%), B (7.3%), A (5.41%), Ae/Be (3.98%), TTS (0.86%), K (0.21%), M (0.2%), G (0.14%), WD (0.08%), L (0.05%). F (0.04%), C (0.01%)
Do bear in mind that some star types can be seriously restricted in where they appear! So this isn't an "if I go to a mass code F systems, I have a 53% chance of coming across a black hole" thing. Still, it might be useful to know what seems to be possible, and also what seems to be more (or less) common.