Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer Q3 you can use R studio and put the data into a txt file. The MidwestSales data set: 1 360000 3032 4 4

Please answer Q3

you can use R studio and put the data into a txt file.

The MidwestSales data set:

1 360000 3032 4 4 1 2 0 1972 2 1 22221 0 2 340000 2058 4 2 1 2 0 1976 2 1 22912 0 3 250000 1780 4 3 1 2 0 1980 2 1 21345 0 4 205500 1638 4 2 1 2 0 1963 2 1 17342 0 5 275500 2196 4 3 1 2 0 1968 2 7 21786 0 6 248000 1966 4 3 1 5 1 1972 2 1 18902 0 7 229900 2216 3 2 1 2 0 1972 2 7 18639 0 8 150000 1597 2 1 1 1 0 1955 2 1 22112 0 9 195000 1622 3 2 1 2 0 1975 3 1 14321 0 10 160000 1976 3 3 0 1 0 1918 3 1 32358 0 11 190000 2812 7 5 0 2 1 1966 3 7 56639 0 12 559000 2791 3 4 1 3 0 1992 1 1 30595 0 13 535000 3381 5 4 1 3 0 1988 1 7 23172 0 14 525000 3459 5 4 1 2 0 1978 1 5 35351 0 15 299900 2090 3 3 1 2 0 1987 2 1 24025 0 16 527000 3232 5 5 1 2 0 1984 2 6 21445 0 17 169900 1502 2 2 1 2 0 1956 2 1 28958 0 18 335250 2747 3 4 1 2 0 1993 2 7 22241 0 19 323900 2890 4 3 1 2 0 1954 2 7 41992 0 20 200000 1825 3 3 1 2 0 1957 2 1 30266 0 21 211000 1578 4 3 1 2 0 1986 2 2 18829 0 22 212000 1763 3 3 1 2 0 1959 2 1 24726 0 23 245000 2517 4 3 1 2 0 1965 2 1 23261 0 24 140400 1872 3 2 1 2 0 1985 2 3 24017 0 25 295000 3266 3 3 1 2 0 1908 2 6 24881 0 26 170900 2020 1 2 1 1 0 1956 2 1 21385 0 27 229000 2164 4 2 1 2 0 1965 2 1 28291 0 28 218500 2080 3 2 1 2 1 1959 2 1 14752 0 29 160000 2208 2 2 1 2 0 1985 2 7 8058 0 30 259000 3048 6 4 1 3 0 1960 2 7 29307 0 31 164500 1460 3 2 1 2 0 1978 2 1 9999 0 32 280000 2540 3 2 0 2 0 1940 2 5 42428 0 33 154000 2208 2 2 1 2 0 1985 2 7 6746 0 34 272000 2560 4 2 1 3 0 1977 2 5 36100 0 35 180000 2061 4 2 0 2 0 1958 2 1 20138 0 36 157500 1980 3 2 1 2 0 1957 2 1 32519 0 37 242500 3308 5 4 1 2 0 1928 2 5 47323 0 38 182000 2616 5 3 0 2 0 1955 3 5 11123 0 39 178000 1460 4 2 1 2 0 1961 3 1 27095 0 40 171900 1580 2 1 0 1 0 1951 3 4 12417 0 41 165500 1460 3 2 1 2 0 1960 3 1 22493 0 42 183500 1540 3 2 1 2 0 1992 3 3 15801 0 43 135000 1388 2 1 0 2 0 1951 3 1 26106 0 44 175000 1624 3 2 1 2 0 1948 3 1 39219 0 45 149500 1580 2 1 1 2 0 1966 3 1 11166 0 46 177500 1820 3 2 1 2 0 1960 3 1 22104 0 47 155000 1733 4 1 1 1 0 1936 3 4 22398 0 48 145000 1896 3 2 0 2 0 1925 3 6 32753 0 49 178000 2038 2 2 0 2 0 1918 3 7 47884 0 50 156000 1436 3 2 0 3 0 1920 3 1 43594 0 51 159000 1690 3 2 0 1 0 1922 3 5 28518 0 52 160000 1496 2 2 0 1 0 1900 3 5 43335 0 53 112000 1668 2 1 0 1 0 1948 3 1 19612 0 54 84000 980 1 1 0 1 0 1951 3 1 17686 0 55 155000 2562 3 2 0 2 0 1885 3 7 40800 0 56 360000 2304 5 4 1 3 0 1978 2 1 70240 0 57 104000 1268 2 1 0 1 0 1947 3 1 21067 0 58 420000 2283 3 3 1 3 0 1997 1 1 18524 1 59 355000 2060 2 3 1 2 0 1997 2 1 38623 1 60 165000 2087 2 2 1 2 0 1966 2 1 24764 1 61 244000 2081 4 2 1 2 0 1980 2 3 24993 1 62 179900 1696 3 3 1 2 0 1978 2 2 22294 1 63 253000 2222 4 2 0 2 0 1955 2 1 71527 1 64 200000 2110 5 3 1 2 0 1957 2 1 15332 1 65 200000 1774 4 2 0 2 0 1963 3 1 15528 1 66 147700 1592 3 2 1 2 0 1957 3 1 11221 1 67 188700 1748 3 2 1 2 0 1972 3 1 23939 1 68 177000 1985 3 1 0 2 0 1948 3 1 69975 1 69 585000 2558 2 4 1 3 1 1984 1 3 24601 0 70 549900 4000 6 5 1 3 1 1979 1 10 23595 0 71 675000 3942 4 3 1 2 0 1990 1 7 18920 0 72 830000 3889 4 4 1 3 0 1991 1 7 28378 0 73 920000 3857 4 5 1 3 0 1997 1 1 32793 0 74 855000 4756 4 4 1 3 0 1990 1 7 22215 0 75 585500 3302 4 3 1 3 0 1982 1 7 26463 0 76 399000 2629 3 3 1 2 0 1989 1 9 24778 0 77 790000 4418 5 5 1 3 0 1997 1 7 22024 0 78 665000 4746 4 4 1 3 0 1996 1 7 23368 0 79 725000 3242 3 3 1 3 0 1989 1 1 27173 0 80 647000 2464 3 3 1 3 0 1992 1 1 31703 0 81 780000 4419 4 5 1 7 0 1987 1 1 56127 0 82 657500 3877 3 3 1 3 0 1992 1 7 24639 0 83 578000 3808 5 4 1 3 0 1982 1 7 23324 0 84 500000 3376 5 4 1 2 0 1947 1 7 18452 0 85 484530 2940 3 3 1 3 1 1979 1 7 20639 0 86 609000 2654 5 3 1 3 0 1997 1 1 12821 0 87 635000 2672 4 3 1 3 0 1995 1 1 28049 0 88 519000 3386 4 4 1 3 0 1994 1 7 24008 0 89 625100 3648 4 4 1 3 0 1992 1 7 26604 0 90 585444 3455 4 5 1 3 0 1995 1 7 22468 0 91 399900 3321 3 4 1 3 1 1971 1 7 15012 0 92 389900 2817 4 3 1 3 0 1996 1 7 31214 0 93 649000 3210 3 5 1 3 0 1995 1 1 30033 0 94 535000 3588 4 5 1 3 0 1987 1 7 22530 0 95 640000 2705 3 3 1 3 0 1994 1 1 22196 0 96 600000 2344 4 3 1 2 0 1925 1 1 86004 0 97 582500 4264 5 4 1 4 0 1995 1 7 24983 0 98 545000 2615 3 3 1 3 0 1996 1 1 21722 0 99 480000 3608 6 4 1 3 0 1981 1 7 25219 0 100 595000 2479 4 4 1 3 0 1989 1 1 29805 0 101 610000 3251 3 4 1 3 1 1985 1 1 25570 0 102 570000 2547 2 3 1 3 0 1996 1 1 21789 0 103 479000 5032 7 3 1 3 0 1989 1 7 22000 0 104 545000 4973 6 6 1 3 1 1987 1 7 56139 0 105 335000 2582 4 3 1 2 0 1966 1 2 23256 0 106 629000 3139 6 4 1 2 1 1977 1 1 21810 0 107 505500 3516 4 4 1 3 0 1979 1 7 19867 0 108 528750 2129 0 0 1 3 0 1992 1 1 37414 0 109 370000 2936 4 4 1 3 0 1987 1 7 16437 0 110 529000 3351 5 4 1 3 0 1994 1 7 24216 0 111 490000 3136 4 4 1 3 0 1989 1 7 27158 0 112 535000 3525 4 5 1 3 0 1996 1 7 27501 0 113 612000 3917 6 5 1 3 0 1995 1 7 37972 0 114 442500 2702 4 3 1 3 0 1991 1 1 39643 0 115 500000 3644 3 4 1 3 0 1984 1 7 21895 0 116 539000 3072 4 4 1 3 0 1992 1 1 25158 0 117 545500 3233 4 4 1 3 0 1991 1 7 22961 0 118 424000 2918 4 4 1 3 0 1988 1 7 22003 0 119 325000 3266 4 3 1 3 0 1985 1 7 16640 0 120 367000 2940 4 7 1 2 0 1988 1 7 22003 0 121 470000 3430 3 4 1 2 1 1966 1 7 25018 0 122 393000 2472 4 4 1 3 0 1987 1 1 21784 0 123 530000 2878 4 4 1 3 0 1992 1 1 68351 0 124 400000 2537 3 3 1 2 0 1993 1 1 11053 0 125 403500 3858 4 4 1 3 0 1987 1 7 22224 0 126 550000 2742 3 3 1 3 0 1991 1 1 22306 0 127 380000 3460 5 4 1 2 0 1972 1 1 18571 0 128 500000 3836 5 4 1 3 0 1982 1 5 48465 0 129 465000 4453 7 5 1 2 0 1974 1 7 15595 0 130 451500 4080 5 4 1 3 0 1983 1 7 22134 0 131 336000 3301 3 4 1 2 0 1977 1 3 18741 0 132 550000 3828 4 5 1 2 1 1975 1 1 17051 0 133 450000 2973 4 3 1 2 0 1980 2 7 21999 0 134 440000 2821 5 4 1 2 1 1962 2 1 32914 0 135 515000 2950 5 3 1 2 0 1969 2 1 21598 0 136 415000 2362 3 3 1 2 0 1977 2 3 21604 0 137 380000 3092 3 4 1 2 0 1978 2 3 20081 0 138 489500 2866 4 4 0 2 0 1982 2 7 22424 0 139 478000 3369 5 4 1 3 0 1981 2 7 21161 0 140 460000 3068 4 4 1 3 0 1988 2 7 18289 0 141 379900 2380 3 3 1 3 0 1998 2 1 21999 0 142 390000 2225 2 3 1 3 0 1997 2 1 38722 0 143 338000 2655 3 3 1 2 0 1948 2 1 21960 0 144 675000 3855 4 4 1 3 0 1996 2 7 35845 0 145 440000 2892 4 4 1 2 0 1977 2 6 35839 0 146 500000 3832 4 3 1 2 0 1952 2 1 28722 0 147 470000 3164 6 4 1 2 0 1982 2 7 20505 0 148 317500 2620 3 2 1 3 0 1925 2 7 12266 0 149 430000 3076 6 4 1 3 0 1984 2 7 26648 0 150 430000 4022 6 4 1 3 0 1986 2 7 18429 0 151 475000 3377 4 3 1 3 0 1997 2 7 22495 0 152 389000 2858 5 4 1 1 0 1989 2 7 23981 0 153 400000 3540 4 4 1 3 1 1980 2 7 18012 0 154 395000 3045 4 3 1 1 0 1991 2 7 34356 0 155 395000 4150 4 3 0 3 0 1934 2 7 21778 0 156 296000 1778 2 2 1 2 0 1991 2 7 24022 0 157 387500 2412 2 3 1 3 0 1986 2 3 22676 0 158 353000 2668 4 3 1 2 0 1978 2 2 18384 0 159 350000 2274 4 3 1 3 0 1986 2 1 22049 0 160 437632 2936 4 3 1 3 0 1980 2 5 22844 0 161 447500 2526 2 2 1 0 0 1996 2 1 28248 0 162 318500 2449 4 4 1 2 0 1985 2 3 22075 0 163 352000 3131 4 4 1 2 0 1988 2 7 15209 0 164 295000 2536 3 3 1 3 0 1987 2 7 39427 0 165 313500 3314 2 3 1 3 0 1984 2 7 24339 0 166 330000 2230 3 2 1 2 0 1986 2 1 24798 0 167 400000 2631 4 4 0 2 0 1985 2 7 44885 0 168 325000 2638 4 3 1 2 0 1978 2 3 25747 0 169 340000 2756 4 3 1 2 1 1973 2 7 22546 0 170 399900 3262 5 4 1 2 0 1978 2 7 25541 0 171 249900 1936 4 4 1 3 0 1987 2 3 12850 0 172 389000 3148 4 4 1 3 1 1969 2 7 16587 0 173 364500 2616 3 4 1 2 0 1977 2 7 32655 0 174 357500 3630 4 3 1 2 0 1969 2 7 23283 0 175 295000 1954 3 3 1 3 1 1962 2 3 19300 0 176 274500 1926 5 3 1 2 0 1986 2 7 26418 0 177 259000 2556 3 2 1 2 0 1957 2 1 80886 0 178 415000 2282 5 4 1 2 0 1987 2 3 23003 0 179 443000 3314 3 4 1 3 0 1986 2 7 22012 0 180 249000 2001 3 3 1 2 0 1981 2 3 23812 0 181 330000 2607 5 2 1 2 0 1976 2 3 23139 0 182 291000 2840 4 4 1 2 0 1965 2 7 23079 0 183 418000 3036 3 5 0 2 0 1977 2 7 33746 0 184 320000 2240 4 2 1 3 0 1974 2 3 18682 0 185 264000 1788 3 3 0 2 0 1969 2 1 18484 0 186 381000 2620 5 4 1 2 0 1965 2 7 28093 0 187 250000 1480 3 3 1 2 0 1984 2 3 14230 0 188 360000 2588 3 3 1 2 1 1968 2 2 19004 0 189 369500 3138 4 4 1 2 0 1969 2 7 18190 0 190 285400 2460 5 4 1 2 0 1979 2 7 27492 0 191 409000 3566 4 4 1 2 0 1976 2 7 18044 0 192 333000 2692 5 4 1 3 0 1984 2 7 22020 0 193 362000 2958 5 4 1 3 0 1987 2 7 45200 0 194 387500 3164 4 4 1 2 1 1966 2 7 23856 0 195 239000 2058 3 3 1 2 0 1969 2 2 21046 0 196 299900 2717 3 4 1 2 0 1983 2 7 22083 0 197 335000 2920 4 3 1 3 0 1987 2 7 22434 0 198 275000 2554 5 3 1 2 0 1960 2 7 21820 0 199 328000 2805 3 4 1 2 0 1988 2 7 22582 0 200 333000 2736 4 3 1 2 1 1979 2 7 29591 0 201 397000 3516 5 7 1 3 0 1996 2 7 34795 0 202 374800 3536 6 4 1 2 1 1978 2 7 19997 0 203 520000 2138 5 3 1 3 0 1956 2 1 86830 0 204 325000 2718 4 4 1 3 0 1978 2 6 22842 0 205 295000 2178 5 3 1 2 0 1958 2 1 25891 0 206 415000 3152 5 4 1 2 0 1980 2 6 24446 0 207 224900 2611 3 3 1 2 0 1987 2 7 6924 0 208 265000 2060 4 3 1 2 0 1981 2 2 13091 0 209 299900 2448 4 4 1 3 0 1979 2 7 26790 0 210 390000 4050 6 5 1 2 1 1966 2 7 18262 0 211 271000 2414 3 3 1 2 0 1914 2 7 24357 0 212 330000 3072 4 3 1 2 0 1966 2 7 16431 0 213 350000 2525 3 3 1 3 0 1983 2 4 27138 0 214 310000 2866 5 3 1 3 0 1961 2 7 25249 0 215 340000 3246 4 4 1 3 0 1987 2 7 52218 0 216 307000 2707 4 4 1 2 0 1992 2 7 22094 0 217 304000 2300 5 3 1 2 0 1961 2 3 35824 0 218 275900 1860 3 3 1 2 0 1957 2 1 40741 0 219 315000 3636 5 3 1 2 0 1976 2 7 19776 0 220 295000 1910 4 3 1 2 0 1968 2 1 30996 0 221 251010 2280 4 2 1 2 0 1956 2 1 25543 0 222 335000 3386 4 5 0 2 0 1965 2 7 38428 0 223 343500 2324 5 4 1 3 0 1967 2 3 22435 0 224 297000 1970 4 3 1 2 0 1972 2 3 25814 0 225 281000 2062 3 3 1 2 1 1977 2 2 23608 0 226 235000 2617 4 3 1 2 0 1985 2 7 8903 0 227 237000 2612 4 3 1 2 0 1985 2 7 10144 0 228 274900 2472 3 3 1 2 0 1969 2 7 22451 0 229 229900 1922 4 2 1 2 0 1957 2 1 15791 0 230 259000 1852 3 2 1 2 0 1984 2 3 22204 0 231 245000 2239 3 3 1 2 0 1986 2 3 22216 0 232 208000 2068 3 2 1 2 0 1979 2 1 34773 0 233 421000 2101 3 3 0 2 0 1956 2 1 65499 0 234 320000 2200 4 3 1 2 0 1968 2 1 31450 0 235 256000 1972 3 3 0 2 0 1989 2 3 32027 0 236 275000 2007 3 3 1 2 1 1959 2 3 21311 0 237 222000 2612 4 3 1 2 0 1985 2 7 8229 0 238 249900 2124 4 1 1 3 0 1974 2 2 21834 0 239 273500 2612 4 3 1 2 0 1985 2 7 8924 0 240 218500 2548 2 2 1 2 0 1984 2 3 10210 0 241 377000 2767 3 3 1 3 0 1941 2 4 75232 0 242 220000 2025 3 3 1 2 0 1989 2 3 19618 0 243 192900 1956 4 2 1 2 0 1962 2 2 21779 0 244 298750 2460 4 3 1 2 0 1967 2 3 23907 0 245 315000 2764 3 3 1 3 0 1972 2 7 23947 0 246 315000 2004 4 3 1 2 0 1967 2 3 24453 0 247 465900 2852 4 3 1 2 1 1961 2 7 34040 0 248 239500 2096 3 3 1 2 0 1977 2 1 15237 0 249 276000 2330 3 3 1 2 0 1989 2 7 17433 0 250 226000 2520 4 3 1 2 0 1978 2 7 12145 0 251 235000 2528 3 3 1 2 0 1977 2 3 26469 0 252 247000 2030 4 3 1 3 0 1988 2 3 23202 0 253 182000 2208 2 2 1 2 0 1985 2 7 6734 0 254 180000 1500 2 1 1 0 0 1938 2 3 39776 0 255 249000 2078 5 3 1 2 0 1965 2 1 21512 0 256 260000 2442 4 3 1 2 0 1969 2 2 21149 0 257 219900 2612 3 3 1 2 0 1986 2 7 11288 0 258 295000 2268 4 3 1 3 0 1972 2 2 23976 0 259 290000 2734 4 3 1 2 0 1971 2 7 23488 0 260 300000 2228 4 3 1 2 0 1982 2 3 21232 0 261 354900 3000 5 4 1 3 0 1973 2 7 21643 0 262 261000 2404 5 3 1 3 1 1973 2 2 17791 0 263 174500 1840 3 2 1 2 0 1960 2 1 16356 0 264 244900 2107 3 2 0 2 0 1947 2 6 30050 0 265 274900 2788 4 3 1 2 0 1984 2 7 18960 0 266 214000 2416 3 3 1 2 0 1984 2 3 15594 0 267 283000 2430 3 4 1 3 0 1984 2 6 18164 0 268 177900 1584 3 2 1 2 0 1989 2 2 13947 0 269 237500 1873 3 3 1 2 0 1978 2 3 21998 0 270 202150 1644 4 3 1 2 0 1976 2 2 19499 0 271 235000 2400 4 3 1 2 0 1976 2 7 44347 0 272 217000 2094 4 3 1 2 0 1984 2 3 18617 0 273 285000 2561 3 3 1 3 0 1981 2 7 18985 0 274 217500 1752 3 2 1 2 0 1976 2 2 24053 0 275 210000 1738 5 3 1 2 0 1983 2 3 15206 0 276 183340 2068 3 2 1 3 0 1977 2 1 24325 0 277 252000 2428 4 3 1 2 0 1966 2 7 22727 0 278 237000 2090 4 2 1 2 0 1969 2 1 22055 0 279 205000 1820 3 2 1 2 0 1944 2 2 28023 0 280 285000 3219 4 4 1 2 0 1944 2 6 28200 0 281 210000 2654 3 5 1 2 0 1962 2 1 28882 0 282 280000 1802 4 3 1 2 0 1956 2 1 27700 0 283 207000 1765 3 2 1 2 0 1976 2 2 22983 0 284 221000 2786 4 3 1 2 0 1976 2 7 22875 0 285 257000 1794 3 2 1 2 0 1960 2 3 21691 0 286 274000 2768 3 3 0 2 0 1921 2 7 26268 0 287 262000 2288 3 2 1 2 0 1963 2 3 16975 0 288 204400 2028 3 2 1 2 0 1951 2 1 26777 0 289 254900 2620 5 3 1 2 0 1966 2 7 27989 0 290 244000 1644 3 3 1 2 0 1980 2 2 32164 0 291 213000 1888 3 2 1 3 0 1958 2 1 14757 0 292 240000 2116 4 3 1 2 0 1964 2 7 22041 0 293 235000 2313 4 3 1 2 0 1972 2 7 24705 0 294 206000 1824 4 2 1 2 0 1959 2 1 14748 0 295 237000 1942 4 3 1 2 0 1972 2 2 23105 0 296 274000 2184 4 3 1 2 0 1977 2 3 19090 0 297 275000 2578 3 3 1 2 0 1965 2 7 22299 0 298 218400 2036 4 3 1 2 0 1960 2 7 21996 0 299 156000 1384 2 1 0 2 0 1961 2 1 26706 0 300 220000 1826 4 3 1 2 0 1952 2 1 19870 0 301 171500 1681 3 2 1 1 0 1957 2 1 15985 0 302 180000 1726 3 2 1 2 0 1962 2 1 26769 0 303 204000 1910 3 2 1 2 0 1958 2 3 15423 0 304 307000 2664 4 3 1 2 0 1962 2 7 22684 0 305 265000 2116 3 3 1 2 0 1976 2 2 33344 0 306 209900 2030 3 3 1 2 0 1959 2 1 21914 0 307 173000 1940 3 2 0 2 0 1956 2 3 11610 0 308 189000 1676 3 3 0 2 0 1965 2 3 21780 0 309 222500 2120 3 2 1 2 1 1959 2 1 17883 0 310 265000 2152 4 3 1 2 0 1987 2 1 26075 0 311 264670 1984 4 3 1 2 0 1966 2 1 31204 0 312 200750 1575 3 3 1 2 0 1957 2 1 25543 0 313 227900 1798 3 3 1 2 0 1978 2 2 17820 0 314 255000 2017 3 1 0 1 0 1958 2 3 86571 0 315 208500 1904 3 3 1 2 0 1978 2 2 15559 0 316 226900 1718 3 3 1 2 0 1976 2 2 49613 0 317 215000 1776 4 2 0 1 0 1980 2 2 22839 0 318 222950 2609 4 3 1 2 0 1961 2 1 26087 0 319 239900 2226 3 3 1 2 0 1955 2 2 13520 0 320 176000 1556 2 1 1 3 0 1959 2 3 15623 0 321 228000 1764 2 2 1 2 0 1985 2 3 8105 0 322 204900 1626 3 3 1 2 1 1968 2 2 15288 0 323 258000 2012 5 3 1 2 0 1967 2 2 21303 0 324 241850 2090 4 4 1 2 0 1963 2 7 22010 0 325 198500 2192 4 2 1 2 0 1963 2 2 22851 0 326 243000 2228 4 4 1 2 0 1965 2 7 21881 0 327 187000 1825 4 2 1 2 0 1963 2 2 15810 0 328 233000 2132 4 3 1 2 0 1966 2 2 17159 0 329 205000 2160 3 2 1 2 0 1983 2 7 16555 0 330 205000 1974 3 2 1 2 0 1954 2 1 26196 0 331 189000 1696 3 3 1 2 0 1968 2 1 31851 0 332 204900 2132 3 3 1 2 0 1969 2 7 23986 0 333 239000 1814 4 3 1 2 1 1979 2 2 24698 0 334 193000 1796 3 2 1 2 0 1963 2 2 29281 0 335 260000 2268 5 3 1 2 0 1971 2 3 35240 0 336 188000 1719 2 3 1 2 0 1960 2 1 22009 0 337 190500 1704 3 2 1 2 0 1984 2 3 22583 0 338 230000 2142 3 2 1 2 0 1959 2 1 22223 0 339 240000 1705 4 2 1 2 0 1972 2 1 42322 0 340 235000 1752 4 3 1 2 0 1978 2 2 39267 0 341 275000 2554 5 3 1 2 1 1966 2 7 22381 0 342 205000 1650 3 2 1 2 0 1965 2 3 27235 0 343 280000 2816 5 3 1 2 0 1946 2 5 29109 0 344 190000 1919 3 4 1 2 0 1938 2 7 20093 0 345 232500 2080 3 2 1 2 0 1968 2 1 32021 0 346 259500 2108 4 4 1 2 0 1978 2 7 24685 0 347 275000 2480 3 3 1 2 0 1964 2 1 22144 0 348 183900 1746 3 2 1 2 0 1974 2 2 52136 0 349 290000 2703 3 3 0 4 0 1963 2 1 43599 0 350 217950 1640 4 2 1 2 0 1979 2 3 21314 0 351 220000 2196 4 3 1 2 0 1972 2 7 17899 0 352 185000 1701 3 2 1 1 0 1982 2 2 21938 0 353 288000 2250 3 2 1 2 0 1949 2 4 23684 0 354 197500 2502 4 2 1 2 0 1964 2 6 23749 0 355 179975 1762 4 3 1 2 0 1959 2 1 15742 0 356 195000 2016 4 3 1 2 0 1963 2 2 18102 0 357 228400 1904 3 3 1 2 1 1976 2 2 14945 0 358 194750 1652 5 2 1 2 0 1960 2 1 24644 0 359 195000 2042 4 3 0 2 0 1963 2 2 21849 0 360 210000 2019 4 3 1 3 0 1960 2 2 14837 0 361 239550 2791 5 3 1 3 0 1946 2 4 22863 0 362 242000 2514 4 3 1 1 0 1953 2 5 17535 0 363 185000 1746 3 2 1 2 0 1984 2 3 12386 0 364 175000 1930 3 2 1 2 0 1956 2 2 15923 0 365 165000 1552 3 1 1 3 0 1959 2 3 27068 0 366 185000 1566 4 2 1 2 0 1993 2 2 13504 0 367 173194 1669 3 2 1 2 0 1964 2 2 24643 0 368 205150 1814 3 3 1 2 0 1978 2 2 18714 0 369 214200 1794 3 3 1 3 0 1976 2 2 24308 0 370 182500 1691 3 2 1 2 1 1968 2 2 21961 0 371 205000 1834 4 3 1 2 0 1959 2 1 30726 0 372 208000 1984 5 3 1 2 0 1961 2 1 22047 0 373 225000 1966 4 3 1 2 0 1962 2 1 24871 0 374 170000 1669 3 2 1 2 0 1967 2 2 21253 0 375 216000 2132 4 3 1 2 0 1976 2 1 41332 0 376 180000 2007 4 3 1 2 0 1959 2 3 15992 0 377 169200 1964 4 2 1 2 0 1964 2 7 18162 0 378 213000 2325 4 3 1 3 0 1973 2 3 16699 0 379 210000 2196 4 3 1 2 0 1965 2 7 29329 0 380 185000 2061 3 2 1 2 0 1956 2 2 25379 0 381 179900 1828 3 2 1 2 0 1956 2 3 37150 0 382 196000 1956 4 3 1 2 0 1968 2 1 20486 0 383 219900 1852 6 3 1 2 0 1968 2 2 20800 0 384 159900 1795 1 2 1 2 0 1980 2 11 26467 0 385 170000 1580 2 1 0 1 0 1950 3 5 10799 0 386 169900 1708 3 1 0 1 0 1950 3 1 11413 0 387 189500 1700 4 2 0 2 0 1953 3 1 14023 0 388 195000 1742 1 1 1 2 0 1961 3 1 18250 0 389 215000 1890 4 2 1 2 0 1961 3 1 22110 0 390 171000 1512 2 1 0 1 0 1956 3 1 14774 0 391 179900 1840 3 1 0 2 0 1953 3 1 40832 0 392 120000 1060 2 1 0 2 0 1947 3 1 15001 0 393 175000 1540 3 2 0 2 0 1957 3 1 45458 0 394 232900 1550 4 2 1 2 1 1962 3 2 14998 0 395 229900 2787 4 2 1 1 0 1922 3 5 39558 0 396 174900 1528 2 2 1 2 0 1982 3 1 25193 0 397 168900 1928 2 2 0 2 0 1941 3 5 26393 0 398 229500 2329 3 2 1 2 0 1960 3 7 28179 0 399 236000 1940 4 3 1 2 0 1959 3 1 15073 0 400 205500 2114 5 2 1 2 0 1966 3 7 14526 0 401 212000 1799 3 2 1 2 0 1962 3 2 16210 0 402 205000 1864 3 2 1 2 0 1940 3 1 25628 0 403 193000 1581 3 2 1 2 0 1956 3 1 15064 0 404 180000 1652 3 2 1 2 0 1959 3 3 21875 0 405 184000 1592 4 2 0 2 0 1977 3 1 25943 0 406 144900 1520 3 1 0 1 0 1953 3 4 36359 0 407 255000 1792 2 2 1 2 0 1955 3 1 31257 0 408 137000 1464 2 1 0 1 0 1957 3 1 14999 0 409 178000 1702 3 2 0 2 0 1961 3 1 21898 0 410 296000 2180 3 2 1 2 0 1952 3 1 29617 0 411 186500 1486 2 2 1 2 0 1958 3 1 18479 0 412 170000 1364 2 1 0 2 0 1942 3 1 26369 0 413 219000 1540 4 2 1 2 0 1977 3 2 30691 0 414 188000 1608 4 2 1 2 0 1969 3 2 19380 0 415 195250 1668 3 1 1 2 0 1956 3 3 17060 0 416 175000 1944 3 2 1 2 0 1951 3 1 43562 0 417 215000 1883 4 2 1 2 1 1956 3 1 19932 0 418 197500 2215 4 1 0 2 0 1948 3 6 25540 0 419 249900 1916 2 2 1 2 0 1954 3 1 20576 0 420 180000 1508 2 2 1 2 0 1959 3 1 32469 0 421 174900 1809 3 1 1 2 0 1958 3 2 16782 0 422 189900 1958 4 3 0 2 0 1935 3 5 22788 0 423 154000 1592 2 1 1 2 0 1951 3 1 10332 0 424 150000 1636 2 1 1 2 0 1950 3 1 10000 0 425 189900 1800 3 2 0 2 0 1964 3 2 13566 0 426 157000 1600 3 1 0 2 0 1950 3 5 10807 0 427 182000 1550 3 1 1 2 0 1966 3 1 15100 0 428 187650 1578 3 1 1 2 0 1958 3 1 14631 0 429 175000 1644 3 1 1 2 0 1956 3 1 12999 0 430 189900 1556 3 2 1 1 0 1959 3 3 19840 0 431 175000 1672 3 1 1 2 0 1949 3 1 22617 0 432 159900 1650 2 2 1 1 0 1957 3 1 14997 0 433 184900 1676 3 2 0 2 0 1956 3 1 16156 0 434 174900 1960 2 2 0 2 0 1947 3 1 16953 0 435 143000 1649 3 1 1 1 0 1951 3 5 20096 0 436 164900 1728 3 1 1 1 0 1950 3 4 10999 0 437 173500 1586 3 2 1 1 0 1958 3 1 15862 0 438 161800 1592 2 1 0 1 0 1951 3 1 18686 0 439 148000 1514 2 2 1 1 0 1964 3 1 16209 0 440 177000 1952 4 2 1 2 0 1963 3 1 24377 0 441 149900 1550 3 1 1 2 0 1956 3 1 14311 0 442 170000 1544 2 2 0 1 0 1957 3 1 14942 0 443 142000 1566 3 1 0 1 0 1959 3 1 15228 0 444 186900 1650 3 2 1 2 0 1961 3 1 22000 0 445 152900 1392 2 2 0 2 0 1951 3 1 29199 0 446 350000 2981 5 4 1 2 0 1950 3 6 49756 0 447 130000 1412 2 1 0 1 0 1940 3 1 16752 0 448 167900 2180 4 2 0 2 0 1948 3 3 15001 0 449 184900 1704 2 2 1 2 0 1954 3 1 16759 0 450 178000 1600 3 2 1 2 0 1957 3 3 15090 0 451 111000 1276 3 2 0 1 0 1951 3 1 11554 0 452 207000 1666 4 2 0 1 0 1954 3 1 39523 0 453 190000 1760 3 2 1 2 0 1974 3 2 20193 0 454 230000 1836 3 2 0 2 0 1946 3 1 46339 0 455 165000 1636 3 1 0 2 0 1953 3 1 20125 0 456 210000 1748 3 2 1 2 0 1957 3 1 14512 0 457 226000 2556 4 2 0 2 0 1923 3 6 36276 0 458 149900 1511 4 1 1 1 0 1954 3 1 14821 0 459 155000 1524 3 2 1 2 0 1958 3 1 21875 0 460 219900 1821 4 2 1 2 0 1956 3 1 16696 0 461 132000 1596 1 1 0 0 0 1940 3 1 28357 0 462 195000 2392 4 2 0 2 0 1960 3 1 30265 0 463 155900 1748 2 1 1 2 0 1956 3 1 16231 0 464 119900 1384 2 1 0 0 0 1949 3 1 30002 0 465 175000 1628 3 1 1 2 1 1957 3 1 17069 0 466 304000 1911 4 2 1 2 0 1953 3 1 86248 0 467 190000 1624 4 3 0 1 0 1959 3 3 15002 0 468 229100 1956 3 2 1 2 1 1984 3 6 14710 0 469 187500 2012 4 2 0 2 0 1953 3 5 14925 0 470 173000 1590 2 2 1 2 0 1956 3 1 22336 0 471 170000 1687 2 1 1 1 0 1941 3 4 20925 0 472 179000 1816 4 1 1 2 0 1956 3 3 16508 0 473 162500 1622 3 1 1 1 0 1956 3 3 16120 0 474 172000 1604 4 2 1 2 0 1954 3 1 14964 0 475 153200 1592 4 2 0 1 0 1956 3 1 16396 0 476 220000 1922 3 2 1 2 0 1952 3 1 33579 0 477 174000 1892 3 1 1 1 0 1955 3 3 14712 0 478 200000 1628 3 1 1 2 0 1959 3 1 15412 0 479 161000 1644 2 2 1 2 0 1956 3 1 17030 0 480 135000 1450 3 1 1 2 0 1955 3 1 15868 0 481 190000 1592 3 2 1 2 0 1959 3 1 22748 0 482 153800 1654 2 1 0 2 0 1962 3 1 25874 0 483 144900 1388 2 1 1 2 0 1950 3 1 10568 0 484 165000 1670 3 2 0 2 0 1953 3 1 18525 0 485 186000 1953 3 2 1 1 0 1956 3 1 17129 0 486 167000 2008 3 1 1 2 0 1963 3 1 21860 0 487 189600 1650 3 2 1 2 0 1960 3 1 34724 0 488 170000 1578 3 1 1 2 0 1975 3 1 22485 0 489 189500 1618 3 2 1 2 0 1962 3 1 27539 0 490 153500 1642 3 1 0 2 0 1959 3 1 14901 0 491 159900 2008 1 2 1 2 0 1941 3 1 31657 0 492 158000 1604 3 2 1 1 0 1960 3 1 23534 0 493 175000 2035 4 2 1 3 0 1962 3 7 20131 0 494 147000 1534 3 2 0 1 0 1955 3 3 15361 0 495 155000 1624 2 2 1 2 0 1955 3 1 16721 0 496 150000 1700 4 2 1 1 0 1954 3 1 15391 0 497 165000 1630 3 2 1 2 0 1978 3 2 24963 0 498 147000 1526 3 2 1 1 0 1957 3 1 15007 0 499 146250 1672 3 1 1 2 0 1949 3 1 22617 0 500 177500 1588 4 2 1 2 0 1980 3 2 21925 0 501 153650 1752 4 2 1 2 0 1950 3 6 9126 0 502 199500 1674 4 2 0 2 0 1947 3 1 33237 0 503 186000 1980 3 1 0 1 0 1927 3 6 47679 0 504 139900 1396 1 1 0 2 0 1950 3 1 25879 0 505 160000 1178 1 1 0 2 0 1959 3 1 9941 0 506 125000 1263 2 2 0 0 0 1955 3 1 12357 0 507 359900 2377 5 2 1 2 0 1937 3 6 51005 0 508 184500 1304 3 1 1 2 0 1951 3 1 21305 0 509 155000 1340 3 1 0 0 0 1952 3 1 5666 0 510 150000 1559 2 1 0 2 0 1952 3 1 23999 0 511 146000 1412 1 2 1 0 0 1920 3 1 4560 0 512 129000 1198 2 2 1 2 0 1925 3 1 20918 0 513 145000 1424 2 1 1 2 0 1947 3 1 16414 0 514 200000 1370 4 1 0 1 0 1925 3 4 8000 0 515 149900 1584 3 2 1 2 0 1957 3 1 13514 0 516 132000 1567 2 1 1 1 0 1934 3 4 12249 0 517 136900 1409 2 1 0 1 0 1951 3 1 28421 0 518 137000 1655 2 1 0 1 0 1935 3 1 54651 0 519 185000 1944 3 2 1 2 0 1939 3 6 17999 0 520 133500 1922 3 1 0 2 0 1950 3 1 14805 0 521 124000 1480 3 2 1 2 0 1953 3 1 28351 0 522 95500 1184 2 1 0 1 0 1951 3 1 14786 0

