Premium Essay

Parametric Bootstrapping

In:

Submitted By janiekins
Words 471
Pages 2
#Problem 2 #Part 2 B=1000 sample_med_vars=numeric() CIs = character() n_values = c(10,100,1000) for (i in 1:3) { sample_meds=replicate(B, median(rnorm(n_values[i],1, 1))) sample_med_vars[i] = var(sample_meds) CIs[i] = paste(mean(sample_meds)-1.96*sd(sample_meds), mean(sample_meds)+1.96*sd(sample_meds)) } sample_med_vars #0.132826885 0.015370697 0.001603544 CIs ("0.265111943430679 1.69377252141066") #n=10 ("0.757126210069845 1.24312238725003") #n=100 ("0.922210181934582 1.07918375732663") #n=1000 #Part 3 theoretical_vars=numeric() n_values=c(10,100,1000) for (i in 1:3){ var_samplemed= (pi*(1)^2)/(2*n_values[i]) theoretical_vars[i] = var_samplemed } theoretical_vars #0.157079633 0.015707963 0.001570796 sample_mean_vars #0.132826885 0.015370697 0.001603544 *from Part 2 #The two types of variances seem to yield very similar values with very slight discrepancies. #variance of sample mean n_values=c(10,100,1000) var_sample.mean=1/n_values #0.100 0.010 0.001 #Compared to the variance of sample means, the variance of sample medians are greater in value on average. #Part 4 n=1000 sample_mean = mean(rnorm(n,1, 1)) pboot_vars=numeric() n_values = c(10,100,1000) for (i in 1:3) { pboot_vars[i] = var(replicate(B, median((rnorm(n_values[i],sample_mean, 1))))) } pboot_vars #0.131888264 0.016435213 0.001627244 sample_med_vars #0.132826885 0.015370697 0.001603544 *from Part 2

#Comparing the 2 results, we observe that #the parametric boostrap variances arevery similar to the sample median variances obtained from part 2. #Part 5 pivotalCIs = numeric() n_values = c(10,100,1000) for (i in 1:3) { pboot.meds=replicate(B, median(rnorm(n_values[i],sample_mean, 1))) pboot.percentile=quantile(pboot.meds, prob = c(.025, .975)) pboot.hat = median(rnorm(n_values[i],sample_mean,1)) pboot.CI = paste(2*pboot.hat -pboot.percentile[2], 2*pboot.hat pboot.percentile[1] ) pivotalCIs[i]=pboot.CI }

Similar Documents

Premium Essay

Malincho

...assumptions. How much of this potential could Kalin capture? 5) İs your estimate of potential, and the portion Kalin can capture, as well as your estimate of Kalin’s gross margin per pound of sheep milk white cheese, result in a big enough opportunity to make this a worthwhile business for Kalin? Based on your conservative assumptions what would Kalin’s potential annual total gross profit be? 6) Would you take this opportunity? Why? Why not? Why would you take a chance with this opportunity? 7) Where dis Kalin find the money to launch his company? 8) Bootstrapping is defined as a verb means “promoting and developing by initiative and effort with little or no assistance”. Bootstrap as an adjective can be defined as something carried out with minimum resources or advantages.To pull oneself up by ones bootstraps means to help oneself by ones own resources without the aid of others. Give as many examples as possible, of “bootstrapping” by Kalin. 9) How is Malincho doing 18 months after it opened its doors for business? Specifically, how many is his loyal customer base? How many orders does he receive per week? At what level is his monthly or yearly revenue? What is the estimated level of his yearly gross...

Words: 449 - Pages: 2

Premium Essay

Businss

...of this potential could Kalin capture? 5) İs your estimate of potential, and the portion Kalin can capture, as well as your estimate of Kalin’s gross margin per pound of sheep milk white cheese, result in a big enough opportunity to make this a worthwhile business for Kalin? Based on your conservative assumptions what would Kalin’s potential annual total gross profit be? 6) Would you take this opportunity? Why? Why not? Why would you take a chance with this opportunity? 7) Where dis Kalin find the money to launch his company? 8) Bootstrapping is defined as a verb means “promoting and developing by initiative and effort with little or no assistance”. Bootstrap as an adjective can be defined as something carried out with minimum resources or advantages.To pull oneself up by ones bootstraps means to help oneself by ones own resources without the aid of others. Give as many examples as possible, of “bootstrapping” by Kalin. 9) How is Malincho doing 18 months after it opened its doors for business? Specifically, how many is his loyal customer base? How many orders does he receive per week?...

