Unless you are just completing a math homework assignment, calculating relative frequency generally implies that you have some form of data. Conduct your experiment or study and collect the data. Decide how precisely you wish to report your results.  For example, suppose you are collecting data on the ages of people who attend a particular movie. You could decide to collect and report the exact age of everyone who attends. But this is likely to give you 60 or 70 different results, being every number from about 10 through 70 or 80. You may instead wish to collect data in groups, like “Under 20,” “20-29,” “30-39,” “40-49,” “50-59,” and “60 plus.” This would be a more manageable set of six data groups. As another example, a doctor might collect body temperatures of patients on a given day. In this case, just collecting whole numbers, like 97, 98, 99, might not be precise enough. It might be necessary to report data in decimals in this case. After you complete your study or experiment, you are likely to have a collection of data values that could look like 1, 2, 5, 4, 6, 4, 3, 7, 1, 5, 6, 5, 3, 4, 5, 1. In this form, the data appear almost meaningless and difficult to use. It is more helpful to sort the data in order from lowest to highest. This would result in the list 1,1,1,2,3,3,4,4,4,5,5,5,5,6,6,7. When you are sorting and rewriting your collection of data, be careful to include every point correctly. Count the data set to make sure you do not leave off any values. You can summarize the results of your data collection by creating a simple data frequency table. This is a chart with three columns that you will use for your relative frequency calculations. Label the columns as follows:   x{\displaystyle x}. This column will be filled with each value that appears in your data set. Do not repeat items. For example, if the value 4 appears several times in the list, just put 4{\displaystyle 4} under the x{\displaystyle x} column once.  n{\displaystyle n}, n(x){\displaystyle n(x)} or fr(x){\displaystyle fr(x)}. In statistics, the variable n{\displaystyle n} is conventionally used to represent the count of a particular value. You may also write n(x){\displaystyle n(x)}, which is read as “n of x,” and means the count of each x-value. A final alternative is fr(x){\displaystyle fr(x)}, which means the “frequency of x.” In this column, you will put the number of times that the value appears. For example, if the number 4 appears three times, you will place a 3 next to the number 4. Relative Frequency or P(x){\displaystyle P(x)}. This final column is where you will record the relative frequency of each data item or grouping. The label P(x){\displaystyle P(x)}, which is read “P of x,” could mean the probability of x or the percentage of x. The calculation of relative frequency appears below. This column will be used after you complete that calculation for each value of x.

Summary: Collect your data. Sort the data. Use a data table.


Stomach discomfort, including ulcers, may contribute to some horses' desire to crib. By switching to a diet that helps reduce ulcers, such as alfalfa hay, you may help eliminate stomach problems, which in turn,  may reduce the horse's cribbing. If your horse is already on alfalfa, you may want to try other options for reducing cribbing.  Change your horse's diet over slowly. Begin mixing some of the new diet in with the old a little at a time, gradually adding more each day. That will help reduce digestive issues. If you suspect that ulcers are causing your horse's cribbing, it's best to get your veterinarian to do a scope of its stomach to get a proper diagnosis. If ulcers are present, your vet can provide you with treatment options and ways to manage the ulcers, which will help heal your horse and reduce the cribbing. Sugary feeds may encourage your horse to crib more, so opt for a low-sugar version, like plain oats, when you're feeding grains in addition to hay. It may be that sugar lights up the same reward center in the brain that cribbing does, so when your horse gets sugar, it may want to keep the feeling going. Look for feeds that have a higher percentage of fat and fiber rather than starch and sugar. You can also try giving the horse hay before you feed it grain, which may cut down on cribbing, as well. If a horse has something to keep its mouth occupied, namely hay or a large pasture for grazing, it's less likely to crib. By having hay around, you encourage the horse to nibble on the hay throughout the day instead of inappropriate things like your barn or your fences. If your horse has trouble with overeating, try a slow feeder. These feeders give your horse a little bit of hay at a time, slowing down how much it can take, but your horse will still be nibbling most of the time. Because stomach discomfort may contribute to cribbing, have your horse seen by the vet if you haven't already. That way, the vet can rule out any stomach problems, such as ulcers or other intestinal issues, that you'll want to get taken care of.  Your vet may suggest an antacid for certain conditions. If your horse doesn't have a stomach problem and cribbing has been a chronic problem, your vet may suggest having surgery to help prevent cribbing.
Summary: Feed the horse alfalfa hay to prevent ulcers. Avoid grain feeds that are high in sugar. Provide hay at all times to keep your horse occupied. Ask your veterinarian to see if there's an underlying reason your horse cribs.