image text in transcribedimage text in transcribedimage text in transcribed
g. What would happen to the interval from part f. if the confidence level is decreased to 90%? Explain in a sentence or two. h. Run a summary of your dataset (in R, this is: summary(dataset) ). Would it make sense to predict the sale price of a house that is 8500 square feet?i. 'What would happen to the interval from part f. if the condence level is increased to 100%? Explain in a sentence or two. j. What is the estimate of 0'5? Interpret this quantity in context of the problem. k. Say we have two houses. House one is 1500 sqft (call this X1) and house two is 3500 sqft (X2). Does it make sense for both these houses to have the same estimate of are? Explain in context of the problem. 3. This question will use the MidwestSales data set that is on the class website. This dataset involves houses being sold in the midwest. The response variable is the price the house was sold (in dollars) and explanatory variables such as the square footage of the house, the number of bedroom, the year the house was built, etc. Run the following lines to import the dataset and then to give names to the variables. Remember to replace the "./MidwestSales.txt", in the read.table call with your own path to where you saved the dataset. Say you named the dataset "MidwestSales": # Import MidWestSales dataset MidwestSales = read. table(". /MidwestSales. txt", fill=TRUE, header=FALSE) # This dataset does not have names, so we will add names to the variables names (MidWestSales)=c("id", "price", "sqft", "bed", "bath", "ac", "garage", "pool", "year", "quality", "style", "lot","hwy") a. Fit a linear model where the square footage of the house is used to predict the sale price. (X=sqft and Y=price). Write the estimated regression equation. b. Interpret the estimate of the slope. c. Test whether square footage has a significant linear relationship with price. Use a = 0.05 level of significance. Write the null and alternative hypothesis, state the test statistic and p-value, and make a conclusion. d. Now test whether square footage has a significant positive linear relationship with price. Use a = 0.05 level of significance. Write the null and alternative hypothesis, state the test statistic and p-value, and make a conclusion. e. Find and interpret a 95% confidence interval for the mean price when sqft=2000. f. Find and interpret a 95% prediction interval for the price when sqft-2000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Trigonometry A Unit Circle Approach (Subscription)

Authors: Michael Sullivan, Michael Sullivan III

11th Edition

0135229693, 9780135229699

More Books

Students also viewed these Mathematics questions

Question

Did the author acknowledge the limitations of the study?

Answered: 1 week ago