Words: 459 - Pages: 2

Free Essay

Corporate Low

...How to Remote Install CentOS 6 via VNC For many reasons sometimes it is necessary to reinstall a linux on a server that is hosted in a remote location such as a Data center. You might want to install a  new version of the Distribution, change the distribution, or you might need to re-partition you hard drive to be able to use LVM for example.   You have three options here: 1 - Go physically to the Datacenter 2 - Pay a datacenter guy to reinstall that for you… :( 3 - Install it Remotely using VNC I chose the 3rd one since it seems to be the most convenient one. :-)   What do we need? Network configuration of out server: IP Address, Gateway and DNS If you have all those 3 informations you are good to go! 1 - Download bootstrap files (Kernel and ramdisk image). # cd /boot # mkdir centos6 # cd centos6 # wget http://mirror.centos.org/centos/6/os/x86_64/isolinux/vmlinuz # wget http://mirror.centos.org/centos/6/os/x86_64/isolinux/initrd.img Add an entry to the Grub Loader # vi /boot/grub/menu.lst ## Add the following lines to the end of the file and count how many lines starts with tittle: title CentOS 6 VNC Installation         root (hd0,0)               kernel /centos6/vmlinuz vnc vncpassword=houseoflinux headless ip=10.0.0.10 netmask=255.255.255.0 gateway=10.0.0.1 dns=10.0.0.5 ksdevice=eth0 method=http://mirror.centos.org/centos/6/os/x86_64/ lang=en_US keymap=us         initrd /centos6/initrd.img In my case with I had total 3 entries because I am updating...

Words: 600 - Pages: 3

Free Essay

Marketing

...Solution for Installation Error for HP Devices – Windows Vista We have detected that you were unable to successfully complete the installation for your HP device. All of the files that we attempted to install have been removed. Follow the procedures in this document to install your HP device after receiving an installation error. Note|Please make sure you have turned off and restarted your PC before trying the steps outlined below.| Step 1: Run the Disk Cleanup utility The software installation process uses certain system folders for preparing files for installation. Periodically, these folders need to be cleared. Prior to installing again, run the Disk Cleanup utility, which will help you: · Delete temporary Internet files · Delete downloaded program files · Empty the Recycle Bin · Delete files from the temporary folder · Delete files created by other Windows tools · Remove unused, optional Windows components To use the Disk Cleanup utility: 1. Click Start ( ), click All Programs, click Accessories, click System Tools, and then click Disk Cleanup. 2. After the Disk Cleanup utility analyzes the hard drive, a report with a list of options appears on the computer. Click the appropriate check boxes to remove unwanted files from the computer, and then click OK. 3. Click Yes on the confirmation screen that appears on the computer. Step 2: Reinstall HP Software Note|Before starting the installation process again, please confirm the following:· Unplug the USB...

Words: 1178 - Pages: 5

Free Essay

Surface Sanitation Verification

...SURFACE SANITATION VERIFICATION PURPOSE: The primary purpose of this information paper is to provide guidance on the use and implementation of the Charm PocketSwab( for surface sanitation verification in commissaries located throughout EUCOM. BACKGROUND: ATP (adenosine triphosphate) bioluminescence has been used in the food industry for over 10 years to quickly assess and monitor microbial contamination on surfaces. ATP is an excellent means of identifying “hot spots” or areas with organic material that could possibly support and accelerate microbial growth. The technology of ATP bioluminescence for hygiene monitoring has become increasingly useful because of it real-time capabilities, ease of use and affordability. It cannot replace microbiological testing but it is easier, faster and the results indicate cleanliness, (defined as the absence of organic material), rather than counting colony forming units of microorganisms. SCIENTIFIC PRINCIPLE: It is important to understand the basic principles of ATP bioluminescence. ATP is a molecule that is essential and common to all plant, animal and microbial cells. This compound combines and reacts with an enzyme (luciferase) resulting in the release of light. The light emitted is measured by using the Charm LUM-T. This output of light is proportional to the amount of ATP present on a given surface. The measurement of biological contamination is approximated by determining the amount of ATP contained within or on the material...

Words: 927 - Pages: 4

Free Essay

Sdfg

...Specialist Mathematic Bezier Curve Investigation Introduction A Bézier curve is a parametric curve used in computer graphics. Bézier curves are used to model smooth curves in, for example, animation. Bézier curves were widely publicised in 1962 by the French engineer Pierre Bézier who used them to design car bodies. Paul de Casteljau first developed the curves in 1959. In the following investigation you will, individually, develop the algebra of Bézier curves and use them to design an object using Bezier Curves. Task 1 Aim Method * Linear Bézier curves Given points P0 and P1, a linear Bézier curve is a straight line between those two points. The curve is given by B(t) where B(t) represents the moving point between two points P0 and P1, and . Fig 1 Fig 1 Application * Quadratic Bézier curves A quadratic Bézier curve is the path traced by the function B(t), given points P0, P1, and P2. It departs from P0 in the direction of P1, then bends to arrive at P2 in the direction from P1. Fig 2 Fig 2 Consider Fig 2. From Fig 2 above use the points Q0 and Q1 as shown and the linear model from Fig 1 to show that the Bezier curve is defined as - and is therefore a quadratic Bezier curve. (2 degree equation) Task 1 continued * Cubic Bézier curves * Four points P0, P1, P2 and P3 in the plane or in three-dimensional space define a cubic Bézier curve. * The curve starts at P0 going toward P1 and arrives at P3 coming from the direction of P2. Usually, it will not pass...

Words: 462 - Pages: 2

Free Essay

Vector Calculus

...are left to you the student. Also you might need to add more detailed explanations or justifications on the actual similar problems on your exam. I will keep updating these solutions with better corrected/improved versions. Problem 1(a) - Fall 2008 Find parametric equations for the line L which contains A(1, 2, 3) and B(4, 6, 5). Solution: To get the parametric equations of L you need a point through which the line passes and a vector parallel to the line. −→ Take the point to be A and the vector to be the AB. The vector equation of L is −→ −→ r(t) = OA + t AB = 1, 2, 3 + t 3, 4, 2 = 1 + 3t, 2 + 4t, 3 + 2t , where O is the origin. The parametric equations are: x = 1 + 3t y = 2 + 4t, z = 3 + 2t t ∈ R. Problem 1(b) - Fall 2008 Find parametric equations for the line L of intersection of the planes x − 2y + z = 10 and 2x + y − z = 0. Solution: The vector part v of the line L of intersection is orthogonal to the normal vectors 1, −2, 1 and 2, 1, −1 . Hence v can be taken to be: i j k v = 1, −2, 1 × 2, 1, −1 = 1 −2 1 = 1i + 3j + 5k. 2 1 −1 Choose P ∈ L so the z-coordinate of P is zero. Setting z = 0, we obtain: x − 2y = 10 2x + y = 0. Solving, we find that x = 2 and y = −4. Hence, P = 2, −4, 0 lies on the line L. The parametric equations are: x =2+t y = −4 + 3t z = 0 + 5t = 5t. Problem 2(a) - Fall 2008 Find an equation of the plane which contains the points P(−1, 0, 1), Q(1, −2, 1) and R(2, 0, −1). Solution: Method 1 −→ −→ Consider the vectors...

Words: 13203 - Pages: 53

Free Essay

Res351 Week 5

...DQ1 Distinguish between a Z test and a t-test. Provide an example of each one that might be appropriate for your current or previous place of employment Similarities o   A Z test and a t-test are each a type parametric tests.  o   Parametric tests are resultant data from the given ranges which have given the consumers to choose from intervals, such as 1-5. o   Parametric tests such as the Z test and t test are used to “conclude if there is a statistical significance among the sample distribution average and a parameter (Cooper, D. & Schindler, P., 2011). o   A Z test and a t-test could be opted as one sample test. One sample tests are opted when one sample is derived from a populace and a hypothesis “from the specified population” (Cooper, D. & Schindler, P., 2011),  is tested o   A Z test and a t-test could be used as a two sample test with each of its sample being independent. o   The Z test and t tests are matching while the sampling size is more than 120.  ·         Differences o   The Z test and t test differ when the sample size is lower than 120.  o   The t test is suitable for minute sample sizes. o   The Z test is suitable for huge or minute sample sizes. o    A t test can be opted as a two sample test by pairing the samples. o   A t test has more tail area, means most results that are lesser and greater than the central are rejected.  It implies a t test would give a improved sample average since most results which diverge away from the mean...

Words: 394 - Pages: 2

Free Essay

Eatshit

...Surface Reconstruction from Medical Imaging for Use in a Computer-AidedDesign (CAD) Environment A thesis by Gregory M. Sturgeon M.S.E. Presented January 2005 In partial fulfillment of the requirements for the Masters of Science in Engineering degree Padnos School of Engineering Grand Valley State University Advisor: Dr. Jeff Ray Grand Valley State University Padnos School of Engineering Certificate of Examination Advisor ________________________ Dr. J. Ray Examining Board ________________________ Dr. H. Jack ________________________ Dr. J. Ray ________________________ Dr. J. Farris The EGR 693 thesis by Gregory M. Sturgeon entitled Surface Reconstruction from Medical Imaging for Use in a Computer-Aided-Design (CAD) Environment is accepted in partial fulfillment of the requirements for the degree of Masters of Science in Engineering ________________________ Date ________________________ Dr. H. Jack, Graduate Chair ii Abstract A method was developed to create Computer-Aided-Design (CAD) models for bones of the human body utilizing medical imaging data. The human hand was chosen as the subject of the research. Computed Tomography (CT) imaging was chosen to provide a volumetric data set. This data set was visualized through an isosurfacing technique utilizing the marching cubes algorithm. The original CT data set contained slices that were not aligned with the natural orientation or long axis of the bones. Transformation matrices and linear interpolations...

Words: 3621 - Pages: 15

Free Essay

Sample

...of 10 and the origin as the center. Find the equation of this ellipse if the point (3 , 16/5) lies on its graph. 6. An ellipse has the following equation  0.2x 2 + 0.6y 2 = 0.2 .  a) Find the equation of part of the graph of the given ellipse that is to the left of the y axis.  b) Find the equation of part of the graph of the given ellipse that is below the x axis. 7. An ellipse is given by the equation  (x - 1) 2 / 9 + (y + 4) 2 / 16 = 1 .  Find  a) its center,  a) its major and minor axes and their lengths,  b) its vertices,  c) and the foci. 8. Find the equation of the ellipse whose foci are at (-1 , 0) and (3 , 0) and the length of its minor axis is 2. 9. An ellipse is defined by its parametric equations as follows  x = 6 sin(t) and y = 4 cos(t) Find the center, the major and minor axes and their lengths of this ellipse. 10. An ellipse is given by the equation  4x 2 + 3y 2 -16x + 18y = -31 .  Find  a) the center of the ellipse,  b) its major and minor axes and their...

