public:the_number_of_people_voted_in_an_instagram_poll
This is an old revision of the document!
Table of Contents
The number of people voted in an Instagram poll
Instagram provides a polling feature, which allows the user to ask a question with two answers to the audiences. Once an audience pick one of the two answers, the percentage of users who pick each answer is displayed.
So the questions are: how many people actually voted in the poll? How many people voted for each option?
I believe mathematical modelling of the voting process can provide an answer to these questions.
Mathematical model of Instagram's polling feature
The Instagram poll can modelled using the following formula:
$$ poll(x, y)$$
Matlab implementation
function [x] = IPRL(yes, total) %IPRL Instagram Poll Reverse Lookup % Detailed explanation goes here tbl = GenTable(total); [x, ~] = find(tbl == yes); end function [tbl] = GenTable(n) %GENTABLE Generate Instagram Reverse Lookup Table tbl = zeros(n); for i = 1:n for j = 1:i tbl(i,j) = round(j/i, 2) * 100; end end end
public/the_number_of_people_voted_in_an_instagram_poll.1555071531.txt.gz · Last modified: 2019/04/12 12:18 by fangfufu