Questions
DATA SET 2 The following data were obtained from a research study comparing two treatment conditions....

DATA SET 2

The following data were obtained from a research study comparing two treatment conditions. Analyze this data to determine whether you will reject or fail to reject the null hypothesis based upon your results. Two-tailed test. Alpha = .05 (Please show work)

Treatment 1 Treatment 2
10 7
8 4
7 9
9 3
13 7
7 6
6 10
12 2

In: Statistics and Probability

Work the following probability sock problem, keeping in mind that this is a problem without replacement....

Work the following probability sock problem, keeping in mind that this is a problem without replacement. When you take out a sock, it stays out.

Sock Problem:

Your sock drawer is very unorganized. No socks are paired, and they are all just thrown randomly into the drawer. You do know that the drawer has four red socks and four blue socks in it. You want to get some socks to wear in the morning, but you do not want to turn on a light for fear of waking up your family.

  • If you draw two, what is the probability of a red pair match?
  • If you draw two, what is the probability of a match of any color?
  • If you draw three, what is the probability of a match of any color?
  • Describe your thinking and process.
  • Include your thinking/reasoning on this problem, answers to the questions in fractional form (not decimals or percentages), and the specific thinking path that led you to the answers.

In: Statistics and Probability

Work the following probability sock problem, keeping in mind that this is a problem without replacement....

Work the following probability sock problem, keeping in mind that this is a problem without replacement. When you take out a sock, it stays out.

Sock Problem:

Your sock drawer is very unorganized. No socks are paired, and they are all just thrown randomly into the drawer. You do know that the drawer has four red socks and four blue socks in it. You want to get some socks to wear in the morning, but you do not want to turn on a light for fear of waking up your family.

  • If you draw two, what is the probability of a red pair match?
  • If you draw two, what is the probability of a match of any color?
  • If you draw three, what is the probability of a match of any color?
  • Describe your thinking and process.
  • Include your thinking/reasoning on this problem, answers to the questions in fractional form (not decimals or percentages), and the specific thinking path that led you to the answers.

In: Statistics and Probability

Iconic memory is a type of memory that holds visual information for about half a second...

Iconic memory is a type of memory that holds visual information for about half a second (0.5 seconds). To demonstrate this type of memory, participants were shown three rows of four letters for 50 milliseconds. They were then asked to recall as many letters as possible, with a 0-, 0.5-, or 1.0-second delay before responding. Researchers hypothesized that longer delays would result in poorer recall. The number of letters correctly recalled is given in the table.

Delay Before Recall
0 0.5 1
10 4 1
11 9 5
9 6 4
7 5 2
6 8 8
5 4 4

(a) Complete the F-table. (Round your values for MS and F to two decimal places.)

Source of Variation SS df MS F
Between groups
Within groups (error)
Total


(b) Compute Tukey's HSD post hoc test and interpret the results. (Assume alpha equal to 0.05. Round your answer to two decimal places.)

The critical value is _____________ for each pairwise comparison.


(c) Which of the comparisons had significant differences? (Select all that apply.)

Recall following no delay was significantly different from recall following a one second delay.

The null hypothesis of no difference should be retained because none of the pairwise comparisons demonstrate a significant difference.

Recall following no delay was significantly different from recall following a half second delay.

Recall following a half second delay was significantly different from recall following a one second delay.

In: Statistics and Probability

Iconic memory is a type of memory that holds visual information for about half a second...

Iconic memory is a type of memory that holds visual information for about half a second (0.5 seconds). To demonstrate this type of memory, participants were shown three rows of four letters for 50 milliseconds. They were then asked to recall as many letters as possible, with a 0-, 0.5-, or 1.0-second delay before responding. Researchers hypothesized that longer delays would result in poorer recall. The number of letters correctly recalled is given in the table.

Delay Before Recall

0

0.5

1

10

10

7

4

4

4

9

6

2

11

5

4

6

3

3

8

8

4

(a) Complete the F-table. (Round your values for MS and F to two decimal places.)

Source of Variation

SS

df

MS

F

Between groups

Within groups (error)

Total


(b) Compute Tukey's HSD post hoc test and interpret the results. (Assume alpha equal to 0.05. Round your answer to two decimal places.)

The critical value is_____ for each pairwise comparison.


Which of the comparisons had significant differences? (Select all that apply.)

-Recall following no delay was significantly different from recall following a half second delay.

-The null hypothesis of no difference should be retained because none of the pairwise comparisons demonstrate a significant difference.

-Recall following a half second delay was significantly different from recall following a one second delay.

-Recall following no delay was significantly different from recall following a one second delay.

In: Math

The accompanying data show the number of hours, x, studied for and the grade received, y...

The accompanying data show the number of hours, x, studied for and the grade received, y (y is measured in tens; that is, y = 8 means that the grade, rounded to the nearest 10 points, is 80).

x 2 3 3 4 5 5 5 6 6 6 6 7 7 7 8
y 5 5 7 5 6 7 8 6 9 8 7 9 10 8 9



