An independent government agency is interested in comparing the heating is interested in comparing the heating cost of all-electric home and those of home heated with natural gas. A sample of eight all-electric homes is matched with eight homes of similar size and other features that use natural gas. The heating costs for January are obtained for each home. At the 0.05 significance level is there reason to believe there is a difference in heating costs?Matched Electric Gas Pair Heat Heat1 265 2602 271 2703 260 2504 250 2555 248 2506 280 2757 257 2608 262 260
This provides an example of using a t-test to work with data.