Question: Please do this in python programming langauges Here is an example of data bining . . First the Price Data is Sorted... Next, the Data

Please do this in python programming langauges
Here is an example of data bining ..
First the Price Data is Sorted...
Next, the Data is Partitioned into Equal Frequency Bins of Size 3...That is, Each Bin Contains 3 Values...
Smoothing By Bin Means of the Values 4,8, and 15 in Bin 1 is 9...Each Original Value in the Bin is Replaced by the Mean Value 9...the Same Process is Followed for Bins 2 and 3...
SORTEDPRICEDATA:
4,8,15,21,21,24,25,28,34
PARTITIONDATAINTOEQUAL FREQUENCY BINS:
BIN 1 : 4,8,15
BIN 2 : 21,21,24 BIN 3 : 25,28,34
SMOOTHINGBYBINMEANS: BIN 1 : 9,9,9
BIN 2 : 22,22,22 BIN 3 : 29,29,29
Here is an Example of Binning...
First the Price Data is Sorted...
Next, the Data is Partitioned into Equal Frequency Bins of Size 3...That is, Each Bin Contains 3 Values...
Smoothing By Bin Medians of the Values 4,8, and 15 in Bin 1 is 8...Each Original Value in the Bin is Replaced by the Median Value 8... the Same Process is Followed for Bins 2 and 3...
SORTEDPRICEDATA:
4,8,15,21,21,24,25,28,34
PARTITIONDATAINTOEQUAL FREQUENCY BINS:
BIN 1 : 4,8,15
BIN 2 : 21,21,24 BIN 3 : 25,28,34
SMOOTHINGBYBINMEDIANS: BIN 1 : 8,8,8
BIN 2 : 21,21,21 BIN 3 : 28,28,28
Here is an Example of Binning...
First the Price Data is Sorted...
Next, the Data is Partitioned into Equal Frequency Bins of Size 3...That is, Each Bin Contains 3 Values...
Smoothing By Bin Boundaries of the Values 4,8, and 15 in Bin 1 Would Have a Minimum of 4 and a Maximum of 15...the Remaining Value 8 is Closest to the Minimum Boundary and So it is Replaced by the Value 4...the Same Process is Followed for Bins 2 and 3...
SORTEDPRICEDATA:
4,8,15,21,21,24,25,28,34
PARTITIONDATAINTOEQUAL FREQUENCY BINS:
BIN 1 : 4,8,15
BIN 2 : 21,21,24 BIN 3 : 25,28,34
SMOOTHINGBYBINBOUNDARIES: BIN 1 : 4,4,15
BIN 2 : 21,21,24 BIN 3 : 25,25,34

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!