Final answer:
Comparing typical salaries and rents in different cities can be done using statistics such as the median salary and median rent. The advantage of using the median is that it reduces the impact of extreme values, but it may not represent the entire distribution. Other factors should also be considered when comparing cities.
Step-by-step explanation:
When comparing typical salaries and rents in different cities, there are several statistics that can be used. One common statistic is the median salary, which represents the middle value in a list of salaries and is less affected by outliers. Another useful statistic is the median rent, which gives an idea of the typical rental cost in a city.
The advantage of using the median is that it reduces the impact of extreme values, such as very high or very low salaries or rents, that could skew the average. However, the disadvantage is that it doesn't take into account the full range of values, so it may not accurately represent the entire distribution. Additionally, it's important to consider other factors such as cost of living, job opportunities, and quality of life when comparing cities.