What statistical technique would be appropriate for optimising the weights?
Background:
For example I have the following data
headings = {
:heading1 => { :weight => 25, :views => 0, :conversions => 0}
:heading2 => { :weight => 25, :views => 0, :conversions => 0}
:heading3 => { :weight => 25, :views => 0, :conversions => 0}
:heading开发者_如何转开发4 => { :weight => 25, :views => 0, :conversions => 0}
}
total_views = 0
I got to serve these headings based on their weightages. Every time a heading is served its views
is incremented by one and total_views
also incremented. And whenever a user clicks on a served heading its conversions
is incremented by one. I've written a program (in Ruby) which is performing this well.
Question:
I need to Auto Optimize
best converting heading. Consider the following views and conversions for all headings:
heading1: views => 50, conversions => 30
heading2: views => 50, conversions => 10
heading3: views => 50, conversions => 15
heading4: views => 50, conversions => 5
I need to automatically increase the weightage of heading(s) which is/are converting more and vice versa. The sum of weightage will always be 100.
Is there any standard algorithm/formula/technique to do this? There might be some other parameters that need to predefined before making these calculations. But I am not getting it through.
Pleas advise.
Thanks,
Imran
Well, a simple percentage calculation would do that.
30+10+15+5=60
30/60*100=50
10/60*100=17 (rounded)
15/60*100=25
5/60*100=8 (rounded)
So you get weightings of 50,17,25 and 8. You may or may not nead to watch out for rounding errors.
精彩评论