The accompanying table describes results from groups of 10 births from 10 different sets of parents. The random variable x represents the number of girls among 10 children. Use the range rule of thumb to determine whether 1 girl in 10 births is a significantly low number of girls.
x P(x)
0 0.002
1 0.019
2 0.038
3 0.115
4 0.206
5 0.237
6 0.207
7 0.114
8 0.037
9 0.013
10 0.012
What is the max and min value?
In: Statistics and Probability
4) list the main thrusts of the new Keynesians thought.
5) explain why formal and implicit contracts lead to and increase in unemployment according to new Keynesian school and how government should intervene actively through fiscal and monetary policies to counter this problem.
In: Economics
A fertility method called “sperm sorting” is designed to
increase the probability of conceiving a baby of a specified
gender. A random sample of 620 babies were born using a sperm
sorting technique, and 338 of them were girls.
(a) What is the point estimate for the population proportion of
girls conceived with the sperm sorting technique?
(b) Construct a 99% confidence interval for the percentage of girls
born using this method. You may use your calculator. Round to 4
decimals.
(c) Are the assumptions met? Explain.
(d) Interpret the interval.
(e) Suppose a company that uses a sperm sorting technique claims
that they can increase your probability of conceiving a baby girl
(i.e. more than 50% of births will result in a girl). Run a
hypothesis test, at the 0.01 level of significance, to determine
whether this claim is true. Include the p-value and state your
conclusion in terms of the problem.
Hypotheses: ___________________________
___________________________
p-value (round to 4 decimals) = _______________
State your conclusion in terms of the problem
In: Statistics and Probability
ASSIGNMENT: Write a program and use the attached file (babynames.txt) as input file, and create two output tiles. One file listing out all boys names, and the other file listing out all girls name.
CODE: (teacher gave some of the code below use it to find the answer please String B is the boy names String E is girl names)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
/**
This program reads a file with numbers, and writes the numbers to
another
file, lined up in a column and followed by their total.
*/
public class Total
{
public static void main(String[] args) throws
FileNotFoundException
{
// Prompt for the input and output file names
Scanner console = new Scanner(System.in);
System.out.print("Input file: ");
String inputFileName = console.next();
System.out.print("Output file1: ");
String outputFileName1 = console.next();
System.out.print("Output file2: ");
String outputFileName2 = console.next();
// Construct the Scanner and PrintWriter objects for reading and writing
File inputFile = new File(inputFileName);
Scanner in = new Scanner("babynames.txt");
PrintWriter out1 = new PrintWriter("boysnames.txt");
PrintWriter out2 = new PrintWriter("girlsnames.txt");
// Read the input and write the output
double total = 0;
while (in.hasNextLine())
{
String A = in.next();
String B = in.next();
String C = in.next();
String D = in.next();
String E = in.next();
String F = in.next();
String G = in.next();
out.printf("%15.2f\n", value);
total = total + value;
}
out.printf("Total: %8.2f\n", total);
in.close();
out.close();
}
}
babynames.txt:
1 Michael 462085 2.2506 Jessica 302962 1.5436
2 Christopher 361250 1.7595 Ashley 301702 1.5372
3 Matthew 351477 1.7119 Emily 237133 1.2082
4 Joshua 328955 1.6022 Sarah 224000 1.1413
5 Jacob 298016 1.4515 Samantha 223913 1.1408
6 Nicholas 275222 1.3405 Amanda 190901 0.9726
7 Andrew 272600 1.3277 Brittany 190779 0.9720
8 Daniel 271734 1.3235 Elizabeth 172383 0.8783
9 Tyler 262218 1.2771 Taylor 168977 0.8609
10 Joseph 260365 1.2681 Megan 160312 0.8168
11 Brandon 259299 1.2629 Hannah 158647 0.8083
12 David 253193 1.2332 Kayla 155844 0.7940
13 James 244775 1.1922 Lauren 153530 0.7822
14 Ryan 241105 1.1743 Stephanie 149725 0.7628
15 John 239730 1.1676 Rachel 148907 0.7587
16 Zachary 225188 1.0968 Jennifer 147948 0.7538
17 Justin 220012 1.0716 Nicole 136033 0.6931
18 William 217588 1.0598 Alexis 131117 0.6680
19 Anthony 216088 1.0525 Victoria 117386 0.5981
20 Robert 205313 1.0000 Amber 115551 0.5887
In: Computer Science
ASSIGNMENT: Write a program and use the attached file (babynames.txt) as input file, and create two output tiles. One file listing out all boys names, and the other file listing out all girls name.
CODE: (teacher gave some of the code below use it to find the answer please String B is the boy names String E is girl names)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
/**
This program reads a file with numbers, and writes the numbers to
another
file, lined up in a column and followed by their total.
*/
public class Total
{
public static void main(String[] args) throws
FileNotFoundException
{
// Prompt for the input and output file names
Scanner console = new Scanner(System.in);
System.out.print("Input file: ");
String inputFileName = console.next();
System.out.print("Output file1: ");
String outputFileName1 = console.next();
System.out.print("Output file2: ");
String outputFileName2 = console.next();
// Construct the Scanner and PrintWriter objects for reading and writing
File inputFile = new File(inputFileName);
Scanner in = new Scanner("babynames.txt");
PrintWriter out1 = new PrintWriter("boysnames.txt");
PrintWriter out2 = new PrintWriter("girlsnames.txt");
// Read the input and write the output
double total = 0;
while (in.hasNextLine())
{
String A = in.next();
String B = in.next();
String C = in.next();
String D = in.next();
String E = in.next();
String F = in.next();
String G = in.next();
out.printf("%15.2f\n", value);
total = total + value;
}
out.printf("Total: %8.2f\n", total);
in.close();
out.close();
}
}
babynames.txt:
1 Michael 462085 2.2506 Jessica 302962 1.5436
2 Christopher 361250 1.7595 Ashley 301702 1.5372
3 Matthew 351477 1.7119 Emily 237133 1.2082
4 Joshua 328955 1.6022 Sarah 224000 1.1413
5 Jacob 298016 1.4515 Samantha 223913 1.1408
6 Nicholas 275222 1.3405 Amanda 190901 0.9726
7 Andrew 272600 1.3277 Brittany 190779 0.9720
8 Daniel 271734 1.3235 Elizabeth 172383 0.8783
9 Tyler 262218 1.2771 Taylor 168977 0.8609
10 Joseph 260365 1.2681 Megan 160312 0.8168
11 Brandon 259299 1.2629 Hannah 158647 0.8083
12 David 253193 1.2332 Kayla 155844 0.7940
13 James 244775 1.1922 Lauren 153530 0.7822
14 Ryan 241105 1.1743 Stephanie 149725 0.7628
15 John 239730 1.1676 Rachel 148907 0.7587
16 Zachary 225188 1.0968 Jennifer 147948 0.7538
17 Justin 220012 1.0716 Nicole 136033 0.6931
18 William 217588 1.0598 Alexis 131117 0.6680
19 Anthony 216088 1.0525 Victoria 117386 0.5981
20 Robert 205313 1.0000 Amber 115551 0.5887
In: Computer Science
Before 1990s, nearly all socialist countries have planned economy. Since 1990, China started to introduce markets and private sectors. Do you think Chinese economic system is market socialism or not?
In: Economics
Explain in essay form (around 500 words) why it took India so long to open up its trade with the rest of the world. What eventually led to its big trade reforms of the 1990s?
In: Economics
In: Economics
In the 1990s, a majority of post-socialist countries adopted fixed exchange rate policies. How would you describe a possible reasoning behind it? Why most of those countries eventually cancelled those polisies.
In: Finance
The Old School is trying to decide whether it should purchase or lease a new high speed photocopier machine. It will cost the school $14,000 to purchase the copier and $750 each year to maintain the machine over the course of its 6 year useful life. At the end of the sixth year, Old School expects to be able to sell the copier for $1,000. A dealer has offered to lease the school the same copier for a payment of $750 at the beginning of the lease plus lease payments of $3,450 per year for four years. Lease payments include all maintenance. The dealer was unable to offer a lease longer than 4 years. Lease payments would be made at the beginning of each year. If Old School's discount rate is 7 percent, which alternative should it chose and why?
In: Finance