Question: how to determine empirical formula from unit cell?
Answer: The number of each ion in the unit cell is determined: 1/8 of each of the 8 corner X ions and 1/4 of each of the 12 edge Y ions are found within a single unit cell. Therefore, the cell contains 1 X ion (8/8 = 1) for every 3 Y ions (12/4 = 3) giving an empirical formula of XY3.