haruspex said:
Yes, in post #118 I meant d being from 0 to infinity. That would give 1.
It depends what you are trying to do here. Initially you were asking what the probability of a goal is given that the ball hits the post. You can answer that by making D a variable depending on the angle. But that means a) you are changing the distribution of angles, making shots at 45 degrees relatively more common than ones full on, and b) you cannot use it to compare the two post shapes.
To compare the posts you must set D to a constant finite value large enough to encompass both posts from all angles. This will not give an actual probability of a goal in either case, but it does tell you what the difference between them is.
Again I can't understand what you mean here, how am I changing the distribution of angles? And why can't this be used to compare the two post shapes?
Let me state the whole method as I understand it.
Now, I need diagrams and figures to understand pretty much everything so I will now talk w.r.t to the diagrams in the links below.
Square post Circular post
We assumed a path of shot whose angle with the goal line is ##\theta## and distance from center of one of the posts is ##d##
As we can see that moving point ##B## changes both the distance of path of the ball from the center of the post and its angle with the goal line.
(Note that distance to the left side of the post in the figures are taken -ve)
And we assumed the other post to be at distance ##(-\infty)## from our post in the figure, so our total values of ##d## ranges from ##(-D,D)## where ##D## is a large enough constant and the favourable values of ##d## ranges from ##(-D,-S\sqrt 2\cos(\frac{\pi}4-\theta))## in square post and ##(-D,-R\cos(\frac \theta 2))## in round post.
So now for a given value of ##\theta## our required probabilities are,
##P(square)=\dfrac{d \space \text{(favourable)}}{d \space \text {(total)}}=\dfrac{D-S\sqrt 2\cos(\frac{\pi}4-\theta)}{2D}##
##P(round)=\dfrac{d \space \text{(favourable)}}{d \space \text {(total)}}=\dfrac{D-R\cos(\frac \theta 2)}{2D}##
Now this was for a given ##\theta## but we also have ##\theta \in (0,\pi)## and thus we got,
##P(square)=\frac 1{2D\pi}\int_0^\pi D-S\sqrt 2\cos(\frac{\pi}4-\theta)d\theta##
##P(round)=\frac 1{2D\pi}\int_0^\pi(D-R\cos(\frac\theta 2))d\theta##
Now in this method we calculated the probability assuming uniform distribution of ##d## from ##-D## to ##D## and uniform distribution of ##\theta \in (0,\pi)##
Now, if we want to compare the posts we can take the value of ##D=S\sqrt2=R## (as it doesn't matter what value of ##D## we take as long as its larger than or equal to ##S\sqrt2=R##)
So finally we get that if ##\theta \in (0,\pi)## then, the probabilities for a shot (whose distance from the center of the post is equal to or less than ##|D|##) going in for both posts are equal to ##\dfrac{\pi-2}{2\pi}=0.1816##
That is, both posts are equivalent as long as a shot's angle with the goal line is between ##(0,\pi)## and distance from the center of the post is less than or equal to ##|D|##