2. If an equal likelihood of each of several discrete eventsexists, in a simulation we can generate

2. If an equal likelihood of each of several discrete eventsexists, in a simulation we can generate a random integer toindicate the choice. For example, in a simulation of a pollen grainmoving in a fluid, suppose at the next time step the grain is justas likely to move in any direction—north, east, south, west, up, ordown—in a three-dimensional (3D) grid. A probability of 1/6 existsfor the grain to move in any of the six directions. With theseequal probabilities, we can generate a uniformly distributedinteger between 1 and 6 to indicate the direction of movement. Suppose in a simulation involving animal behavior, a lab ratpresses a food lever (FOOD = 1) 15% of the time, presses a waterlever (WATER = 2) 20% of the time, and does neither (NEI- THER = 3)the remainder of the time. For the simulation, we consider therange split into three parts, and again generate a uniformlydistributed ran- dom floating-point number from 0.0 to 1.0. If thenumber is less than 0.15, which occurs 15% of the time, we assignFOOD = 1 to the rat’s action. For 20% of the time, the uniformlydistributed random number is greater than or equal to 0.15 and lessthan 0.35. With a random number in this range, we make the rat’saction be WATER = 2. A random number is greater than or equal to0.35 with a probability of 65%. In such a case, we assign NEITHER =3 to the rat’s action. Thus, with rand being a uniformlydistributed random floating-point number from 0.0 to 1.0, we em-ploy the following logic for determination of the rat’s action: if a random number, rand, is Attached

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

1. Explain what is meant by the term hierarchy of controls , and give an example of each type of con

1. Explain what is meant by the term hierarchy of controls, and give an example of each type of control.

 

2. Discuss how OSHA uses feasibility to publicly issue its safety standards.

 

