 # F-Test and T-Test Using Python Programming

Subject Computer Science Python Programming

## Question

Check the file: Questions.pdf

## Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

print("The concentration is:", mean, "+/-", ci, " (ppt)")
The concentration is: 25.6566508814 +/- None (ppt)
Problem 2: Calculate the 99% confidence interval for the concs data set above.

print("The concentration is:", mean, "+/-", ci, " (ppt)")
The concentration is: 25.6566508814 +/- None (ppt)
You should see that the 99% confidence interval is larger than the 95% confidence interval.

The 95% confidence interval means that if you were to make the measurement 100 times, the true population mean (in this case 28 ppt) would fall in the interval 95 times on average.

This would take forever to do experimentally but is easy to do with computers. First, we need to learn how to use an "if" statement in Python. If statements are fairly commonsense logical statements. If the stament is true, it will execute the indented code. If the statement is false, it will not execute it. You can combine logical tests with "and" and "or" statements. An "else" statment is executed if the "if" statement is not executed. Take a look at some examples:

if True:
print("True")

if False:
print("False")

if False:
print("False")
else:
print("Else True")

if 2 < 3: # < is less than
print("2 < 3")

if 3 < 2:
print("No way dude!")

if 2 < 3 and 3 < 4:
print("2 < 3 and 3 < 4")

if 2 < 3 or 2 > 3: # > is greater than
print("Ok, well at least one was correct")

x=2
if x==2: # == is a test for equivalence
print('x equals 2')

if x!=3: # != is a test for not equal
print("x is not equal to 3")...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.