# Z-score and Hypothesis Testing [closed]

I have a large dataset of vehicles's speeds. My goal is to infer an upper bound on the (average) speed of the population of all vehicles $$U$$

The way this is to be done is like this:
Given a potential speed bound $$S$$ we will test the hypothesis that $$U < S$$. The null hypothesis then would be: $$U >= S$$

I've a rather limited statistics knowledge (I'm a programmer!) and would like to know an algorithm for accepting or rejecting an $$S$$.

We have no knowledge of the population of all vehicles (neither distribution nor mean).

I know I have to use z-score (it's a large dataset), but I'm having trouble figuring out what each variable in the z-score formula should correspond to in my case. I'm thinking maybe I should look at only the vehicles where $$\text{speed of vehicle} >= S$$ for testing the null hypothesis, this would be the sample set, and the population would be all vehicles.

## closed as unclear what you're asking by kjetil b halvorsen, StatsStudent, Carl, Juho Kokkala, mdeweyJan 1 at 12:24

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• How would taxi speeds be representative of bus speeds? – Glen_b Dec 31 '18 at 2:28
• Apart from the concerns about representativity, what is really the null hypothesis? Do you have postulated an upper limit? How? The legal upper speed limit, or something else? – kjetil b halvorsen Dec 31 '18 at 11:55
• We are concerned because we know these "irrelevant" constraints are crucial to obtaining a correct answer. You're headed in an erroneous direction where no amount of theory, calculations, or programming are going to do you any good. – whuber Dec 31 '18 at 18:48
• If you are really just interested in the upper bound on speed (and not just average speed), why not just google the fastest car in the world (among the population of all cars)? You don't even need statistics here if the answer is already well-known. It seems, for an appropraitely defined universe, U is given by 284.6 mph by the Koenigsegg Agera RS:foxnews.com/auto/… – StatsStudent Dec 31 '18 at 19:07
• The upper bound on speed is c, the speed of light. If you find an maximum speed for a population of traveling vehicles, that is nice, but the meaning is a bit empty. Just taking the maximum of a population will do that but one typically asks for some percentage of the population that exceeds a given speed as this is more likely to be a representative number, i.e., more independent of population size. For example, 5% exceed 127 kph, or some such. I think you need to explore the goal, aim, purpose, rational usage, or form of the question before positing it. Currently, the question is unclear. – Carl Dec 31 '18 at 19:32