Words: 1169 - Pages: 5

Premium Essay

Anova

...ANOVA Simulation Working as a quality control manager is no easy task. There are a lot of variables that are involved in it. Knowing how to research specific problems truned out to be crucial when it came to solve a specific problem, which opened my eyes as to the complication involved in it. There are two specific test used in this particular simulation which are Anova and Non-parametric. “Anova is defined as a statistical method for making simultaneous comparisons between two or more means; a statistical method that yields values that can be tested to determine whether a significant relation exists between variables.” (dictionary.com) “A non parametric test is a branch of statistics that are applied when populations are not normal or they are severely skewed data.” There were three lessons learned during this simulation which were how to monitor a situation. The importance to measuring the accumulated data and how to provide a reliable solution to the problem. It is important that we learn how to apply things that we learn in everyday life as well as the workplace. Using an appropriate test can help us whenever it is time to make a decision in business, which is one other thing learn while going over the simulation. This helps at the time of determining how to correct a stiuation in the workplace. Training in customer service and technical support has shown to be crucial in the company shown in the simulation this information is shown during the...

Words: 423 - Pages: 2

Free Essay

Econometrics

...Question no. 1 Y1= ∝0+∝1Y2+∝2X1+∈1 Y2= β0+β1Y1+β2X1+β3X3+ϵ2 i. Identification Status: Equation 1: P1=1, P2=1 so that P1=P2 so, equation is Exactly identified. Equation 2: P1=0, P2=1 so that P1<P2 so, equation is Unidentified. ii. Reduced form equations: Putting Y1 in Y2: Y2= β0+β1(∝0+∝1Y2+∝2X1+∈1) +β2X1+β3X3+ϵ2 Y2= β0+β1α0+β1α1Y2+β1α2X1+β1ϵ1+β2X1+β3X3+ϵ2 Y21-β1α1= β0+β1α0+X1β1α2+β2+β3X3+β1ϵ1+ϵ2 Y2= β0+β1α01-β1α1+β1α2+β21-β1α1X1+β31-β1α1X3+β1ϵ1+ϵ21-β1α1 Y1=π20+π21X1+π22X3+ν2 Now putting this reduced form equation of Y2 in Y1 equation: Y1= ∝0+∝1(π20+π21X1+π22X3+V2)∝2X1+∈1 Y1= ∝0+∝1π20+X1α1π21+α2+α1π22X3+α1V2+ϵ1 Y1= π10+π11X1+π12X3+V1 π10= ∝0+∝1π20 α0= π10-π12π22(π20) π11= α1π21+α2 α2= π11- π12π22(π21) π12= α1π22 α1= π12π22 Using STATA the reduced form equation (DATA set 1) Y2= -1.57953 -.37781X1+1.744 X3 Y1= 14.245+ .67809 X1+ .99181 X3 Estimations of structural parameters For equation 1: Run the regression on reduced form equations in STATA and we calculated the following values of structural parameters: 1. α1= π12π22 = .99181 1.744 α1= 0.5688 2. α2= π11- π12π22π21 = .67809 - 0.5688 (-.37781) α2= 0.8930 3. α0= π10-π12π22(π20) = 14.245-0.5688(-1.57953) α0= 15.1437 Question no. 2 Y1=αo+α1Y2+α2X1+α3X2+e1 Y2=βo+β1Y1+β2X1+β3X3+e2 Status Identification of equations: For equation 1: P1=1 P2=1 P1=P2This identifies that the equation 1 is “Exactly-identified”. ...

