A study by Lefèvre et al. (2010, PLoSONE 5: e9546) investigated whether alcohol consumption affected peoples' attractiveness to the mosquito, Anopheles gambiae, which is the primary vector for malaria in Africa. A total of 43 human participants were tested, and the attractiveness of each participant was tested twice. The first test collected a baseline attractiveness for each participant. The participants then drank either a liter of beer (n=25 participants) or a liter of water (n=18), and after 15 minutes, the test was repeated. The type of drink was randomly determined for each subject.
To estimate a person's attractiveness to A. gambiae, a vial of 50 mosquitos was released into the Y-tube apparatus shown in Figure 1. Participants were seated in a small tent, which was connected by an air hose to one of two mosquito traps. This allowed the mosquitos to detect and respond to olfactory cues from the participants, without exposing the participants to the mosquitos. The proportion of mosquitos that flew toward the participant was recorded as the response variable.
You can find the Lefèvre data on the website in the file lefevre_2010_mosquitos_and_beer.csv. Each row in in the data represents a single participant. The first column is an id code. The second column is a factor that indicates the subject’s treatment-level for drink (beer vs. water). The third column gives the proportion of mosquitos that flew in the participants' direction in the baseline measurement, and the fourth column gives the proportion after drinking. Column five is the change from baseline after drinking (i.e., afterDrink – beforeDrink).
I
In the following questions, we will use two different strategies to analyze the data. In Question 2, we will conduct two completely separate tests that compare attractiveness before drinking a beverage to attractiveness after drinking a beverage, and then compare the result that we get with water to the result with beer (if it helps, imagine two different research groups test the same question, but one uses water and one uses beer; afterward, they meet up and compare notes). In the second strategy (Question 4), we will directly analyze the difference in average change from baseline for beer versus water. One of these strategies is a much better approach to use in real life. Which one is better, and why?
In: Statistics and Probability
Investment in Trading and AFS Securities
In 2019, a company purchases debt securities at a par value of $500,000. Their year-end value is $520,000. In 2020, these securities are sold for $525,000 and new securities are purchased for $700,000. At the end of 2020, the securities have not yet been sold, and have a value of $600,000.
Required
Prepare the journal entries to record the above information for
2019 and 2020, assuming that:
a. The securities are categorized as trading securities.
| General Journal | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Date | Description | Debit | Credit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2019 | ____________________________________________________ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ____________________________________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| To record purchase of trading securities. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ____________________________________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ____________________________________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| To record change in value for trading securities at year-end. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2020 | Cash | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ______________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Investment in trading securities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| To record sale of trading securities. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ___________________________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ___________________________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| To record purchase of new trading securities. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| _____________________________________________ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
_____________________________________________ |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
To record change in value for trading securities at year-end. b. The securities are categorized as AFS securities, and (1) the company intends to sell the securities held at the end of 2020 before the loss is recovered, or (2) the company intends to hold the securities, and their decline in value is attributed to expected credit losses, or (3) the company intends to hold the securities, and their decline in value is attributed to a rise in market interest rates.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Accounting
A medical researcher believes that a drug changes the body's temperature. Seven test subjects are randomly selected and the body temperature of each is measured. The subjects are then given the drug, and after 30 minutes, the body temperature of each is measured again. The results are listed in the table below. Is there enough evidence to conclude that the drug changes the body's temperature?
Let d=(body temperature after taking drug)−(body temperature before taking drug)d=(body temperature after taking drug)−(body temperature before taking drug). Use a significance level of α=0.02 for the test. Assume that the body temperatures are normally distributed for the population of people both before and after taking the drug.
| Subject | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Temperature (before) | 99.9 | 98.6 | 99.9 | 99.8 | 98.2 | 100.2 | 100.7 |
| Temperature (after) | 99.2 | 97.9 | 100.2 | 99.7 | 98 | 99.9 | 100.3 |
Step 1 of 5: State the null and alternative hypotheses for the test.
Step 2 of 5: Find the value of the standard deviation of the paired differences. Round your answer to two decimal places.
Step 3 of 5: Compute the value of the test statistic. Round your answer to three decimal places.
Step 4 of 5: Find the p-value for the hypothesis test. Round your answer to four decimal places.
Step 5 of 5: Draw a conclusion for the hypothesis test.
In: Statistics and Probability
1.Question1
Suppose there is an island which used to have no trac connection
with the outside world.
After several years, airports are built up in the island and there
are planes to do the
transportation, so it is possible for the island to have
international trade now.
(1) Before the international trade, the price of vehicles in the
local market of the island is
higher than the world price, should the island imports or exports
vehicles in the international
trade?
(2) Draw the graph of the supply and demand curve of the island's
vehicles market.
Mark the size change of the consumer surplus and producer surplus
before and after the
international trade. After the international trade, how does the
consumer surplus change?
How does the producer surplus change? How does the total surplus
change?
(3) Suppose the local government decide to impose a tari on the
vehicles imported
from the outside world, but the price of the vehicles from the
outside world plus the tari
are lower than the local market price of vehicle before the free
international trade. Draw the
graph of the supply and demand curve of the island's vehicles
market with tari. Mark the
size change of the consumer surplus and producer surplus before and
after the international
trade. After the international trade, how does the consumer surplus
change? How does the
government revenue change? How does the producer surplus change?
How does the total
surplus change? You can draw the graph based on (2).
In: Economics
Consider the following variation of Table 11-1 for the U.S. semiconductor market
|
U.S. Tariff rates |
|||
|
0% |
8% |
16% |
|
|
From Canada, before NAFTA |
$45 |
$W |
$52.2 |
|
From Asia, before NAFTA |
$40 |
$X |
$Y |
|
From Canada, after NAFTA |
$43 |
$Z |
$Z |
|
From Asia, after NAFTA |
$40 |
$X |
$Y |
|
From the United States |
$46 |
$46 |
$46 |
In: Economics
Part II: gdb (Debugging under Unix)
/*reverse.c */
#include <stdio.h>
void reverse(char *before, char *after);
main()
{
char str[100]; /*Buffer to hold reversed string */
reverse("cat", str); /*Reverse the string "cat" */
printf("reverse(\"cat\")=%s\n", str); /*Display result */
reverse("noon", str); /*Reverse the string "noon" */
printf("reverse(\"noon\")=%s\n", str); /*Display result */
}
void reverse(char *before, char *after)
{
int i;
int j;
int len;
len=strlen(before);
for(j=len, i=0; j>=0; j--, i++)
after[i]=before[j];
after[len]=NULL;
}
In: Computer Science
The following information was extracted from the 2020 financial statements of Arigato LLC:
Income from continuing operations before income tax $755,123
Selling and administrative expenses 480,357
Income from continuing operations 495,951
Gross profit 1,357,530
The amount reported for Other Revenue/Gains and Other Expenses/Losses is: $ Blank 1. Fill in the blank, read surrounding text.
Use “-“ sign for negative amount, as needed. Use commas, as needed.
In: Accounting
The 10% bonds payable of Hanna Co. had a carrying amount of $4,160,000 on December 31, 2019. The bonds, which had a face value of $4,000,000, were issued at a premium to yield 8%. Hanna uses the effective-interest method of amortization. Interest is paid on June 30 and December 31. On June 30, 2020, several years before their maturity, Hanna retired the bonds at 105 plus accrued interest. The loss on retirement, ignoring taxes, is
In: Accounting
Problem 1) Today, April 1st 2020, I put $1000 into the bank. Every month thereafter I added the same amount, plus $20 more than the month before (i.e. $1020, $1040, $1060, etc.) If the sign on the door of my bank says they pay 6% nominal yearly interest, how much will I be able to take out of the bank on January 1st, 2023. Draw a cash-flow diagram.
In: Economics
Tokyo 2020 Olympics officially postponed until 2021
In: Economics