I live in San Francisco. I don't take public transit regularly but I've lived in this area for 17 years and have personally witnessed several incidents on BART, Caltrain, and Muni. I also lived near Koln Germany for four years where I took public transit hundreds of times without issue. I think it's fair to say that some places have public transit that is just safer than others.