Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON MATHEMATICS For this problem, you will be using the data set customer spending.csv . ( a ) Make a histogram of the customer spending

PYTHON MATHEMATICS
For this problem, you will be using the data set customer spending.csv.
(a) Make a histogram of the customer spending amounts.
(b) Make a new data set that is a log transformation of the customer spending amounts.
(c) Make a histogram of the log transformed dataset.
(d) Compare the two histograms. Discuss why it might be useful to apply a log transformation to this data for modeling purposes. Here is the provided data from the excel sheet.
ann_spending
34112
33266
36610
27381
46100
26710
26465
29517
18694
46662
33864
21259
62889
52811
53729
16961
27679
20653
43180
23427
32116
12775
53785
110829
59390
32251
17946
19227
65522
50927
39777
13977
27425
49415
7046
22778
46962
47341
44451
70746
49633
35607
40499
46111
32392
62834
49039
192714
35720
71844
15975
16472
54910
29075
34698
18163
82552
34729
18656
24353
23905
165881
29804
48640
15353
92562
12630
47365
23452
14044
34068
64617
22594
43488
29293
26923
19789
67354
16572
12277
12412
32419
37219
27862
25143
199891
150497
78649
22394
41145
17415
28483
95972
54244
34657
10547
14993
2158
2476
19926
45833
38694
25588
90498
23052
22998
27289
47207
20897
48633
19252
50043
36329
23832
25063
18516
19098
19376
30989
17546
25499
11666
15534
35066
47561
105046
31744
45408
14017
48695
17898
3730
21273
12799
12748
11875
28798
20867
26503
16100
35063
50642
55459
22239
25327
82278
13401
18177
11819
37249
21905
9199
26883
17789
904
46102
34169
26220
25665
31519
25603
16585
24518
64666
27863
62038
30316
12167
9248
11504
30819
61552
16850
39485
10845
28007
68264
29025
24689
17460
31857
190169
27251
185683
6374
18243
9530
29990
37367
30091
32681
16317
10364
31200
13396
37365
65080
26824
25480
15331
54065
63056
58383
4925
10789
47344
9554
21749
17169
49127
26000
107155
13671
23285
27938
38699
69778
25385
35181
8434
19606
28042
17139
18342
10945
22287
41795
11047
8933
22422
34089
20345
33336
10617
29287
13771
15454
29000
9823
62163
47041
32880
26715
24546
31090
35079
15907
17184<

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

Create a decision tree for Problem 12.

Answered: 1 week ago