Docsity

Mock Midterm Exam Part II, Prove d'esame di Statistica

Anteprima parziale del testo

Scarica Mock Midterm Exam Part II e più Prove d'esame in PDF di Statistica solo su Docsity!

A.Y. 2024 - 2025

Statistics - Mock Midterm Exam - Part II

Surname Name ID number

Solve Exercises 2 and 3 by reporting in this paper: formulas, main computations, results and comments.

Exercise 2 [5 pt.]

The dataset apartments.xlsx provides information about n = 30 apartments. Variables in the dataset are the following:

· Surface: the surface of the apartment (in mq);

· EnergyClass: the energy class of the apartment (C, B, A);

· City (Milan, Florence);

· FamilySize: the size of the family living in the apartment.

  1. For variable EnergyClass build a frequency table, provide a suitable graphical represen- tation and compute the median, if possible. [1 pt.]
  2. Compare the size of the apartments in Milan and in Florence through suitable measures of location and variability. Comment on the results. [2 pt.]
  3. Build a two-way contingency table for variables EnergyClass and City. [1 pt.]
  4. Define and compute the covariance and correlation coefficient between variables Family- Size and Surface. Interpret the results. [1 pt.]

Exercise 3 [3 pt.]

The owner of a restaurant conducted a survey on 50 clients. Results showed that 48% of the clients like sweets; of these, 38% are vegetarian. In addition, there are 3 clients that are vegetarian and do not like sweets.

  1. Compute the probability that a client is vegetarian; [1 pt.]
  2. Compute the probability that a client like sweets given that is vegeterian; [1 pt.]
  3. Ten clients are coming for dinner. What is the probability that the restaurant will serve more than five vegetarian dishes (assuming independence between clients’ preferences)? [1 pt.]