Explanation
There probability of an event happening is defined in math as:
P = Number of ways it can happen/Total number of possible outcomes
The probability that your birthday matches a stranger’s birthday is:
P = 1 day the match can happen/365 possible days in a year = 1/365