Im not sure about any other times or if its also in sun and moon, but in USUM, right outside the Gamefreak office there's a Team Skull grunt that tells you that encountering a shiny pokemon is about 1 in 4000
Edit: I am now realizing that I did not need to comment this as the thread is over a year old