Each question is to be a minimum of 200 words with cited references.

 

    • Posted: 4 years ago
    • Due: 31/01/2016
    • Budget: $8
     

    "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

    I need you to focus a bit more on the events of seventeenth century England here. Where exactly do w

    I need you to focus a bit more on the events of seventeenth century England here.  Where exactly do we see the English “putting [their] faith in the power of human beings to reason and reshape society for the better?'  How do these events represent an evolution rahter than a revolution?  Please don't forget to quote the texts in your response.

      • Posted: 4 years ago
      • Due: 14/02/2016
      • Budget: $5
       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

      400 word essay. No plagiarism please Question: Based on the ideas of Emile Durkheim, identify three.

      400 word essay. No plagiarism please

      Question:

      Based on the ideas of Emile Durkheim, identify three functions of religion for society. In light of these functions, do you think that a decline in the importance of religion might threaten U.S. society? If so, how? Could the family and, perhaps, the school “take over” some of religion’s functions? Why or why not?

      Book:

      Sociology

      15/E, 2013

      ISBN-13: 9780205985609

      John J. Macionis

       

       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

      You should turn in any R code that you used together with a separate text, word, or pdf file… 1 answer below »

      There is a data set in two formats, datasets.csv (a comma delimited text file),and datasets.xlsx (an Excel file). The data in the files are identical. There are 4 groups of data sets, AA, BB, CC, and DD. Answer the questions below about each data set.

      You should turn in any R code that you used together with a separate text, word, or pdf file containing the answers to the questions below. Have the file organized so that I can easily find your answer to each question. Please do not make me search through a large file with both your code and answers and certainly do not require me to run your code to find your answers.

      Subsamples

      You may have covered this in the lab sessions and have alternative techniques for getting subsamples. If not, for several of the data sets, one needs a random subsample of a given size and needs to run a regression on that subsample. This can be accomplished with the sample() function in R. For instance, if df is a data frame with variables Y, X1, and X2, each variable has 1000 observations, and one need a random subsample of size 50, then one could use the following code:

      subsample

      model

      Alternatively, one could use the following code:

      subsample

      YSS

      X1SS

      X2SS

      model

      This last bit of code is of use when doing weighted least squares on a subsample. There, one has to perform an auxiliary regression, which is difficult using the first form.

      Data set A

      A.1: Using the full sample, regress YAA on X1AA and X2AA and then test for heteroskedasticity using your preferred test. Is there any evidence of heteroskedasticity?

      A.2: Compute the OLS estimates of the coefficients and their 95% confidence intervals from the regression is A.1 and report your results.

      A.3: Take a random subsample of 20 observations from the full sample and repeat A.1 and A.2 for this subsample. Do the confidence intervals for the subset of observations contain the confidence intervals for the full sample?

      Data set B

      B.1: Select a random subsample of 100 observations from the full sample. Run the regression of YBB on X1BB and X2BB. Test for heteroskedasticity using your preferred test and report the results. Compute the OLS estimates and their 95% confidence intervals. Did you use the robust standard errors or not? Why?

      B.2: Using the same subsample as in B.1, run the regression of YBB on X1BB, X2BB, and X3BB. Test for heteroskedasticity using your preferred test and report the results. Compute the OLS estimates and their 95% confidence intervals. Did you use the robust standard errors or not? Why?

      B.3: Redo B.1 and B.2 using the full sample. Do you think any of the coefficients are biased if the variable X3BB is omitted, and if so, which ones? What is the correlation between the independent variables? Can it really be the case that there is no heteroskedasticity when X3BB is omitted, but there is heteroskedasticity when it is included? How?

      Data set C

      C.1: Select a random subsample of 100 observations from the full sample. Run the regression of YCC on X1CC and X2CC. Test for heteroskedasticity using your preferred test and report the results. Compute the OLS estimates and their 95% confidence intervals. Did you use the robust standard errors or not? Why?

      C.2: One can use feasible generalized least squares (FGLS) to try to correct for heteroskedasticity. In class, we used two different techniques for obtaining the weights

      1. Regressing the log of the square residuals on all the independent variables (FGLS.r, line28)
      2. Regressing the absolute value of the residuals on all the independent variables (FGLS-2.r, line 29).

      For the subsample in C.1, apply each of these techniques and report your coefficient estimates along with 95% confidence intervals.

      C.3: Redo C.1 and C.2 with the full sample. Which of the two FGLS techniques do you prefer? Why?

      C.4: Plot the residuals from the regression of YCC on X1CC and X2CC against X1CC and then against X2CC (there should be two plots and the residuals should be on the y-axis). Use these plots to explain why one of the FGLS techniques seems to be doing better.

      Data set DD

      D.1: Using the full sample, regress YDD on X1DD and X2DD and then test for heteroskedasticity using your preferred test. Is there any evidence of heteroskedasticity?

      D.2: Plot the residuals from the regression from the regression in D.1 against X1CC and then against X2CC (there should be two plots and the residuals should be on the y-axis). Do either of these plots show evidence of heteroskedasticity? Why?

      D.3: There is another test for heteroskedasticity due to White (1980). In the Breusch-Pagen test, one regressed the square residuals on all the independent variables. In the White test, one regresses the square residuals on all the independent variables, their squares, and their cross-products. The asymptotic distribution of the White test is chi-square with the number of degrees of freedom equal to the number of regressors in the auxiliary regression. The following bit of R code below implements the White test in this example.

      modelDD

      X11DD

      X22DD

      X12DD

      white

      white_stat

      pval

      cat(“White test for heteroskedasticitynW = “, white_stat, ” p-value = “, pval, “nn”)

      Is there any evidence for heteroskedasticity with this test? Compute the OLS estimates and their 95% confidence intervals. Did you use the robust standard errors or not? Why? The true data generating process was

      YDD = 2 + 3 * X1DD – X2DD

      Do your confidence intervals contain the true coefficient values?

      Last Question:Given what you learned in D.1 through D.3, can you figure out a feasible way to use weighted least square to correct for the heteroskedasticity? If so, explain the correction and report the 95% confidence intervals for your technique. Do the confidence intervals contain the true coefficient values and are they contained in the confidence intervals from D.3?

      So, I need answers to all the questions here, and I also need the R code used to execute them(follow the instructions). I need answers in the order of each question.
      I attach 3 files!

       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

      ACC420 M5A2 Discussion – Applying Capital BudgetingAssignment 2: Applying Capital BudgetingFor your

      ACC420 M5A2 Discussion – Applying Capital BudgetingAssignment 2: Applying Capital BudgetingFor your final discussion assignment, respond to the following questions.Is it realistic to assume that the economic concept of operating at the point where marginal revenue and marginal cost are equal can be applied to real-world strategic planning while at the same time marrying this concept to the capital budgeting process? If so, how can that be done? If the concept is applied, how confident should we be that the firm will achieve the point where marginal cost and marginal revenue are equal?Your initial response should be two or three paragraphs in length. After you have posted your initial response, read all of your classmates’ responses and comment on at least two other postings.Write your response as a one-page memo. Post your memo in the discussion forum and solicit feedback from your classmates.****** Please this is important that you have the two question comment on how would address differing views. *****

       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

      Use the survey results given in Exercise 1 and use Use the survey results given in Exercise 1 and…

      Use the survey results given in Exercise 1 and use

      Use the survey results given in Exercise 1 and use a 0.05 significance level to test the claim that the majority of adults learn about medical symptoms more often from the Internet than from their doctor.

      Exercise 1

      In a survey of n = 2015 adults, 1108 of them said that they learn about medical symptoms more often from the Internet than from their doctor (based on a MerckManuals.com survey). Use the data to construct a 95% confidence interval estimate of the population proportion of all adults who say that they learn about medical symptoms more often from the Internet than from their doctor. Does the result suggest that the majority of adults learn about medical symptoms more often from the Internet than from their doctor?

      Use the survey results given in Exercise 1 and use

       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

      In your own words, define the terms fixed mindset and growth mindset . Describe a situation (i.e., p

        • In your own words, define the terms fixed mindset and growth mindset.

       

        • Describe a situation (i.e., personal, professional, or academic) where you had a fixed mindset. What thoughts did you have or comments did you make to reflect a fixed mindset?

       

        • How could you have changed your thoughts to reflect this idea of a growth mindset?

       

      • Explain how having a growth mindset will help you persevere to graduation.
        • Posted: 4 years ago
        • Due: 03/03/2016
        • Budget: $3
         

        "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

        The purpose of this exercise is to obtain the coefficients of X1 and X2 for use in a ceteris… 1 answer below »

        Your main tools will be the t-test, the F-test, and adjusted R2. 1. The purpose of this exercise is to obtain the coefficients of X1 and X2 for use in a ceteris paribus (all other conditions the same) analysis. These variables must be included in the analysis. 2. Currently, we do not have a formal test of whether or not the dependent variable should be in levels or logs. However, it is known that X3 explains much of the variation in Y and seems to be uncorrelated most other possible regressors, as you can easily see from the correlation matrix. You should do a scatter plot of Y on X3, Y on log(X3), log(Y) on X3 and log(Y) on log(X3) and see which one seems most linear. 3. X4, X5, and X6 are all correlated with X1 or X2, or both. This means that if any of these should be in the regression, but are omitted, then the results will be biased. Since both X1 and X2 must be in the specification, you might want to test which of these should be in the regression early in your analysis. 4. For X7 and X8, theory tells us that if either of these variables enter the specification, then they both should be in the specification. Also, either both enter in levels or both enter in logs. You might want to do a joint test of these variables. These variables are also correlated with X1 or X2. 5. X9, X10, and X11 are highly correlated. This is because they are different measures of the same object (think about CPI inflation, PCE inflation, core PCE inflation, etc.). At most one of these will enter the specification.

         

        "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"