Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Creating a binomial distribution table using R Write an R code for creating a binomial table for the following n and p. 1. n
Creating a binomial distribution table using R Write an R code for creating a binomial table for the following n and p. 1. n = 1,...,10 2. p = 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6,0.7, 0.8, 0.9, 0.95 Show the code and the output (see the example on the next page). A-1 n=2 D=4 D-5 D-7 C 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 6 0 1 2 3 4 5 6 7 0.05 0.20 0.30 0.40 0.10 0.950 0,900 0.800 0.700 0.600 1.000 1.000 1.000 1.000 1.000 0.903 0.810 0.998 0.990 1.000 1.000 0.640 0.960 1.000 1.000 0.857 0.729 0.512 0.343 0.216 0.993 0.972 0.896 0.784 0.648 1.000 0.999 0.992 0.973 0.936 1.000 1.000 1.000 1.000 1.000 0.490 0.360 0.910 0.840 1.000 0.986 0.948 0.815 0.656 0.410 0.240 0.130 0.652 0.475 0.821 0.974 0.819 0.973 0.916 1.000 0.996 1.000 1.000 1.000 1.000 1.000 0.998 0.992 1.000 1.000 1.000 1.000 0.774 0.590 0.328 0.168 0.977 0.919 0.999 1.000 0.737 0.528 0.837 0.991 0.942 1.000 0.993 1.000 1.000 1.000 1.000 0.735 0.531 0.262 0.967 0.886 0.655 0.998 0.984 0.901 1.000 0.999 0.983 0.930 0.821 1.000 1.000 0.998 0.989 0.959 0.999 0.996 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 0.50 0.500 0.400 1.000 1.000 1.000 0.118 0.420 0.60 0.70 0,80 0.300 0.200 1.000 0.250 0.160 0.090 0.750 1.000 1.000 0.078 0.031 0.337 0.683 0.969 0.913 0.998 0.990 1.000 1.000 1.000 0.640 0.510 0.360 0.001 0.125 0.064 0.027 0.008 0.500 0.352 0.216 0.104 0.028 0.488 0.271 0.875 0.784 0.657 1.000 1.000 1.000 1.000 1.000 0.002 0.000 0.008 0.084 0.027 0.004 0.063 0.026 0.313 0.179 0.688 0.525 0.938 0.870 0.760 0.590 0.348 0.181 0.052 0.344 1.000 1.000 1.000 1.000 1.000 0.040 0.010 0.190 1.000 1.000 1.000 0.188 0.500 0.317 0.813 0.663 0.969 0.922 1.000 0,90 0.100 1.000 0.010 0.002 0.000 0.000 0.087 0.031 0.007 0.000 0.009 0.004 0.041 0.047 0.016 0.233 0.109 0.744 0.544 0.344 0.179 0.070 0.017 0.001 0.456 0.256 0.099 0.016 0.656 0.891 0.767 0.580 0.345 0.114 0.882 0.738 0.469 0.984 0.953 1.000 1.000 1.000 1.000 1.000 0.698 0.478 0.210 0.082 0.028 0.956 0.850 0.577 0.329 0.159 0.996 0.974 0.852 0.647 0.420 0.227 0.096 1.000 1.000 0.997 0.967 0.874 1.000 0.995 0.971 1.000 0.996 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 0.163 0.058 0.472 0.263 0.081 0.832 0.672 0.410 1.000 1.000 1.000 0.95 0.050 1.000 0.003 0.098 1.000 0.000 0.007 0.143 1.000 0.000 0.000 0.014 0.185 1.000 0.000 0.000 0.001 0.023 0.226 1.000 0.001 0.000 0.000 0.000 0.011 0.002 0.000 0.000 0.000 0.002 0.033 0.265 1.000 0.008 0.002 0.000 0.000 0.000 0.000 0.000 0.063 0.019 0.004 0.029 0.005 0.000 0.710 0.500 0.290 0.126 0.033 0.003 0.904 0.773 0.580 0.353 0.148 0.026 0.981 0.938 0.841 0.671 0.423 0.150 0.998 0.992 0.972 0.918 0.790 0.522 1.000 1.000 1.000 1.000 1.000 1.000 0.000 0.000 0.000 0.000 0.004 0.044 0.302
Step by Step Solution
★★★★★
3.35 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Code is output 1 For N 1 1 For p 005 1 Table is 1 005 095 1 For N 1 1 For p 01 1 Table is 1 01 09 1 For N 1 1 For p 02 1 Table is 1 02 08 1 For N 1 1 For p 03 1 Table is 1 03 07 1 For N 1 1 For p 04 1 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started