<% experiments.each do |experiment| %> <% results = experiment.results %>

<%= experiment.name %> <%= link_to "Details", experiment_path(experiment.id) %>

<% if experiment.description %>

<%= experiment.description %>

<% end %> <% results.each do |variant, result| %> <% end %>
Variant Participants Conversions Conversion Rate Prob Winning
<%= variant %> <% if variant == experiment.winner %> <% end %> <%= result[:participated] %> <%= result[:converted] %> <% if result[:conversion_rate] %> <%= (100.0 * result[:conversion_rate]).round %>% <% else %> - <% end %> <% if result[:prob_winning] %> <% if result[:prob_winning] < 0.01 %> < 1% <% else %> <%= (100.0 * result[:prob_winning]).round %>% <% end %> <% end %>
<% end %>