The whole sentence is "Loneliness is not a function of being alone, but rather, a function of how socially connected you are to those around you".
I don't know why not " how socially you are connected to those around you".It's what I think is usually used.What is the difference between the original sentence and mine?