Language: C++
In your main(), use printf() to print out the floating point values for
some hex data.
a. To print 1.0, do
printf("One: %f\n",0x3FF0000000000000);
The compiler will give you a warning about the argument being a different
type than the format, but that is ok.
b. To print 2.0, do
printf("Two: %f\n",0x4000000000000000);
Remember, to multiply by two, you just add one to the exponent.
c. Print 4.0, 8.0, and 16.0 (with nice labels, of course).
d. We can also go the other way. To divide by two, just decreas the
exponent by one. So for 1/2, do
printf("Half: %f\n",0x3FE0000000000000);
e. Print 1/4, 1/8, 1/16.
f. Negative values have a 1 in the leading bit instead of 0. A leading 1
in the bits for a hex digit has value 8, so -1.0 is BFF0000000000000.
So to print -1.0, do
printf("Neg One: %f\n",0xBFF0000000000000);
g. Print -2, -4, -8, -1/2, -1/4, -1/8 (with nice labels, of course).In: Computer Science
I often see many more women at the park exercising than I do men. Due to my observations, I believe that women exercise more often than men. In order to test my hypothesis, I asked 10 random men and 10 random women how many times they exercise a week. The men's answers were: 6, 2, 3, 1, 4, 3, 2, 7, 4, 2, and the women's were: 5, 4, 2, 4, 7, 6, 5, 6, 4, 3. Is there significant evidence to conclude that the average number of days exercised in a week for women is higher than that of men? Please calculate at a 95% Confidence Interval.
In: Statistics and Probability
research about managerial accounting using this factor :
1- Management accounting and profit planning
Cost volume profit analysis and profit planning
1/2 Budgeting and profit planning
2- management accounting and decision making
2/1 Pricing decisions 2/2 outsourcing decisions
2/3 Adding new product 2/4 Deleting a segment
2/5 optimal allocation of limited resources
3- Management accounting and control
3/1 Responsibility Accounting
3/2 Performance Evaluation
applied in banking sector
In: Accounting
Question 13
A country's Energy Information Administration monitors all nuclear power plants operating in that country. The table below lists the number of active nuclear power plants operating in each of a sample of 10 states.
| State | Number of Power Plants |
| 1 | 5 |
| 2 | 5 |
| 3 | 9 |
| 4 | 8 |
| 5 | 4 |
| 6 | 4 |
| 7 | 2 |
| 8 | 3 |
| 9 | 13 |
| 10 | 3 |
Eliminate the smallest value from the data set. Then, find the variance of this data set. (Round to three decimal places as needed.)
Question 14
A country's Energy Information Administration monitors all nuclear power plants operating in that country. The table below lists the number of active nuclear power plants operating in each of a sample of 10 states.
| State | Number of Power Plants |
| 1 | 5 |
| 2 | 5 |
| 3 | 9 |
| 4 | 8 |
| 5 | 4 |
| 6 | 4 |
| 7 | 2 |
| 8 | 3 |
| 9 | 13 |
| 10 | 3 |
Eliminate the smallest value from the data set. Then, find the standard deviation of this data set. (Round to three decimal places as needed.)
Question 15
A country's Energy Information Administration monitors all nuclear power plants operating in that country. The table below lists the number of active nuclear power plants operating in each of a sample of 10 states.
| State | Number of Power Plants |
| 1 | 5 |
| 2 | 5 |
| 3 | 9 |
| 4 | 8 |
| 5 | 4 |
| 6 | 4 |
| 7 | 2 |
| 8 | 3 |
| 9 | 13 |
| 10 | 3 |
What effect does eliminating the smallest value from the data set have on the variance and standard deviation?
a.)It decreases the variance and standard deviation.
b.)There is no effect on the variance and standard deviation.
c.)It increases the variance and standard deviation.
In: Statistics and Probability
You are attempting to predict the return on Dog Heavy Equipment. You have gathered the following data on the firm’s returns, relevant Treasury rates (for a risk-free rate), and the S&P 1500 (which you plan to use as a market portfolio):
| Year | Dog | Treasury | S & P 500 |
| 1 | 12% | 2% | 14% |
| 2 | 7% | 2% | 8% |
| 3 | 14% | 1% | 9% |
| 4 | 8% | 1% | 12% |
| 5 | 4% | 1% | 7% |
| 6 | 12% | 0% | 9% |
| 7 | 9% | 0% | 10% |
| 8 | 1% | 1% | 12% |
| 9 | -10% | 1% | 15% |
| 10 | 25% | 2% | 11% |
(i) Assume you believe that CAPM is the correct pricing model. Estimate the abnor- mal return on this stock and its beta. Should you invest in this security?
(ii) Do Dog’s returns provide evidence for or against a weak form efficient market?
In: Finance
|
Day |
Number of Apps |
Number Late |
|
1 |
260 |
3 |
|
2 |
250 |
4 |
|
3 |
240 |
2 |
|
4 |
350 |
5 |
|
5 |
200 |
2 |
|
6 |
250 |
4 |
|
7 |
246 |
3 |
|
8 |
258 |
5 |
|
9 |
275 |
2 |
|
10 |
274 |
1 |
|
11 |
219 |
0 |
|
12 |
238 |
10 |
|
13 |
250 |
4 |
|
14 |
302 |
6 |
|
15 |
219 |
20 |
|
16 |
246 |
3 |
|
17 |
251 |
6 |
|
18 |
273 |
7 |
|
19 |
245 |
3 |
|
20 |
260 |
1 |
In: Statistics and Probability
Professor Smith wants to determine if a correlation exists between absences and final grade. She determines the number of absences for ten students in her class and then determines the mean final score for those students. Below are her data:
Student Absences Score
1................. 0...........95
2................. 1.......... 90
3................. 4.......... 72
4................. 3.......... 78
5................. 2.......... 84
6................. 5.......... 67
7................. 4.......... 71
8................. 2.......... 80
9................. 7.......... 55
10............... 5 ......... 64
1. State the null hypothesis: ______________________
2. The Independent Variable is: ________________________
3. The Dependent Variable is: ________________________
4. Pearson's R = _______________ Positive or Negative? ____________________
5. The R is: Strong ___________ Moderate ____________ Weak _____________
6. The Coefficient of Determination is: _________________________
7. The t statistic is ______________ Significant at the __________ level.
8. What percent pf the change in the dependent variable can be attributed to the independent variable? _______%
9. If a student has 6 absences, what would their final scores likely be? ________________
10. State your conclusion. Do you reject the null hypothesis? Is attendance important in order to get a good grade in Professor Smith's class?
In: Statistics and Probability
A medical researcher wishes to try three different techniques to lower the blood pressure of patients with high blood pressure. The subjects are randomly selected and assigned to one of three groups. Group 1 is given medication, Group 2 is given an exercise program, and Group 3 is assigned a diet program. At the end of six weeks, each subject's blood pressure is recorded. Find the test statistic F to test the claim that there is no difference between the means.
Group 1 Group 2 Group 3
11 8 6
12 2 12
9 3 4
15 5 8
13 4 9
8 0 4
11.33 3.67 7.17 (Mean)
2.58 2.73 3.13(SD)
1. Identify the null hypothesis
2. Identify the alternative hypothesis
3. Determine the F value of the F test statistics
4. Identify the P-value
5. State the conclusion of the null hypothesis
6. State the final conclusion that addresses the original claim
7. Write the result in APA format.
In: Statistics and Probability
This week I decided to study a population mean. I believe the population mean number of times that people bring lunch to work in a week is 2.5. I asked 15 people how many times they bring lunch vs buy lunch in a week and got the following information: 3 4 3 2 5 5 2 4 2 1 4 3 5 4 3
My Hypotheses are:
H0 : μ = 2.5
HA : μ ≠ 2.5
At the α = .05 level:
Calculate p-value.
Calculate t-stat.
In: Statistics and Probability
Given two dependent random samples with the following results:
| Population 1 | 20 | 22 | 44 | 42 | 28 | 48 | 39 |
|---|---|---|---|---|---|---|---|
| Population 2 | 30 | 30 | 32 | 45 | 18 | 43 | 32 |
Use this data to find the 99% confidence interval for the true difference between the population means. Assume that both populations are normally distributed.
Copy Data
Step 1 of 4 :
Find the point estimate for the population mean of the paired differences. Let x1 be the value from Population 1 and x2 be the value from Population 2 and use the formula d=x2−x1 to calculate the paired differences. Round your answer to one decimal place.
Step 2 of 4:
Calculate the sample standard deviation of the paired differences. Round your answer to six decimal places.
Step 3 of 4:
Use the 99% confidence interval for the true difference between the population means. Assume that both populations are normally distributed.
Step 4 of 4:
Construct the 99% confidence interval. Round our answers to one decimal places.
In: Statistics and Probability