(a) Use the given scatter diagram to estimate r for the sample data on the number of hours studied and the grade.
r ≈  

(b) Calculate r. (Give your answer correct to two decimal places.)
r =

In: Statistics and Probability

1) Represent -34 and +67 in the following ways: a) 8 bit sign and magnitude representation...

1) Represent -34 and +67 in the following ways: a) 8 bit sign and magnitude representation with MSB as sign bit. b) 8 bit 1’s complement representation. c) 8 bit 2’s complement representation. 2) Convert the decimal numbers 40 and 20 into 8-bit unsigned binary representation and add the two numbers.

In: Computer Science

1/ In clinical trials of 3066 patients taking treatment​ A, 790 reported nausea as a side...

1/ In clinical trials of 3066 patients taking treatment​ A, 790 reported nausea as a side effect. In clinical trials of 1013 patients taking treatment​ B, 216 reported nausea as a side effect. Researchers want to know whether the difference in sample proportions is statistically significant. Use the​ "Randomization test for two​ proportions" applet in StatCrunch with a seed of 30102. Obtain exactly 3000 runs of the applet. What is the​ P-value based this​ randomization?

​P-value= (Round to four decimal places as​ needed.)

2/ A researcher wishes to estimate the average blood alcohol concentration​ (BAC) for drivers involved in fatal accidents who are found to have positive BAC values. He randomly selects records from 82 such drivers in 2009 and determines the sample mean BAC to be 0.15 g/dL with a standard deviation of 0.080 g/dL.

Determine and interpret a​ 90% confidence interval for the mean BAC in fatal crashes in which the driver had a positive BAC. Select the correct choice below and fill in the answer boxes to complete your choice. (Use ascending order. Round to three decimal places as​ needed.)

The researcher is    ​% confident that the population mean BAC is between and    for drivers involved in fatal accidents who have a positive BAC value.

somebody pleaaaaaaase answer these two questions thanks alot!

In: Statistics and Probability

Flounder Corp. uses a perpetual inventory system reports the following for the month of June. Date...

Flounder Corp. uses a perpetual inventory system reports the following for the month of June.

Date

Explanation

Units

Unit Cost

Total Cost

June 1

Inventory

130

$4

$520

12

Purchases

390

5

1,950

23

Purchases

220

6

1,320

30

Inventory

240

Partially correct answer iconYour answer is partially correct.

Calculate the average cost per unit, using a perpetual inventory system. Assume a sale of 450 units occurred on June 15 for a selling price of $7 and a sale of 50 units on June 27 for $8. (Round answers to 3 decimal places, e.g. 5.125.)

June 1

$enter a dollar amount

June 12

$enter a dollar amount

June 15

$enter a dollar amount

June 23

$enter a dollar amount

June 27

$enter a dollar amount

eTextbook and Media

  

  

Incorrect answer iconYour answer is incorrect.

Calculate cost of the ending inventory and the cost of goods sold for each cost flow assumption, using a perpetual inventory system. Assume a sale of 450 units occurred on June 15 for a selling price of $7 and a sale of 50 units on June 27 for $8. (Round answers to 0 decimal places, e.g. 125.)

FIFO

LIFO

Moving-Average

The cost of the ending inventory

$enter a dollar amount $enter a dollar amount $enter a dollar amount

The cost of goods sold

$enter a dollar amount $enter a dollar amount $enter a dollar amount

In: Accounting

In C++ please Your class could have the following member functions and member variables. However, it's...

In C++ please

Your class could have the following member functions and member variables. However, it's up to you to design the class however you like. The following is a suggestion, you can add more member variables and functions or remove any as you like, except shuffle() and printDeck(): (Note: operators must be implemented)

bool empty(); //returns true if deck has no cards

int cardIndex; //marks the index of the next card in the deck

Card deck[52];// this is your final deck of cards
const int DECK_SIZE = 52;// this is the size of your deck
void shuffle(); // puts cards in random order
friend ostream& operator<<(ostream& out, const Deck& deck); // prints all the cards to the console
Card dealCard(); // returns the next card in the deck
Card getCardAt(int index);// gets the Card at the given index
Deck(); // this is the constructor

Think about which member functions and member variables should be public and private.

Notice your Deck class has an array of size 52. This is because a classic that has 4 suits each containing 13 rankings.

Card Class

Notice in the Deck class, your deck array is of data type Card. You must define this class as well. A card consists of two entities, a suit and a value. There are four suits, (hearts, diamonds, clubs, and spades), and 13 values (numbers 2-10, A for ace, K for king, Q for queen and J for jack. Your Card class should look something like below, remember this is just a suggestion and you may add or omit to the list of member variables and function as you see suitable (Hint, you may want two string arrays to represent the suits and the values). Again, I will leave it up to you to determine the access for each member variable and member function. (Note: operators must be implemented)

    string suit;
    string value;
    string getSuit();
    string getValue();
    void setSuit(string suit);
    void setValue(string value);
    friend ostream& operator<<(ostream& out, const Card& card);
    Card(string suit, string value);
    Card(int suit, int string);
    Card();

Testing your Deck and Card Classes

To test your Deck and Card classes, write a program that will print out cards in random order).

