Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a simple R script that i can use some help with please. Use boxplot( ) and qqnorm( ) to determine if sales can

This is a simple R script that i can use some help with please.

Use boxplot( ) and qqnorm( ) to determine if sales can be considered normally distributed. Discuss your findings.

Determine if any of the datasets TV, radio, or newspaper can be considered normally distributed.

Consider whether any power transforms can be applied to convert the data to an approximately normal distribution.

Check for any outliers and/or high leverage points and decide if to remove them from the data. Include a discussion on your findings and your chosen way forward.

Would you lean toward a more flexible or less flexible model to represent this data? Why?

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

$$A @ Bull 25% 10:51 am Advertising - Read-only { : Read Only - You can't save changes to this... V fx 4 A B D E F G H 1 2 3 4 5. 6 7 8 TV radio 1 230.1 37.8 2 44.5 39.3 3 17.2 45.9 4 151.5 41.3 5 180.8 10.8 6 8.7 48.9 7 57.5 32.8 8 120.2 19.6 9 8.6 2.1 10 199.8 2.6 11 66.1 5.8 12 214.7 24 13 23.8 35.1 14 97.5 7.6 15 204.1 32.9 16 195.4 47.7 17 67.8 36.6 18 281.4 39.6 19 69.2 20.5 20 147.3 23.9 21 218.4 27.7 22 237.4 5.1 23 13.2 15.9 24 228.3 16.9 25 62.3 12.6 26 262.9 3.5 27 142.9 29.3 28 240.1 16.7 29 248.8 27.1 30 70.6 16 31 292.9 28.3 32 112.9 17.4 33 97.2 1.5 34 265.6 20 35 95.7 1.4 36 290.7 4.1 37 266.9 43.8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 newspape sales 69.2 22.1 45.1 10.4 69.3 9.3 58.5 18.5 58.4 12.9 75 7.2 23.5 11.8 11.6 13.2 1 4.8 21.2 10.6 24.2 8.6 4 17.4 65.9 9.2 7.2 9.7 46 19 52.9 22.4 114 12.5 55.8 24.4 18.3 11.3 19.1 14.6 53.4 18 23.5 49.6 5.6 26.2 15.5 18.3 9.7 19.5 12 12.6 15 22.9 15.9 22.9 18.9 40.8 10.5 43.2 21.4 38.6 11.9 30 9.6 0.3 17.4 7.4 9.5 8.5 12.8 5 25.4 12.5 00 EL ELO 5 g 2 $&A @ NO ill 25% 10:51 am Read Only - You can't save changes to this... fx 4 A B D E F G H 37 5 38 39 40 38 39 40 41 41 42 43 43.8 49.4 26.7 37.7 22.3 33.4 27.7 8.4 25.7 22.5 9.9 41.5 15.8 11.7 44 45 46 = 47 48 49 50 51 45.7 35.1 32 31.6 38.7 1.8 26.4 43.3 31.5 35.7 18.5 49.9 36.8 34.6 3.6 39.6 58.7 15.9 60 41.4 16.6 37.7 9.3 52 25.4 14.7 10.1 21.5 16.6 17.1 20.7 12.9 8.5 14.9 10.6 23.2 14.8 9.7 11.4 10.7 22.6 21.2 20.2 23.7 5.5 13.2 23.8 18.4 8.1 24.2 15.7 14 3.1 9.6 41.7 46.2 53 54 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 55 266.9 74.7 43.1 228 202.5 177 293.6 206.9 25.1 175.1 89.7 239.9 227.2 66.9 199.8 100.4 216.4 182.6 262.7 198.9 7.3 136.2 210.8 210.7 53.5 261.3 239.3 102.7 131.1 69 31.5 139.3 237.4 216.8 199.1 109.8 26.8 129.4 213.4 16.9 27.5 120.5 56 57 58 59 60 28.8 49.4 28.1 19.2 49.6 61 62 63 64 65 18 66 67 9.3 9.5 13.4 68 69 29.5 2 42.7 15.5 29.6 42.8 9.3 24.6 14.5 27.5 43.9 30.6 14.3 33 5.7 24.6 43.7 1.6 28.5 21.4 54.7 27.3 8.4 28.9 0.9 2.2 10.2 11 27.2 38.7 31.7 19.3 31.3 13.1 89.4 20.7 14.2 70 71 18.9 22.3 18.3 12.4 8.8 11 72 73 74 17 75 76 77 78 8.7 6.9 14.2 19 00 $&A @ NG 25% 10:51 am Read Only - You can't save changes to this... fx 2 A B E F G H 78 79 80 28.5 29.9 81 82 83 84 85 7.7 26.7 4.1 20.3 44.5 43 18.4 27.5 40.6 25.5 47.8 D 14.2 9.4 23.1 22.3 36.9 32.5 35.6 33.8 65.7 16 63.2 73.4 51.4 9.3 33 59 86 87 88 89 90 91 4.9 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 92 93 94 95 96 1.5 33.5 36.5 14 31.6 72.3 14.2 5.3 11 11.8 12.3 11.3 13.6 21.7 15.2 12 16 12.9 16.7 11.2 7.3 19.4 22.2 11.5 16.9 11.7 15.5 25.4 17.2 11.7 23.8 14.8 14.7 20.7 19.2 7.2 8.7 5.3 II 120.5 5.4 116 76.4 239.8 75.3 68.4 213.5 193.2 76.3 110.7 88.3 109.8 134.3 28.6 217.7 250.9 107.4 163.3 197.6 184.9 289.7 135.2 222.4 296.4 280.2 187.9 238.2 137.9 25 90.4 13.1 255.4 225.8 241.7 175.7 209.6 78.2 75.1 139.2 76.4 125.7 3.5 21 42.3 41.7 4.3 36.3 10.9 52.9 5.9 22 51.2 45.9 49.8 100.9 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 10.1 17.2 34.3 46.4 11 21.4 17.9 5.3 59 29.7 23.2 25.6 5.5 56.5 23.2 0.3 0.4 26.9 19.8 8.2 38 15.4 20.6 46.8 35 14.3 0.8 36.9 2.4 10.7 34.5 52.7 115 116 117 118 119 120 13.4 21.8 14.1 15.9 14.6 12.6 12.2 9.4 15.9 25.6 14.8 79.2 00 ELTO $&A @ NO 25% 10:51 am Read Only - You can't save changes to this... fx A B C D E F G H 120 119 120 125.7 19.4 79.2 22.3 15.9 6.6 121 46.2 15.5 50.4 15.6 122 123 124 125 36.9 16 26.8 21.7 2.4 34.6 32.3 11.8 38.9 0 49 12 39.6 126 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 127 128 129 130 131 132 133 141.3 18.8 224 123.1 229.5 87.2 7.8 80.2 220.3 59.6 0.7 265.2 8.4 219.8 36.9 48.3 25.6 273.7 43 184.9 73.4 193.7 220.5 104.6 96.2 140.3 240.1 243.2 12.4 74.2 25.9 50.6 9.2 3.2 43.1 8.7 43 2.1 45.1 65.6 8.5 9.3 59.7 20.5 1.7 12.9 75.6 37.9 34.4 38.9 9 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 2.9 27.2 33.5 38.6 47 39 28.9 25.9 43.9 17 35.4 33.2 5.7 14.8 1.9 7.3 49 40.3 25.8 13.9 8.4 23.3 39.7 21.1 11.6 43.5 7 11.6 15.2 19.7 10.6 6.6 8.8 24.7 9.7 1.6 12.7 5.7 19.6 10.8 11.6 9.5 20.8 9.6 20.7 10.9 19.2 20.1 10.4 11.4 10.3 13.2 25.4 10.9 10.1 16.1 11.6 16.6 19 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 II 38 44.7 8.7 44.3 11.9 20.6 37 48.7 14.2 37.7 9.5 280.7 121 197.6 171.3 187.8 4.1 93.9 149.8 11.7 131.7 5.7 50.5 24.3 45.2 15.6 3.2 15.3 10.1 7.3 12.9 1.3 36.9 18.4 34.6 no 00 2 EITO $&A @ NO 25% 10:51 am Read Only - You can't save changes to this... fx 2 A B E F G H 18.4 18.1 35.8 18.1 36.8 14.7 12.9 14.4 13.3 14.9 18 11.9 11.9 3.4 8 37.6 5.2 23.6 10.6 11.6 20.9 20.1 7.1 3.4 48.9 12.2 17.1 15 8.4 14.5 7.6 30.2 7.8 2.3 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 131.7 172.5 85.7 188.4 163.5 117.2 234.5 17.9 206.8 215.4 284.3 50 164.5 19.6 168.4 222.4 276.9 248.4 170.2 276.7 165.6 156.6 218.5 56.2 287.6 253.8 205 139.5 191.1 286 18.7 39.5 75.5 17.2 166.8 149.7 38.2 94.2 177 283.6 232.1 34.6 30.7 49.3 25.6 7.4 5.4 84.8 21.6 19.4 57.6 6.4 18.4 47.4 17 12.8 13.1 41.8 20.3 35.2 23.7 17.6 8.3 27.4 29.7 71.8 30 19.6 26.6 18.2 3.7 23.4 5.8 6 31.6 3.6 6 13.8 11.7 11.5 27 20.2 11.7 11.8 12.6 10.5 12.2 10 8.7 2.6 5.4 5.7 43 21.3 45.1 2.1 28.7 13.9 12.1 41.1 10.8 4.1 42 35.6 26.2 17.6 22.6 10.3 17.3 15.9 6.7 10.8 9.9 5.9 19.6 17.3 7.6 9.7 12.8 25.5 13.4 3.7 IL 4.9 9.3 42 8.6 8.1 6.4 66.2 8.7 ? 5 ? $$A @ Bull 25% 10:51 am Advertising - Read-only { : Read Only - You can't save changes to this... V fx 4 A B D E F G H 1 2 3 4 5. 6 7 8 TV radio 1 230.1 37.8 2 44.5 39.3 3 17.2 45.9 4 151.5 41.3 5 180.8 10.8 6 8.7 48.9 7 57.5 32.8 8 120.2 19.6 9 8.6 2.1 10 199.8 2.6 11 66.1 5.8 12 214.7 24 13 23.8 35.1 14 97.5 7.6 15 204.1 32.9 16 195.4 47.7 17 67.8 36.6 18 281.4 39.6 19 69.2 20.5 20 147.3 23.9 21 218.4 27.7 22 237.4 5.1 23 13.2 15.9 24 228.3 16.9 25 62.3 12.6 26 262.9 3.5 27 142.9 29.3 28 240.1 16.7 29 248.8 27.1 30 70.6 16 31 292.9 28.3 32 112.9 17.4 33 97.2 1.5 34 265.6 20 35 95.7 1.4 36 290.7 4.1 37 266.9 43.8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 newspape sales 69.2 22.1 45.1 10.4 69.3 9.3 58.5 18.5 58.4 12.9 75 7.2 23.5 11.8 11.6 13.2 1 4.8 21.2 10.6 24.2 8.6 4 17.4 65.9 9.2 7.2 9.7 46 19 52.9 22.4 114 12.5 55.8 24.4 18.3 11.3 19.1 14.6 53.4 18 23.5 49.6 5.6 26.2 15.5 18.3 9.7 19.5 12 12.6 15 22.9 15.9 22.9 18.9 40.8 10.5 43.2 21.4 38.6 11.9 30 9.6 0.3 17.4 7.4 9.5 8.5 12.8 5 25.4 12.5 00 EL ELO 5 g 2 $&A @ NO ill 25% 10:51 am Read Only - You can't save changes to this... fx 4 A B D E F G H 37 5 38 39 40 38 39 40 41 41 42 43 43.8 49.4 26.7 37.7 22.3 33.4 27.7 8.4 25.7 22.5 9.9 41.5 15.8 11.7 44 45 46 = 47 48 49 50 51 45.7 35.1 32 31.6 38.7 1.8 26.4 43.3 31.5 35.7 18.5 49.9 36.8 34.6 3.6 39.6 58.7 15.9 60 41.4 16.6 37.7 9.3 52 25.4 14.7 10.1 21.5 16.6 17.1 20.7 12.9 8.5 14.9 10.6 23.2 14.8 9.7 11.4 10.7 22.6 21.2 20.2 23.7 5.5 13.2 23.8 18.4 8.1 24.2 15.7 14 3.1 9.6 41.7 46.2 53 54 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 55 266.9 74.7 43.1 228 202.5 177 293.6 206.9 25.1 175.1 89.7 239.9 227.2 66.9 199.8 100.4 216.4 182.6 262.7 198.9 7.3 136.2 210.8 210.7 53.5 261.3 239.3 102.7 131.1 69 31.5 139.3 237.4 216.8 199.1 109.8 26.8 129.4 213.4 16.9 27.5 120.5 56 57 58 59 60 28.8 49.4 28.1 19.2 49.6 61 62 63 64 65 18 66 67 9.3 9.5 13.4 68 69 29.5 2 42.7 15.5 29.6 42.8 9.3 24.6 14.5 27.5 43.9 30.6 14.3 33 5.7 24.6 43.7 1.6 28.5 21.4 54.7 27.3 8.4 28.9 0.9 2.2 10.2 11 27.2 38.7 31.7 19.3 31.3 13.1 89.4 20.7 14.2 70 71 18.9 22.3 18.3 12.4 8.8 11 72 73 74 17 75 76 77 78 8.7 6.9 14.2 19 00 $&A @ NG 25% 10:51 am Read Only - You can't save changes to this... fx 2 A B E F G H 78 79 80 28.5 29.9 81 82 83 84 85 7.7 26.7 4.1 20.3 44.5 43 18.4 27.5 40.6 25.5 47.8 D 14.2 9.4 23.1 22.3 36.9 32.5 35.6 33.8 65.7 16 63.2 73.4 51.4 9.3 33 59 86 87 88 89 90 91 4.9 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 92 93 94 95 96 1.5 33.5 36.5 14 31.6 72.3 14.2 5.3 11 11.8 12.3 11.3 13.6 21.7 15.2 12 16 12.9 16.7 11.2 7.3 19.4 22.2 11.5 16.9 11.7 15.5 25.4 17.2 11.7 23.8 14.8 14.7 20.7 19.2 7.2 8.7 5.3 II 120.5 5.4 116 76.4 239.8 75.3 68.4 213.5 193.2 76.3 110.7 88.3 109.8 134.3 28.6 217.7 250.9 107.4 163.3 197.6 184.9 289.7 135.2 222.4 296.4 280.2 187.9 238.2 137.9 25 90.4 13.1 255.4 225.8 241.7 175.7 209.6 78.2 75.1 139.2 76.4 125.7 3.5 21 42.3 41.7 4.3 36.3 10.9 52.9 5.9 22 51.2 45.9 49.8 100.9 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 10.1 17.2 34.3 46.4 11 21.4 17.9 5.3 59 29.7 23.2 25.6 5.5 56.5 23.2 0.3 0.4 26.9 19.8 8.2 38 15.4 20.6 46.8 35 14.3 0.8 36.9 2.4 10.7 34.5 52.7 115 116 117 118 119 120 13.4 21.8 14.1 15.9 14.6 12.6 12.2 9.4 15.9 25.6 14.8 79.2 00 ELTO $&A @ NO 25% 10:51 am Read Only - You can't save changes to this... fx A B C D E F G H 120 119 120 125.7 19.4 79.2 22.3 15.9 6.6 121 46.2 15.5 50.4 15.6 122 123 124 125 36.9 16 26.8 21.7 2.4 34.6 32.3 11.8 38.9 0 49 12 39.6 126 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 127 128 129 130 131 132 133 141.3 18.8 224 123.1 229.5 87.2 7.8 80.2 220.3 59.6 0.7 265.2 8.4 219.8 36.9 48.3 25.6 273.7 43 184.9 73.4 193.7 220.5 104.6 96.2 140.3 240.1 243.2 12.4 74.2 25.9 50.6 9.2 3.2 43.1 8.7 43 2.1 45.1 65.6 8.5 9.3 59.7 20.5 1.7 12.9 75.6 37.9 34.4 38.9 9 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 2.9 27.2 33.5 38.6 47 39 28.9 25.9 43.9 17 35.4 33.2 5.7 14.8 1.9 7.3 49 40.3 25.8 13.9 8.4 23.3 39.7 21.1 11.6 43.5 7 11.6 15.2 19.7 10.6 6.6 8.8 24.7 9.7 1.6 12.7 5.7 19.6 10.8 11.6 9.5 20.8 9.6 20.7 10.9 19.2 20.1 10.4 11.4 10.3 13.2 25.4 10.9 10.1 16.1 11.6 16.6 19 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 II 38 44.7 8.7 44.3 11.9 20.6 37 48.7 14.2 37.7 9.5 280.7 121 197.6 171.3 187.8 4.1 93.9 149.8 11.7 131.7 5.7 50.5 24.3 45.2 15.6 3.2 15.3 10.1 7.3 12.9 1.3 36.9 18.4 34.6 no 00 2 EITO $&A @ NO 25% 10:51 am Read Only - You can't save changes to this... fx 2 A B E F G H 18.4 18.1 35.8 18.1 36.8 14.7 12.9 14.4 13.3 14.9 18 11.9 11.9 3.4 8 37.6 5.2 23.6 10.6 11.6 20.9 20.1 7.1 3.4 48.9 12.2 17.1 15 8.4 14.5 7.6 30.2 7.8 2.3 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 131.7 172.5 85.7 188.4 163.5 117.2 234.5 17.9 206.8 215.4 284.3 50 164.5 19.6 168.4 222.4 276.9 248.4 170.2 276.7 165.6 156.6 218.5 56.2 287.6 253.8 205 139.5 191.1 286 18.7 39.5 75.5 17.2 166.8 149.7 38.2 94.2 177 283.6 232.1 34.6 30.7 49.3 25.6 7.4 5.4 84.8 21.6 19.4 57.6 6.4 18.4 47.4 17 12.8 13.1 41.8 20.3 35.2 23.7 17.6 8.3 27.4 29.7 71.8 30 19.6 26.6 18.2 3.7 23.4 5.8 6 31.6 3.6 6 13.8 11.7 11.5 27 20.2 11.7 11.8 12.6 10.5 12.2 10 8.7 2.6 5.4 5.7 43 21.3 45.1 2.1 28.7 13.9 12.1 41.1 10.8 4.1 42 35.6 26.2 17.6 22.6 10.3 17.3 15.9 6.7 10.8 9.9 5.9 19.6 17.3 7.6 9.7 12.8 25.5 13.4 3.7 IL 4.9 9.3 42 8.6 8.1 6.4 66.2 8.7 ? 5

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_2

Step: 3

blur-text-image_3

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

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions

Question

Why We Form Relationships Managing Relationship Dynamics?

Answered: 1 week ago