In a 2-way frequency table, you take the row entry and divide it by its row total to get a decimal. For your example: It starts out like this: sunny snowy Male: 17 11 Female: 15 16
Add the rows up. sunny snowy total Male: 17 11 28 Female: 15 16 31
Then divide the number the by the total: sunny snowy total Male: 17/28 11/28 28 Female: 15/31 16/31 31
Yours says to round to the 1000th place, so it ends up like: sunny snowy Male: .607 .393 Female: .484 .515