In: Statistics and Probability
Write code in SAS to do each of the following I have posted the data below from a pace delimited data set consisting of 66 randomly selected cars
"Brand" "Condition" "Fuel" "KMs" "Model" "Price" "City" "Transaction" "Year" "Daihatsu" "New" "Petrol" 19000 "Move" 1125000 "Karachi" "Cash" 2014 "Mazda" "Used" "Petrol" 89999 "Azwagon" 799999 "Karachi" "Cash" 2007 "Toyota" "Used" "Petrol" 140000 "Prius" 1225000 "Karachi" "Cash" 2007 "Toyota" "Used" "Petrol" 95000 "Corrolla Altis" 995000 "Karachi" "Cash" 1995 "Toyota" "Used" "Petrol" 61000 "Passo" 1150000 "Karachi" "Cash" 2012 "Suzuki" "Used" "Petrol" 100000 "Alto" 380000 "Karachi" "Cash" 2001 "Toyota" "Used" "Petrol" 86000 "Passo" 1650000 "Karachi" "Cash" 2015 "Suzuki" "New" "Petrol" 130000 "Alto" 525000 "Karachi" "Cash" 2001 "Nissan" "Used" "Petrol" 100000 "Tiida" 875000 "Karachi" "Cash" 2007 "Honda" "Used" "Petrol" 182000 "Civic EXi" 720000 "Karachi" "Cash" 2004 "Daihatsu" "Used" "Petrol" 85000 "Other" 625000 "Karachi" "Cash" 2011 "Suzuki" "Used" "Hybrid" 78523 "Alto" 545000 "Karachi" "Cash" 2010 "Suzuki" "Used" "CNG" 105000 "Mehran VX" 255000 "Karachi" "Cash" 2000 "Suzuki" "Used" "CNG" 100000 "Khyber" 135000 "Karachi" "Cash" 1989 "Other Brands" "New" "CNG" 660 "Other" 250000 "Karachi" "Cash" 1993 "Nissan" "New" "Petrol" 97000 "Dayz" 985000 "Karachi" "Cash" 2015 "Suzuki" "Used" "Petrol" 35000 "Cultus VXR" 580000 "Karachi" "Cash" 2008 "Toyota" "Used" "CNG" 127000 "Corolla GLI" 1390000 "Karachi" "Cash" 2012 "Suzuki" "Used" "CNG" 20880 "Mehran VXR" 430000 "Karachi" "Cash" 2011 "Suzuki" "Used" "Petrol" 88000 "Every" 885000 "Karachi" "Cash" 2012 "Suzuki" "Used" "CNG" 60000 "Mehran VXR" 150000 "Karachi" "Cash" 1998 "Toyota" "Used" "Petrol" 118000 "Corolla XLI" 975000 "Karachi" "Cash" 2008 "Honda" "New" "Petrol" 80999 "Civic VTi" 350000 "Karachi" "Cash" 1995 "Daihatsu" "Used" "Petrol" 10000 "Mira" 1500000 "Karachi" "Cash" 2017 "Toyota" "New" "CNG" 80000 "Corolla XLI" 1250000 "Islamabad" "Cash" 2005 "Toyota" "Used" "Petrol" 120000 "Prado" 5500000 "Karachi" "Cash" 2007 "Daihatsu" "New" "Petrol" 68000 "Mira" 1100000 "Karachi" "Cash" 2014 "Suzuki" "Used" "CNG" 123456 "Cultus VXR" 470000 "Karachi" "Cash" 2003 "Suzuki" "Used" "Petrol" 95000 "Mehran VX" 325000 "Gujranwala" "Cash" 2003 "Toyota" "Used" "Petrol" 127000 "Corolla GLI" 1150000 "Karachi" "Cash" 2009 "Suzuki" "Used" "CNG" 50000 "Cultus VXR" 430000 "Karachi" "Cash" 2003 "Mitsubishi" "New" "Petrol" 100000 "Pajero Mini" 500000 "Karachi" "Cash" 1998 "Suzuki" "Used" "Petrol" 8884 "Swift" 795000 "Karachi" "Cash" 2011 "Daihatsu" "Used" "Petrol" 22500 "Mira" 1250000 "Karachi" "Cash" 2016 "Honda" "Used" "Petrol" 560800 "Civic EXi" 240000 "Karachi" "Cash" 1990 "Suzuki" "Used" "CNG" 114000 "Alto" 595000 "Karachi" "Cash" 2011 "Suzuki" "Used" "Petrol" 35000 "Wagon R" 1200000 "Karachi" "Cash" 2014 "Suzuki" "Used" "CNG" 111111 "Mehran VX" 200000 "Karachi" "Cash" 1996 "Toyota" "Used" "CNG" 123 "Estima" 650000 "Karachi" "Cash" 1993 "Suzuki" "Used" "CNG" 14500 "Alto" 420000 "Karachi" "Cash" 2008 "Suzuki" "Used" "CNG" 10000 "Alto" 435000 "Karachi" "Cash" 2004 "Suzuki" "New" "CNG" 5 "Mehran VX" 250000 "Karachi" "Cash" 2003 "Toyota" "New" "Petrol" 59000 "Prado" 6000000 "Karachi" "Cash" 2009 "Suzuki" "Used" "Petrol" 28000 "Swift" 1400000 "Karachi" "Cash" 2015 "Hyundai" "Used" "Petrol" 70000 "Santro" 515000 "Karachi" "Cash" 2007 "Suzuki" "New" "Petrol" 45000 "Mehran VXR" 480000 "Karachi" "Cash" 2012 "Suzuki" "Used" "CNG" 2500 "Margalla" 335000 "Karachi" "Cash" 1996 "Daihatsu" "Used" "Petrol" 113000 "Cuore" 555000 "Karachi" "Cash" 2005 "Toyota" "Used" "Petrol" 84000 "Other" 1300000 "Karachi" "Cash" 2005
Performed t test to compare cng and petrol and found p value less than 0.05 and hence we reject the claim that the mean price of cars with the petrol fuel type do not differ from the mean price of cars with the CNG fuel type
Hope the above answer has helped you in understanding the problem. Please upvote the ans if it has really helped you. Good Luck!!