Your program output should look like the following:

1: Jack of Diamonds
2: Ace of Spades
3: Six of Spades
4: Nine of Diamonds
5: Ten of Spades
6: Four of Spades
7: Four of Clubs
8: Jack of Clubs
9: Three of Spades
10: Seven of Clubs
11: Queen of Diamonds
12: Eight of Clubs
13: Ace of Clubs
14: Eight of Hearts
15: Seven of Hearts
16: Queen of Hearts
17: Three of Clubs
18: Eight of Spades
19: Four of Hearts
20: Eight of Diamonds
21: Queen of Spades
22: Five of Clubs
23: Ten of Clubs
24: Three of Diamonds
25: Queen of Clubs
26: Five of Hearts
27: Jack of Spades
28: Six of Diamonds
29: Five of Diamonds
30: Jack of Hearts
31: Two of Spades
32: Six of Hearts
33: Four of Diamonds
34: Ace of Diamonds
35: Ace of Hearts
36: King of Spades
37: King of Clubs
38: Two of Diamonds
39: Nine of Hearts
40: Seven of Spades
41: Nine of Clubs
42: Five of Spades
43: Two of Clubs
44: Ten of Hearts
45: Three of Hearts
46: Ten of Diamonds
47: Seven of Diamonds
48: Two of Hearts
49: King of Hearts
50: Nine of Spades
51: Six of Clubs
52: King of Diamonds

CardHand Class

Next, create a class called CardHand. Your class should have the following:

  • a vector to store all the cards in a player’s hand.
  • Remember in a card game, a player is usually dealt one card at a time, so make sure your CardHand class has the ability to take in one card at a time.
  • Accessors and Mutators where needed

Just like in the other classes, I will leave it up to you to determine access for member variable and member function.

CardHandScorer Class

Next, create another class, CardHandScorer that is used to analyze a players hand and determine a score for that hand. Because we are going to create a Poker game we will focus on making a scorer for Poker only, though in the future, we will add function for other card games such as Blackjack. The CardHandScorer class should have the following:

  • a static function that takes a CardHand object as an argument. The purpose of this static function is to return the score for the Poker hand. This score will be stored in a PokerScore object that is mention in the next section.

The function should analyze the CardHand and add all possible scores to the PokerScore object in which it will then return this object.

PokerScore Class

Next, create a PokerScore class. In the game of Poker, a player’s hand can have multiple scores. For example, if a player has four-of-a-kind, they also have, three of a kind, two pairs, one pair, or a high card . See the list of the different poker hand scores below. Your PokerScore class should be designed to hold all the possible scores a particular CardHand has. To do this, create an enumerator of Scores that holds all the possible poker scores. Then, create a vector that can hold the data type of your enumerator, Scores. Your CardHandScorer should have the ability to add scores to a PokerScore object. Here is the declaration of the PokerScore class: (Note: operators must be implemented)

    enum Scores{

        ROYAL_FLUSH, //A, K, Q, J, 10, all the same suit.

        STRAIGHT_FLUSH, //five cards of the same suit and consecutive ranking

        FOUR_OF_A_KIND, //four cards of the same ranking

        FULL_HOUSE, //three cards of the same rank along with two cards of the same rank

        FLUSH, //five cards of the same suit

        STRAIGHT, //five cards in consecutive ranking

        THREE_OK_A_KIND, //three cards of the same rank

        TWO_PAIR, //two cards of the same rank along with another two cards of the same rank

        ONE_PAIR, //two cards of the same rank

        HIGH_CARD //highest card in the player’s hand

   };

    vector<Scores> scores;   

    void operator+=(const Scores& score);

    friend bool operator==(const PokerScore& p, Scores score);
    int size();
    Score& operator[](unsigned int index);
    PokerScore();

Here’s an example of usage of the Deck, Card, CardHand, CardHandScorer, and PokerScore classes:

int main() {




    Deck deck;

    CardHand ch;




    //deal five cards to the card hand

    for (int i = 0; i < 5; i++)

        ch.addCard(deck.dealCard());




    //analyze card hand and get poker scores

    PokerScore pokerScore = CardHandScorer::scorePokerHand(ch);

   //add a score to pokerScore
   pokerScore += PokerScore::FULL_HOUSE; 

}

Analyzing the Poker Hands

After you have written and thoroughly tested your class, write a program to analyze the probability of each Poker score. Write a function that does the following:

  • Deal five cards to five different card hands.
  • Score one of card hands.
  • Return the scores for that card hand.

After running this function 1000 time, your program should output how many times each poker score was met. Here’s an example of your output:

        ROYAL_FLUSH: 0

        STRAIGHT_FLUSH: 10

        FOUR_OF_A_KIND: 30

        FULL_HOUSE: 47

        FLUSH; 105

        STRAIGHT; 146

        THREE_OK_A_KIND; 234

        TWO_PAIR: 759

        ONE_PAIR:823

        HIGH_CARD: 1000

In: Computer Science