Question

In: Statistics and Probability

You have an experiment with 7 factors (ABCDEFG). The design would be run in 8 blocks....

You have an experiment with 7 factors (ABCDEFG). The design would be run in 8 blocks. When you know that CDEF, ABC, CDEF are generators 1) define the blocks regarding your generators.

2) define which block contain these treatments: bd,bdeg, def, abcdg.

3) Write the defining relationship and alias relationship for A.

4) Are these generators good? Why?

Solutions

Expert Solution

Main Class
--------------------------------------------------
import java.util.Scanner;
import java.util.ArrayList;
import java.io.FileNotFoundException;
import java.io.File;
import java.io.PrintWriter;

public class Main {

    public static void main(String[] args) throws FileNotFoundException {
        Main mainObject = new Main();
        mainObject.run();
    }

    private void run() throws FileNotFoundException {

        final String UP = "RunsUp";
        final String DOWN = "RunsDown";

        ArrayList<Integer> list = inFileToList("p01-in.txt");

        ArrayList<Integer> listRunsUpCount = new ArrayList<>();
        ArrayList<Integer> listRunsDnCount = new ArrayList<>();
        ArrayList<Integer> listRunsCount = new ArrayList<>();

        listRunsUpCount = findRuns(list, UP);
        listRunsDnCount = findRuns(list, DOWN);
        listRunsCount = merge(listRunsUpCount, listRunsDnCount);
        output("p01-runs.txt", listRunsCount);

    }

    /**
     * This method creates an ArrayList object.
     */
    public static ArrayList<Integer> arrayListCreate(int pSize, int pInitValue) {
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < pSize; i++) {
            list.add(pInitValue);
        }
        return list;
    }

    /**
     * This method reads a file and puts integers into an ArrayList object.
     */
    public static ArrayList<Integer> inFileToList(String fileToParse) throws FileNotFoundException {
        ArrayList<Integer> listOfIntegers = new ArrayList<>();
        File fileInput = new File(fileToParse);
        Scanner scan = new Scanner(fileInput);
        while (scan.hasNextInt()) {
            listOfIntegers.add(scan.nextInt());
        }


Related Solutions

Assume you have isolated S.aureus from your skin. Design an experiment on how would you determine...
Assume you have isolated S.aureus from your skin. Design an experiment on how would you determine whether it is penicillin and erythromycin resistant? (Make sure to include a hypothesis and how you would design the experiment. Also include proper controls and discuss briefly the techniques you would use). I need one page please.
In a 25 design with factors A, B, C, D and E, several blocks were generated...
In a 25 design with factors A, B, C, D and E, several blocks were generated by confounding             the interactions BCE and ADE. a) Then the number of blocks generated is ______________ b) The generalized interaction that gets confounded is _________________ c) If two of the blocks are:          [a, d, abc, bcd, be, abde, ce, acde] [(1), ad, bc, abcd, abe, bde ace, cde] then the next two blocks are              _____________________________________ _____________________________________
In a 25 design with factors A, B, C, D and E, several blocks were generated...
In a 25 design with factors A, B, C, D and E, several blocks were generated by confounding             the interactions BCE and ADE. a) Then the number of blocks generated is ______________ b) The generalized interaction that gets confounded is _________________ c) If two of the blocks are:          [a, d, abc, bcd, be, abde, ce, acde]      [(1), ad, bc, abcd, abe, bde ace, cde] then the next two blocks are                            _____________________________________                             _____________________________________
In a 25 design with factors A, B, C, D and E, several blocks were generated...
In a 25 design with factors A, B, C, D and E, several blocks were generated by confounding            the interactions BCE and ADE. a) Then the number of blocks generated is ______________ b) The generalized interaction that gets confounded is _________________   c) If two of the blocks are:          [a, d, abc, bcd, be, abde, ce, acde]          [(1), ad, bc, abcd, abe, bde ace, cde] then the next two blocks are                                      _____________________________________
Describe how you would design the experiment, what you would measure, and how you could determine...
Describe how you would design the experiment, what you would measure, and how you could determine the specific heat capacity of water.
Consider the next design of experiment. a) Compute the contrasts for the factors and the interactions...
Consider the next design of experiment. a) Compute the contrasts for the factors and the interactions b) Compute the effect for each factor and the interactions c) Compute the ANOVA and draw conclusions Factor B Factor A Low High Low 28 18 25 19 27 23 High 36 31 32 30 32 29
How would you design an experiment to precisely measure the force and the position of charges...
How would you design an experiment to precisely measure the force and the position of charges and verify Coulomb's law for electrostatics? Briefly note what the problems are with the one you did and then offer ideas on ways it could be done precisely. please answer both parts
Assume that you have been asked to design an experiment for the marketing department of a...
Assume that you have been asked to design an experiment for the marketing department of a major automotive company. They would like to know what color(s) are most appealing to 18-24 year olds who purchase new trucks. Design an appropriate experiment, and then submit a short (< 3 pages) Technical Memo presenting your proposal. At a minimum, your memo should include: • A clear objective statement for your experiment • Procedure for collecting data • Methodology for analyzing the data...
How to design an experiment In a lab, you will have access to a mystery metal,...
How to design an experiment In a lab, you will have access to a mystery metal, a string, a retort stand, a beaker, a kettle, water, two thermometers, a stopwatch, a weight scale, and an insulated container with cup and lid. The metal can be submerged in the container of water such that the water provides a temperature bath for the metal. Design determine the specific heat capacity of the mystery metal. In your preparatory assignment: brass an experiment that...
Explain how you would design an experiment to test for the presence of status quo bias
Explain how you would design an experiment to test for the presence of status quo bias
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT