Confusing Sampling from observed data Suppose we are given some small set of data on bundles of electrical wires and increasing voltages run through them, and we note how many of the individual wires fail.
So for example, a large data set we have 6 observations, for each 6, 
there is $w_{i}$ number of wires, voltage $v_{i}$ and $f_{i}$ of the wires fail.
And suppose we are given some of the information for example, ( note that each sample has increased voltage and we see increased proportion of failed wires).
$w_{1}=14$ and $f_{1}=4$
$w_{2}=13$ and $f_{2}=4$
$w_{3}=7$ and $f_{3}=3$
$w_{4}=10$ and $f_{4}=5$
$w_{5}=12$ and $f_{5}=7$
$w_{6}=20$ and $f_{6}=13$
ie we have a parameter space such that ( $t$ is the proportion that fail) $\{t_{i}: t_{1} \lt t_{2} \lt t_{3} \lt .. \lt t_{6} \le 1\}$ Assuming a flat prior over this.
My goal is to model this as a conditional distribution and sample so that I can make some statements about each $t_{i}$, such as the mean and deviations of each.(assuming flat prior) (ie. from histrograms)
Firstly I know about sampling, but I am wondering how from just the simple data, how I can accurately form the conditional distribution? Using rejection or  transformations for example, and then Gibbs to make some conclusions on the individual failure proportions.
My thoughts:
Well it seems that the number of wires that fail is a function of the voltage. As voltage increases, so to does the proportion of failed wires.
Possibly I could use rejection method to sample from the distribution that is creating this?
So I would want to find some function $g(x)$ such that $g(x) \ge f(x)$ for all $x$ , then simulate uniform random variables and check the conditions. 
However, as of now I don't have a distribution.  I guess I could form a hand drawn using the points and x axis as 1,2,3,4,5,6... and y being the corresponding proportion rate of failure.
I know for a distribution, we need the probabilities to sum/integrate to 1.
The probabilities here I assume would be the probability that a certain proportion fail. So for n wires, we would have the probability that $p_{1}=\frac{1}{n}$ proportional fail, a probability for $p_{2}=\frac{2}{n} $proportion fail, all the way to the probability that all wires fail.
So it looks more like the form of a CDF, as voltage increases, ie if we write in the form of a function, $F(v_{1})=\frac{4}{14}$ , $F(v_{2})=\frac{4}{13}$, and so forth, so if we had an unlimited sample, as $n \to \infty$ , $F(v_{n}) \to 1$
and I suppose then $F^{-1}=f$ would be our density, but I am still not sure how to do this in finite case.
Issues: We are not told anything about underlying distribution, parameters or form. Only the data given. So do we take the data that is given to be the initialising values?
I was thinking I could possibly just assume that the failures follow a binomial distribution, with the binomial parameter following some other distribution such as a beta. How does that sound? Would we then need to also put some distribution on the $w_{i}$ ? I would be okay trying it without that distribution, but I want to understand how I can have the failure probability increase
Any advice , ideas and answers are much appreciated.
 A: A sketch will be of much help to resume the terms of the problem.

We have a production of wires in which the insulation
resistance is spread over a range of voltages with a certain PDF and relevant CDF.
We set a voltage $V_k$ in the range, and we take a relatively small sample of wires, 
of size $w_k$ (variable for each test) and record the number of wires that fails $f_k$.
The $w_k$ wires will have a distribution of breaking voltages which ideally follows 
the population CDF, that is, when dividing the vertical range of probability into
$w_k$ equal intervals, we would expect to find one wire into each (placed at its center).
That means to say that the elements projected on the vertical scale will follow there a uniform
probability density on the $[0,1]$ interval.
Then we are going to assign to $V_k$ a value $P'_k$ for the CDF, corresponding to the interval limit 
between failed/not-failed as indicated in the sketch ($0.4$ in the example shown).
Now, with respect to the underlying population distribution, corresponding to a huge sample,
a small sample will introduce two kind of error:
 - a "discretization" error, because of the gap interval between failed / survived;
 - a "sampling" error, because the sample will deviate from an exact uniform distribution.
We can inglobate the two by asking ourselves:
given $w_k$ elements from a uniform distribution on $[0,1]$,  with $f_k$ that failed the test, which is the probability that 
one of the failed elements be at the limit of the threshold $0 \le P'_k \le 1$, the remaining $f_k-1$ be below that, and $w_k-f_k$ above.
That is clearly expressible as
$$ \bbox[lightyellow] {  
p(P'_{\,k} )\,dP'_{\,k}  = w_{\,k} \,dP'_{\,k} \left( \matrix{  w_{\,k}  - 1 \cr 
  w_{\,k}  - 1 \cr}  \right) {P'_{\,k}} ^{f_{\,k}  - 1} \left( {1 - P'_{\,k} } \right)^{w_{\,k}  - f_{\,k} } 
}$$
It is easy to check, through the expression of the Beta Function
that the integral of the above correctly gives $1$.
In fact $p(P'_{\,k} )$ is a Beta Distribution PDF
$$ \bbox[lightyellow] {  
p(P'_{\,k} ) = Beta\left( {f_{\,k} ,\,w_{\,k}  - f_{\,k}  + 1} \right)
}$$
because
$$
w\left( \matrix{  w - 1 \cr  f - 1 \cr}  \right)
  = w{{\Gamma \left( w \right)} \over {\Gamma \left( f \right)\Gamma \left( {w - f + 1} \right)}}
 = {{\Gamma \left( {w + 1} \right)} \over {\Gamma \left( f \right)\Gamma \left( {w + 1 - f} \right)}} = {1 \over {{\rm B}\left( {f,w - f + 1} \right)}}
$$
Note that in the cited reference it is affirmed that
The beta distribution is a suitable model for the random behavior of percentages and proportions.
In the construction above, we have set the threshold $P'_k$ to coincide with the failed element of highest resistance.
Actually there is a gap between this and the first good item (that with lower resistance), so that the threshold could be
moved up to this. That is equivalent to choosing a $ Beta\left( {f_{\,k}+1 ,\,w_{\,k}  - f_{\,k}} \right)$.
So, if there is not a need for more sophistication, we can take the threshold to be at half of the gap, thus to take
$$ \bbox[lightyellow] {  
p(P'_{\,k} ) = Beta\left( {f_{\,k}  + 1/2,\,w_{\,k}  - f_{\,k}  + 1/2} \right)
}$$
which gives a mean and variance of
$$ \bbox[lightyellow] {  
E\left( {P'_{\,k} } \right) = {{f_{\,k}  + 1/2} \over {w_{\,k}  + 1}}\quad {\rm var}\left( {P'_{\,k} } \right)
 = {{\left( {f_{\,k}  + 1/2} \right)\left( {w_{\,k}  - f_{\,k}  + 1/2} \right)} \over {\left( {w_{\,k}  + 1} \right)^{\,2} \left( {w_{\,k}  + 2} \right)}}
}$$
It is this mean the value to assign to $P'_k$, associated with an "error" following the Beta distribution around that.
After that you can perform a regression on the plot $V_k, P_k$ obtained, or a distribution fitting,
 to estimate the  underlying population CDF.