Words: 1475 - Pages: 6

Premium Essay

Anova Paper

...not mean that it is the norm to have many factors. Most researchers focus on a limited amount of factors. Another big lesson is with nonparametric tests. Working for a company that requires that we learn how comfortable our users are with their technology it is very important to use ordinal data for informative decision making. In our data sets there is a large majority of information that does not come in with a normal distribution. This is where it comes into play that a parametric test can aid due to the ability to examine information without normal distribution. One of the largest lessons in terms of these concepts is the data size that it takes to utilize these tests. Unfortunately as with any questionnaire my department usually gets only a small amount back. When working with parametric testing a small sample size would only go to hurt the result of the testing. When working with these tests it is possible to extrapolate the data and generalize for the mass amount. Unfortunately when working with parametric data it is not beneficial to use smaller data sets due to the fact that the results cannot reach normalcy. Working with this information, I feel that it is more possible for our department to better utilize the limited data sets that we receive and better inform our department director....

Words: 334 - Pages: 2

Free Essay

Anova and Nonparametric Tests

...ANOVA and Parametric tests Looking at the concepts in the book it is interesting with regard to placing them into the work world. The most recent concepts were ANOVA and nonparametric tests. ANOVA, also known as analysis of variance is a concept that allows you to “compare more than two means simultaneously and how to trace sources of variation to potential explanatory factors”. One of the biggest take aways from this concept is that the ANOVA tests can take on many factors or “treatments. This can be very beneficial when dealing with many factors. Although this does not mean that it is the norm to have many factors. Most researchers focus on a limited amount of factors. Another big lesson is with nonparametric tests. Working for a company that requires that we learn how comfortable our users are with their technology it is very important to use ordinal data for informative decision making. In our data sets there is a large majority of information that does not come in with a normal distribution. This is where it comes into play that a parametric test can aid due to the ability to examine information without normal distribution. One of the largest lessons in terms of these concepts is the data size that it takes to utilize these tests. Unfortunately as with any questionnaire my department usually gets only a small amount back. When working with parametric testing a small sample size would only go to hurt the result of the testing. When working with these tests it is possible...

Words: 344 - Pages: 2

Free Essay

Chapter 1 Statistics

...Provide a rationale for your answer. * 5. How many of the depressed persons were married? Would you have expected this finding? Provide a rationale for your answer. * 6. No depression was reported in the 29 to 38 age group. What are the possible reasons for this? * 7. How many subjects and what percentage of the total sample were 49 years of age or older? Round your answer to the nearest tenth of a percent (%). * 8. Nominal data categories should be exhaustive. In looking at Ethnicity in Table 1, are these ethnic categories exhaustive? Provide a rationale for your answer. * 9. For which variables in this table can a median be calculated? What does this tell us about the level of measurement of the variables? * 10. Are parametric or nonparametric statistical analysis techniques used to analyze nominal level data? Provide a rationale for your answer. ANSWERS TO STUDY QUESTIONS * 1. In Table 1, gender, ethnicity, marital status, and employment status were measured at the nominal level. * 2. No, the age categories can be rank ordered and are therefore an example of ordinal level of measurement and not nominal level of measurement. * 3. The mode for marital status is married with a frequency of 80 subjects, which was 67% of the total sample. The mode for the depressed group was also married with a frequency of 32, which was 73% of the depressed group. * 4. 13 (29.5%) of the depressed persons were unemployed. Yes, you would expect that persons who have...

Words: 732 - Pages: 3