R Markdown

Hypothesis Hypothesis and Variable Definition

This analysis examines the relationship between offense type and crime severity using data from the San Antonio Police Department. The dataset includes detailed records of reported incidents, such as assault, theft, drug-related offenses, and traffic violations, along with their corresponding severity classifications, including Class A, B, and C misdemeanors as well as felony levels.

The dependent variable (X) in this study is crime severity. This variable represents how serious each offense is classified, ranging from lower-level misdemeanors to higher-level felony offenses. It serves as the outcome of interest because it reflects the seriousness of each reported crime.

The independent variable (Y) is offense type. This variable identifies the category of crime committed, such as assault, burglary, possession of controlled substances, or public intoxication. Based on the dataset, different offense types clearly vary in nature and seriousness, making this a meaningful predictor variable.

The null hypothesis (H₀) states that there is no relationship between offense type and crime severity. This means that the type of offense does not influence how severe a crime is classified, and severity levels occur independently of offense categories.

The alternative hypothesis (H₁) states that there is a relationship between offense type and crime severity. This suggests that certain types of offenses are associated with higher or lower levels of severity. For example, more serious offenses such as drug trafficking or violent crimes are likely to be classified as felonies, while less serious offenses such as public intoxication or minor traffic violations are more likely to be classified as lower-level misdemeanors.

This hypothesis is plausible based on the structure of the dataset, which shows clear variation in severity across different offense types. Testing this relationship will provide insight into how crime classifications are distributed and may help identify patterns in public safety data relevant to public administration and law enforcement practices.

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.