_Big Boss_
Forum Veteran
- Joined
- May 20, 2020
- Posts
- 699
- Reaction
- 4,090
- Points
- 705
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
Sample sizeWhat have you done so far? I don't like spoonfeeding people when they have not provided their own solution when a simple search on the internet is enough.
Also, since hindi given your instructions, di ko alam yung tamang procedure.
Ganyan din na kuha ko:Sample size
POLICE : 48 = 88%
Residents : 383 = 0.43%
Eto po yung computation ko pero not sure po.
def szu(z, e, P):
return ((z**2)*P*(1-P))/e**2
def sz(N, z, e, P):
return szu(z, e, P)/ (1 + szu(z, e, P)/N)
print(sz(54, 1.96, 0.05, 0.5))
print(sz(87693, 1.96, 0.05, 0.5))
Ah maigi po at same tayo ng compute. Baka tama nga po. Thank you po.Ganyan din na kuha ko:
View attachment 2145404
Python:def szu(z, e, P): return ((z**2)*P*(1-P))/e**2 def sz(N, z, e, P): return szu(z, e, P)/ (1 + szu(z, e, P)/N) print(sz(54, 1.96, 0.05, 0.5)) print(sz(87693, 1.96, 0.05, 0.5))
47 with 88.89%
382 with 0.44%
naka depende lang yan sa gamit mong confidence level at standard deviation so do whatever you want. try lang din cross reference sa ibang taoAh maigi po at same tayo ng compute. Baka tama nga po. Thank you po.