When converting between different DPI's as you do here, pixel ratio is completely irrelevant.
It will always be different by default since your are moving the same distance with a different DPI on your mouse, so it is expected to change.
The pixel ratio is a direct product of the resolution, FOV, DPI and 360 distance, so if you change any of these factors, the outcome will change.