You are on page 1of 2

Ensemble learning numerical

Solve the below by applying the ensemble learning techniques voting and averaging on the rating of a new
mobile product given by four persons? show the result of each technique?

Camera Speed Gaming Weight Style


Father 4 4 3 5 4
Mother 3 3 3 3 3
Brother 5 5 2 1 1
Sister 5 2 3 3 2
Solution:
Voting:
Majority Vote for Feature=Rating with the Highest Count
Camera: The majority vote for Camera is 5 because it appears twice, while the other ratings appear only once.
Voting for Speed:
 For each feature, take the majority vote.
 Equation for Majority Vote:
Majority Vote for Speed=argmax(4,3,5,2)=5Majority Vote for Speed=argmax(4,3,5,2)=5
Gaming: The majority vote for Gaming is 3 because it appears three times, while the other ratings appear only
once or twice.
Weight: The majority vote for Weight is 3 because it appears twice, while the other ratings appear only once.
Style:
Majority Vote for Speed=argmax(4,3,1,2)=4 Majority Vote for Speed=argmax(4,3,1,2)=4
Overall Result:
Camera Speed Gaming Weight Style

Majority Vote 5 4 3 3 4

Averaging:
Averaging for Speed:
 The average (mean) is calculated by summing up all the values in a set and dividing the sum by the
number of values in the set. Here's the formula for calculating the average:
Average=Sum of ValuesNumber of ValuesAverage=Number of Values/Sum of Values
For a set of values x1, x2, x3, …, xn, the average (ˉxˉ) is calculated as: (xˉ) =x1+x2+x3+…+xn/n
 In the context of the mobile product ratings: For each feature (e.g., Camera, Speed, Gaming, Weight,
Style), you sum up the ratings given by each family member and then divide by the total number of
family members.
For example, for the "Camera" feature:
Average Camera=4+3+5+5/4
 And similarly for other features.
 So, the formula for calculating the average for a particular feature is:
Average=Sum of Ratings for the Feature/Number of Family
or

 Repeat this process for each feature to obtain the average ratings for the new mobile product.
Overall Result:
Camera Speed Gaming Weight Style
Average 4.25 3.5 2.75 3 2.5
Boosting (AdaBoost):

Bagging (Bootstrap Aggregating):

Stacking:

You might also like