You can remember the meaning of 家庭 with this easy mnemonic:
Our family loves playing tennis, so we rarely spend time at home (家). We're almost always at the tennis court (庭)!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.