Pearson's Chi-squared test
data: contingency_table
X-squared = 0.45813, df = 2, p-value = 0.7953
Cramer V
0.02714
Explore whether restaurants near art museums are more likely to have higher ratings than restaurants not close to museums.
Explore whether restaurants near museums are less likely to have no violation citations than restaurants not close to museums.
Creating an interactive map that pinpoints restaurants that are nearby museums.
The third data set is a Kaggle open data set created by Beridzeg45 called NYC Restaurants, which you can find at https://www.kaggle.com/datasets/beridzeg45/nyc-restaurants
We are visualizing the proportion of rating groups (high, medium, low) by if restaurants are near museums (yes,no).
Pearson's Chi-squared test
data: contingency_table
X-squared = 0.45813, df = 2, p-value = 0.7953
Cramer V
0.02714
The chi-square test shows X^2 = 0.64691 (0.65), df = 2, p = 0.7236 (0.72)
There is not a statistically significant relationship between restaurants being near museums and rating.
Cramer’s V tells us that the relationship is weak in strength.
We are visualizing the proportion of if a restaurant ever had violations (None, Critical) by if restaurants are near museums (yes,no).
Pearson's Chi-squared test with Yates' continuity correction
data: contingency_table_2
X-squared = 1.4637e-28, df = 1, p-value = 1
Near_Museum
Restaurant_Violation No Yes
Critical 30.38585 4.614148
None 509.61415 77.385852
Cramer V
0.007957
The chi-square test shows X^2 = 6.2237e-30, df = 2, p = 1
Cramer’s V tells us that the relationship is very weak in strength (0.008128).
Fisher's Exact Test for Count Data
data: contingency_table_2
p-value = 0.7978
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
0.3339362 3.0818476
sample estimates:
odds ratio
0.9060068
Red: Low Rated Restaurants Purple: Average Rated Restaurants Dark Blue: High Rated Restaurants. Black: Museums
I believe that this project is relevant to New Yorkers who like to go to museums or restaurants and would like to plan an outing for a nice museum day in NYC. These types of New Yorkers would care about this type of project because they no longer have to rely on using Google to search each individual museum and instead have a map that is accessible and easy to use.