Professional Documents
Culture Documents
before and after privatization by their local authority. Their rating on a 1 – 10 Likert scale, where 1 represents
“Least Satisfied” and 10 denotes “Completely Satisfied”, are given in Table 3:
At 97.5% confidence level, can we conclude that the residents are more satisfied with the garbage collection
after the privatization?
Input Output
Answer :
p-value = 0.00805 < α = 0.025
Hence, H0 is rejected. The residents are more satisfied with the garbage collection after the privatization. However,
the difference in mean between after and before is 0.58333.
Problem 2 - A study on the annual arrival of Hong Kong tourists to Penang and Johor was conducted. For each of
these states, tourist arrivals (in thousand persons/year) were recorded for six years, between 2014 and 2019.
At 0.05 level of significance, does the average annual tourist arrival from Hong Kong is higher for Penang than for
Johor?
Input Output
Thus, H0 is rejected. The average annual tourist arrival from Hong Kong is higher for Penang than for Johor
Problem 3 - A researcher suspected that there is a difference in percentage of local authority budget spent on
garbage collection between states in Peninsular Malaysia. For this purpose, the researcher selected five states
(Kedah, Selangor, Johor, Melaka and Penang) where from each state, several local authorities were selected for the
study. From each of the selected local authorities, their percentages of budget spent on garbage collection were
recorded. From the results below, is there evidence at 95% confidence level that, on average, the percentage of
budget spent by local authorities on garbage collection are different among the states? If yes, which states are
different from the rest?
Input Output
library(readr)
state <- read.csv( "State.csv" )
The percentage of budget spent by local authorities on social services ARE NOT EQUAL for some states. OR At
least one mean of budget percentage spent by local authorities on social services is different from the other
means.