1. Introduction
University life marks a critical and turbulent transition in young adulthood. The shift from school to higher education brings sustained academic pressure, financial uncertainty, and complex social demands [
1], conditions that collectively elevate psychological distress and increase vulnerability to anxiety [
2,
3]. Anxiety is now among the most prevalent mental health concerns in university populations globally, with longitudinal evidence suggesting that symptom severity rises more sharply during this period than in non-student peers of the same age [
2,
4]. What makes this particularly concerning from a public health perspective is not anxiety in isolation, but its downstream effect on health behaviour [
1,
5]: students experiencing higher anxiety tend to engage less in physical activity (PA), even though PA is well-established as protective for both physical and mental health [
6,
7].
Despite consistent evidence of this inverse association, the psychological mechanisms that explain why anxiety translates into behavioural disengagement remain insufficiently understood, particularly in non-Western contexts where structural and cultural factors compound these dynamics [
8] One underexplored mechanism is psychological resilience. Defined as the capacity to regulate emotions, adapt to adversity, and sustain goal-directed behaviour under psychological stress [
9], resilience has been identified as a mediating variable in related behavioural pathways: it has been shown to explain the relationship between physical exercise and depression in Chinese university students [
10] and to mediate the link between mental health literacy and anxiety [
11]. However, whether resilience functions specifically as a mechanism through which anxiety disrupts PA engagement and whether this pattern holds in non-Western university populations, remains a critical gap in the literature [
12].
This gap is especially significant in the Pakistani context. Pakistani university students face not only universal academic stressors but also contextual pressures including intense institutional competition, limited access to mental health services, financial insecurity, and sociocultural stigma surrounding psychological distress [
13]. In a lower-middle-income setting with constrained mental health infrastructure, anxiety is likely to go undetected and unaddressed [
14], and prevalence estimates suggest anxiety may be higher in Pakistani universities than the global average [
15]. Critically, where formal psychological support is scarce, personal psychological resources such as resilience may become the primary determinant of whether a student sustains health-promoting behaviours or withdraws from them [
16]. This contextual reality makes the study of resilience not merely theoretically interesting but practically urgent.
Beyond individual-level associations, existing research has relied predominantly on variable-centred methods that examine average relationships across the full sample, obscuring the possibility that distinct subgroups of students experience quite different combinations of anxiety, resilience, and PA. A person-centred approach such as latent profile analysis (LPA) offers a complementary lens: rather than estimating average effects, it identifies naturally occurring subgroups whose profiles of these three constructs differ in meaningful ways [
17]. To our knowledge, no study has simultaneously tested the resilience mediation pathway and applied LPA to characterise heterogeneous student profiles within this framework, particularly in a South Asian university population.
The present study was therefore designed to address these gaps. The primary aim was to examine whether psychological resilience is consistent with a mediating role in the association between anxiety and PA among Pakistani university students. The secondary aim was to identify latent subgroups based on joint patterns of anxiety, resilience, and PA, and to examine how these profiles differ. Three hypotheses guided the study: (H1) that higher anxiety would be associated with lower PA; (H2) that the data would be consistent with psychological resilience as a partial mediator of this association, such that anxiety is linked to diminished resilience, which in turn is associated with reduced PA; and (H3) that distinct latent profiles would emerge, differing meaningfully in their configurations of anxiety, resilience, and PA.
1.1. Theoretical Framework
This study is grounded in Conservation of Resources (COR) theory, which provides a unified framework for understanding how psychological stress disrupts health behaviour. COR theory proposes that individuals are motivated to acquire, protect, and replenish valued resources whether cognitive, emotional, or social and that stress arises when these resources are threatened or lost [
18]. Within this framework, anxiety functions as a chronic resource-depleting stressor: by sustaining heightened threat appraisal and emotional reactivity, it progressively erodes the cognitive and motivational reserves that underpin purposeful, health-sustaining behaviour [
19]. Psychological resilience, conceptualised as a dynamic personal resource, reflects the ability to regulate emotions, adapt to adversity, and sustain goal-directed functioning under pressure [
20]. When resilience is compromised by prolonged anxiety, individuals may struggle to initiate or maintain effortful behaviours, including PA.
Cognitive-behavioural and attentional control theories complement this resource-based account by specifying the mechanisms through which depletion occurs. Anxiety narrows attentional focus toward threat-related cues, impairs executive functioning, and undermines the self-regulatory capacity needed to initiate and maintain effortful behaviour [
21]. Interpreted within the COR framework, these disruptions are not independent effects they are the visible manifestations of resource loss [
22]. Together, they clarify how the loss of resilience as a psychological resource translates into the behavioural avoidance and motivational disengagement that reduces PA engagement.
This framework generates a theoretically coherent directional pathway: anxiety depletes psychological resources, resilience reflects the remaining adaptive capacity, and PA represents a goal-directed behaviour whose maintenance depends upon that capacity. Although the cross-sectional design of the present study precludes causal conclusions, this sequence is theoretically grounded, and the study examines whether the observed data are consistent with it. Longitudinal and experimental research will be needed to establish temporal precedence and confirm causal direction [
23].
1.1.1. Anxiety and Physical Activity
Anxiety is defined as an incessant worry, the increased sense of threat, and inability to control emotional reactions to stress [
24]. Increased levels of anxiety among university students were also found to be negatively associated with decreased involvement in PA [
25]. Behaviourally, anxiety promotes avoidance tendencies, reduces intrinsic motivation, and amplifies the subjective effort associated with physical exertion [
26,
27]. Students who have an increased level of anxiety can, thus, lose interest in PA as a method of distress reduction, although the positive impact of PA on mental health is well-established [
28]. This relationship can be understood through several behavioural and cognitive pathways. Anxiety often promotes avoidance tendencies, diminishes intrinsic motivation, and amplifies the subjective effort required for physical exertion. Consequently, students experiencing heightened anxiety may withdraw from physical activity despite its well-documented mental and physical health benefits.
From an attentional control perspective, anxiety impairs the allocation of cognitive resources by prioritising threat-related processing over goal-directed action [
21,
29]. This paradox is particularly salient in academic environments, where chronic stress and limited recovery opportunities can reframe exercise as an additional demand rather than restorative practice. This cognitive interference makes it more difficult to plan, initiate, and sustain PA, especially when mental fatigue is already present. Together, these mechanisms help explain why anxiety frequently correlates with reduced participation in health-promoting behaviours.
1.1.2. Role of Psychological Resilience
Psychological resilience is the ability to adjust to stress, overcome adversity, and maintain goal-directed behaviour in the face of stress [
30,
31]. It encompasses emotional regulation, cognitive flexibility, and behavioural persistence in the face of adversity [
32,
33]. Within the COR framework, it operates as a protective personal resource, one that enables individuals to absorb the impact of stressors without exhausting the reserves required for goal-directed behaviour [
34]. However, when anxiety is chronic, it progressively erodes this capacity by heightening emotional reactivity, impairing attentional control, and depleting coping resources over time [
19].
As resilience weakens, individuals become less equipped to sustain behaviours requiring consistent self-regulation, such as regular PA [
2,
35] Students with stronger resilience may remain physically active despite experiencing anxiety, drawing on emotional regulation and adaptive coping to manage distress without abandoning health-promoting behaviour [
36,
37]. Conversely, those whose resilience is depleted are more likely to disengage from goal-directed health behaviours when confronted with psychological strain [
36,
37,
38].
This proposed pathway aligns with self-regulation theories, which emphasise that behavioural outcomes depend not only on external stressors but also on the internal psychological resources available to the individual [
23]. The present study examines whether the observed data is consistent with this sequence, while acknowledging that cross-sectional evidence cannot establish causal direction. Longitudinal research will be necessary to confirm temporal precedence and test whether changes in resilience over time translate into changes in PA engagement [
39].
2. Materials and Methods
2.1. Study Design
This cross-sectional study examined associations among anxiety, psychological resilience, and physical activity among university students in Punjab, Pakistan. All relationships are analysed as associations consistent with the proposed theoretical model, not as causal processes. The study a part of the Physical Activity and Wellbeing Study (PAWS), a broader research programme investigating psychological and behavioural correlates of PA in Pakistani populations. Data was collected in the period of May to December 2025 in the public and private universities, in six cities of the Punjab province Lahore, Faisalabad, Rawalpindi, Multan, Bahawalpur and Dera Ghazi Khan. These cities were selected to represent geographic and socioeconomic variation across north, central, and south Punjab, encompassing metropolitan, industrial, administrative, semi-urban, and less-developed regions.
2.2. Participants and Sampling
A multi-stage recruitment approach using non-probability sampling was adopted. In the first stage, 12 universities were purposively selected across six cities to ensure variation in geographic location, institutional type, and student enrolment size. Both public and private institutions were included to capture diversity in academic environments.
In the second stage, participants were recruited using convenience sampling within each institution. Students were approached in classrooms and common areas across different academic disciplines. Eligible participants were full-time undergraduate or master’s students aged 18 to 26 years who were enrolled at the time of data collection. Both male and female students were included.
2.3. Sample Size
Sample size was estimated using the standard single population proportion formula for cross sectional studies, n = (Z
2 × p × (1 − p))/d
2, as recommended by Lwanga and Lemeshow (1991) [
40]. In the absence of reliable prevalence estimates for anxiety-related PA behaviour among Pakistani university students, the proportion (p) was conservatively set at 0.50 to maximise sample size [
41,
42]. A 95 percent confidence level (Z = 1.96) and a margin of error of 5 percent (d = 0.05) were applied.
Based on these assumptions, the minimum required sample size was 385 participants. To improve statistical power for mediation analysis and account for potential non-response and incomplete questionnaires, a target sample of approximately 1000 students was set. Of approximately 1000 students approached, 930 agreed to participate (response rate ≈ 93%). This larger sample also ensured adequate statistical power for mediation analysis [
43] and sufficient class sizes for latent profile analysis [
44].Following data screening, 160 questionnaires were excluded due to incomplete responses or evidence of careless responding (e.g., missing items exceeding 20% of scale items, or inconsistent response patterns), yielding a final analytical sample of 770 participants. Participants were recruited through in-person engagement across selected universities. All students who agreed to participate provided informed consent prior to completing the questionnaire. It should be noted that the use of convenience sampling, while appropriate for this exploratory study, limits generalizability to the broader Pakistani university population. The multi-city recruitment strategy was adopted specifically to partially mitigate this limitation by increasing geographic and institutional diversity.
2.4. Inclusion and Exclusion Criteria
The participants were selected based on the following criteria: between 18 and 26 years, full-time degree students, and capable of comprehending English language. Participants were excluded if they did not provide informed consent, submitted incomplete questionnaires, or demonstrated patterns indicative of careless or inattentive responding.
2.5. Ethics Approval
The research was carried out in compliance with ethical principles presented in the Declaration of Helsinki. The Bahauddin Zakariya University, Pakistan granted ethical approval (Approval Letter No: 112/UREC/2025). All participants were informed of the study and gave informed consent in written or verbal form before data collection.
2.6. Measures
The survey included a demographic section and three validated scales. English versions of all instruments were used, as English is the primary medium of instruction and assessment in Pakistani universities. University students are therefore expected to possess adequate proficiency to comprehend and respond to questionnaire items reliably. Questionnaire administration was supervised by trained research assistants who were available to clarify any item-level confusion, reducing the risk of misinterpretation.
Figure 1 shows study procedure.
File S1 presents the questionnaire used for data collection in the current study.
2.6.1. Demographic Characteristics
A structured demographic questionnaire assessed sociodemographic and academic variables. Participants self-reported age (continuous, in years), gender (male, female, or other/prefer not to say), university affiliation, academic major (categorized as Medical/Health Sciences, Engineering/Technical, Social Sciences/Humanities, Business/Commerce, Natural Sciences, or Other), and current semester of study (grouped as 1st–2nd Year, 3rd–4th Year, or 5th Year/Final). Marital status was recorded as single/never married, married, divorced/separated, or widowed.
Socioeconomic status was operationalized through monthly household income in Pakistani Rupees (PKR), categorized into five brackets based on World Bank lower-middle income economy thresholds for Pakistan: (0) no income; (1) PKR 6000–25,000 (approximately USD 38–151); (2) PKR 25,000–40,000 (USD 151–242); (3) PKR 40,000–80,000 (USD 242–484); and (4) PKR 80,000–170,000 (USD 484–1028) [
13]. Residence type (urban vs. rural) was determined by self-reported city of residence, classified according to Pakistan Bureau of Statistics metropolitan classifications 2023.
2.6.2. Anxiety
Anxiety severity was assessed using the Generalized Anxiety Disorder 7-item scale (GAD-7), a validated self-report inventory based on DSM-IV diagnostic criteria [
45]. The scale measures the frequency of anxiety symptoms in the last 2 weeks in seven domains: nervousness, worry, relaxation, difficulties, restlessness, irritability, and fear of awful events. Participants responded on a 4-point Likert scale (0 = Not at all to 3 = Nearly every day). Total scores range from 0 to 21, with higher scores indicating greater anxiety severity. Severity cutoffs were as follows: 0–4 (minimal), 5–9 (mild), 10–14 (moderate), and 15–21 (severe), with scores ≥10 indicating clinically significant anxiety.
The GAD-7 has demonstrated strong psychometric properties across diverse populations, with excellent internal consistency (Cronbach’s α = 0.92) and good overall reliability [
45]. A cutoff score of 10 or higher has been shown to effectively identify generalized anxiety disorder, with high sensitivity (89%) and specificity (82%). In the current sample, the GAD-7 demonstrated excellent internal consistency (α = 0.90). The GAD-7 has also been translated into Urdu and validated in Pakistani populations, with evidence supporting its reliability and validity in both English and Urdu versions [
46]. Although the Urdu version is available and culturally validated, the present study employed the English version of the scale, as English is the primary language of instruction and assessment in Pakistani universities.
2.6.3. Psychological Resilience
Resilience was measured using the 10-item Connor-Davidson Resilience Scale (CD-RISC-10) [
31,
47]. The CD-RISC-10 assesses the ability to tolerate experiences such as change, personal problems, pressure, and failure across five core domains: adaptation, tenacity, recovery, emotional regulation, and self-efficacy. The scale consists of 10 items (e.g., “I am able to adapt when changes occur,” “I tend to bounce back after hardships,” “Under pressure, I stay focused”) rated on a 5-point Likert scale (0 = Not true at all to 4 = True nearly all the time), referencing the past month. Total scores range from 0 to 40, with higher scores indicating greater psychological resilience.
The CD-RISC-10 has shown robust psychometric properties across diverse populations, with internal consistency ranging from 0.85 to 0.92, including an initial validation coefficient of Cronbach’s α = 0.85 [
47]. Test–retest reliability is also strong (r = 0.80) over four to six weeks (
p < 0.001) [
47]. Internal consistency in the current sample was excellent (α = 0.94). The scale is also translated into Urdu and proved to be used in Pakistani population to ensure semantic and conceptual equivalence [
48]. Even though there is a validated Urdu version, the English version was applied in the current study due to its common use in the Pakistan higher education institutions.
2.6.4. Physical Activity
Physical activity was measured by Cho, Physical Activity Scale [
49], a culturally validated 5 item measure adapted to specific population groups, which includes Pakistan [
13]. The Physical Activity Scale by Cho measures perceived habitual physical activity based on five items that measure: (1) frequency (How often do you engage in physical activity in your leisure time), (2) intensity, (3) duration, (4) type/nature of activity (sedentary to high-impact), (5) maintenance length (How long have you been maintaining this level). Each item is rated on a 5-point Likert scale (0 = Never/Lowest to 4 = Always/Highest), yielding a total score ranging from 0 to 20, where higher scores indicate higher self-reported PA engagement.
The scale has shown acceptable psychometric characteristics in Pakistani sample with test-retest reliability coefficients reported to be between 0.61 and 0.91 with some indication of convergent and discriminant validity evident [
13]. The scale demonstrated excellent internal consistency in the present sample (α = 0.90). PA data were treated as a continuous score throughout all analyses. In the current research, English version was used, since it is widely used in the research and teaching at universities, and the presence of a validated Urdu version serves as an additional indication that the measure is culturally appropriate.
2.7. Data Collection Procedure
Data was collected using a mixed-mode approach. The main data collection strategy was the paper-based and in-person administration of questionnaires in the campuses of the university. This method was chosen in order to maximise the level of response since online-only surveys have been reported to attract a lower number of university students in Pakistan [
13]. Questionnaires were administered through trained research assistants distributing them at scheduled class periods and in common student areas, by standardised administration procedures. To accommodate scheduling constraints and institutional access limitations, a secondary online survey option was used for a small proportion of participants. The online questionnaire replicated the paper-based version in content and structure. Participants accessing the online survey reviewed an information sheet and provided informed consent prior to participation. Completion time for both modes was approximately 10 min. All participants signed informed consent before data collection. Students were invited to take part and were notified that they could pull out at any time without consequence.
Data Management: Each completed questionnaire was screened for missing and inconsistent data. Responses with more than 20% missing items across any scale were excluded. For cases with missing values below this threshold, item mean substitution was applied within the affected scale, a standard procedure for Likert-type instruments with minimal missing data. All data was coded in Microsoft Excel and imported into SPSS 23 version for analysis. Total scores were computed by summing item responses according to each scale’s scoring guidelines. Data were checked for entry errors, out-of-range values, and distributional assumptions prior to analysis.
2.8. Statistical Analysis
Data were analyzed using SPSS version 23 and R Studio 4.3.0. Descriptive statistics summarised sociodemographic characteristics and scale scores as frequencies, percentages, and means with standard deviations. Independent-samples t-tests with Cohen’s d examined gender differences in anxiety, resilience, and PA; one-way ANOVAs with eta-squared (η2) examined differences across academic years. Pearson correlations with 95% confidence intervals (computed via Fisher z-transformation) examined bivariate associations among the three study variables. Hierarchical linear regression evaluated predictors of PA in three sequential steps: covariates only (gender and academic year; Model 1); addition of anxiety (Model 2); and addition of psychological resilience (Model 3). Unstandardised coefficients (B) with standard errors (SE), standardised coefficients (β), 95% confidence intervals, and incremental variance explained (ΔR2) are reported. Prior to regression analysis, distributional assumptions were verified: residuals were inspected for normality using Q-Q plots, homoscedasticity was assessed via residual plots, and multicollinearity was evaluated using variance inflation factors (VIF; acceptable threshold < 5). VIF values ranged from 1.001 to 1.292 across all predictors, indicating no multicollinearity concerns. Statistical significance was set at p < 0.05 throughout.
Mediation analysis examined whether psychological resilience mediated the association between anxiety and PA using the PROCESS macro (Model 4) in SPSS, with 5000 bootstrap resamples and bias-corrected confidence intervals. Path coefficients (a, b, c, c′) were estimated via multiple regression with gender and academic year as covariates. The indirect effect (a × b) was considered statistically significant when the 95% bootstrap confidence interval excluded zero. The proportion of total effect explained by the mediator was calculated as (indirect effect ÷ total effect) × 100.
Latent profile analysis (LPA) was conducted to identify distinct subgroups of students based on their co-occurring patterns of anxiety, resilience, and PA. LPA is a person-centred technique that classifies individuals into mutually exclusive latent classes based on continuous indicator profiles and was selected because it directly captures the joint patterning of the three constructs within individuals, aligning with the study’s secondary objective. Models specifying one to six latent classes were estimated and compared using five complementary fit criteria: (1) the Akaike information criterion (AIC) and (2) Bayesian information criterion (BIC), where lower values indicate better fit; (3) the sample-size-adjusted BIC (saBIC); (4) relative entropy (range 0–1; values ≥ 0.70 indicate adequate classification accuracy) [
50]; and (5) the Lo–Mendell–Rubin adjusted likelihood ratio test (LMR-LRT) [
51], which tests whether a K-class solution fits significantly better than a K−1 solution.
The optimal class solution was selected based on convergence of four pre-specified criteria: (1) lowest or near-lowest BIC and saBIC with meaningful improvement over the preceding solution (ΔBIC ≥ 10) [
52]; (2) entropy ≥ 0.70 confirmed by mean posterior classification probabilities ≥ 0.80 per class; (3) class-size adequacy, with each class comprising at least 5% of the total sample [
44]; and (4) theoretical interpretability, each profile being conceptually distinct and substantively meaningful within the study’s framework. Once profiles were identified, one-way ANOVAs with Bonferroni-corrected post-hoc comparisons (adjusted α = 0.017) and eta-squared effect sizes examined differences in anxiety, resilience, and PA across classes.
3. Results
Table 1 presents the demographic and socioeconomic characteristics of the study participants (N = 770). The study included 770 university students aged 18–26 years (mean age = 21.48 ± 2.10 years). The sample was gender balanced, comprising 51.4% males and 48.6% females. Participants were evenly distributed across academic years, with representation from Year 1 (27.8%) through Year 4 (20.5%). Most students were enrolled in public sector universities (59.9%). Participants were recruited from multiple cities across Punjab, with the largest proportions from Lahore (24.5%), Faisalabad (20.3%), and Multan (19.2%). The majority were single (83.2%). More than half of the sample reported no personal monthly income (58.8%), while the remainder reported predominantly low to moderate income levels.
Table 2 summarises descriptive statistics and group comparisons for the three study scales. Overall, mean anxiety was 6.65 (SD = 5.88), mean resilience was 17.92 (SD = 10.63), and mean PA was 9.19 (SD = 5.96). No statistically significant differences were observed by gender for anxiety (t = 0.672,
p = 0.502, d = 0.05), resilience (t = −0.570,
p = 0.569, d = −0.04), or PA (t = −0.031,
p = 0.975, d = −0.00). Similarly, one-way ANOVAs revealed no significant differences across academic years for anxiety (F(3, 766) = 0.816,
p = 0.485, η
2 = 0.003), resilience (F(3, 766) = 0.526,
p = 0.665, η
2 = 0.002), or PA (F(3, 766) = 0.351,
p = 0.789, η
2 = 0.001). All effect sizes were negligible across gender and year groups, confirming that these variables are appropriate statistical controls rather than substantive predictors.
Figure 2 illustrates the Pearson correlation matrix among the three study variables. Anxiety was significantly and negatively correlated with psychological resilience (r = −0.475,
p < 0.001, 95% CI [−0.528, −0.418]) and with PA (r = −0.378,
p < 0.001, 95% CI [−0.437, −0.315]), indicating that higher anxiety was associated with both lower resilience and reduced PA engagement. Psychological resilience showed a significant positive association with PA (r = 0.419,
p < 0.001, 95% CI [0.359, 0.476]), such that students with greater resilience tended to report higher PA levels. All three correlations were statistically significant and in the expected directions, providing preliminary support for the hypothesised mediation pathway.
Table 3 presents the hierarchical regression analysis predicting PA. Gender and academic year (Model 1) explained a negligible and non-significant proportion of variance (R
2 = 0.001), confirming their suitability as covariates. The addition of anxiety in Model 2 produced a substantial improvement in fit (ΔR
2 = 0.142,
p < 0.001), with anxiety emerging as a significant negative predictor (β = −0.377,
p < 0.001). Psychological resilience, added in Model 3, contributed a further significant increment (ΔR
2 = 0.074,
p < 0.001) and was a significant positive predictor (β = +0.310,
p < 0.001). Anxiety remained significant but attenuated (β = −0.230,
p < 0.001), consistent with partial mediation. The final model explained 21.7% of variance in PA (adjusted R
2 = 0.213). Full coefficient details are presented in
Table 3.
Table 4 presents the mediation analysis. Anxiety was significantly and negatively associated with psychological resilience (path a: B = −0.858, SE = 0.058,
p < 0.001). Resilience was, in turn, positively associated with PA after controlling for anxiety (path b: B = 0.174, SE = 0.020,
p < 0.001). The total effect of anxiety on PA was significant (path c: B = −0.383, SE = 0.034,
p < 0.001). When resilience was included as a mediator, the direct effect of anxiety on PA remained significant but was reduced in magnitude (path c′: B = −0.234, SE = 0.037,
p < 0.001), consistent with partial mediation. The indirect effect was significant (a × b = −0.149, SE = 0.021, 95% bootstrap CI [−0.189, −0.109]), as the confidence interval excluded zero. Psychological resilience accounted for approximately 39.0% of the total effect of anxiety on PA, indicating that resilience functions as a meaningful but partial mechanism through which anxiety inhibits physical activity engagement.
Figure 3 illustrates the mediation pathway linking anxiety, psychological resilience, and physical activity. In the standardized model, anxiety showed a moderate negative association with psychological resilience (β = −0.48,
p < 0.001), while psychological resilience was positively associated with physical activity (β = 0.31,
p < 0.001). Anxiety also retained a direct negative association with physical activity (β = −0.23,
p < 0.001), although this effect was weaker than the total effect (β = −0.38,
p < 0.001). The indirect effect (β = −0.15, 95% CI [−0.19, −0.11]) accounted for approximately 39.0% of the total effect. Together, these results indicate that higher anxiety is linked to lower resilience, which in turn relates to lower physical activity, visually confirming the partial mediating role of psychological resilience.
LPA models specifying one to six latent classes were estimated and compared using multiple fit indices (
Table 5). Information criteria (AIC, BIC, and saBIC) decreased substantially from K = 1 to K = 3 (ΔBIC1→2 = −187.68; ΔBIC2→3 = −62.60), indicating meaningful improvement with each additional class. Beyond K = 3, improvements fell below the recommended ΔBIC ≥ 10 threshold, and the six-class solution produced a BIC reversal (ΔBIC = +11.97), indicating model deterioration. The LMR-LRT was statistically significant across all transitions (all p < 0.001). The three-class solution yielded adequate classification accuracy (entropy = 0.729), with mean posterior classification probabilities of 0.904, 0.867, and 0.844 for Classes 1, 2, and 3 respectively, all exceeding the recommended 0.80 threshold. The three-class solution was therefore retained as the most statistically adequate, parsimonious, and theoretically interpretable solution.
Table 6 presents the descriptive statistics for the three latent profiles. The Anxious–Inactive profile (Class 1; n = 209, 27.1%) was characterised by clinically elevated anxiety (M = 14.48, SD = 3.49; moderate–severe range on the GAD-7), markedly low resilience (M = 8.51, SD = 6.99), and the lowest PA engagement in the sample (M = 6.18, SD = 5.36). The Moderately Distressed–Moderately Active profile (Class 2; n = 362, 47.0%)—the largest class, representing nearly half the sample, displayed mild-to-moderate anxiety (M = 5.49, SD = 2.97), intermediate resilience (M = 18.82, SD = 9.22), and moderate PA (M = 8.86, SD = 5.62). The Resilient–Active profile (Class 3; n = 199, 25.8%) was distinguished by minimal anxiety (M = 0.54, SD = 0.66), the highest resilience (M = 26.17, SD = 8.33), and the highest PA engagement (M = 12.95, SD = 5.12). A coherent gradient was evident across all three constructs: as class-level PA increased from Class 1 to Class 3, anxiety decreased and resilience increased progressively, providing person-centred corroboration of the variable-centred mediation findings.
Table 7 presents the one-way ANOVA results and Bonferroni-corrected post-hoc comparisons across the three latent profiles. All three omnibus effects were statistically significant and large in magnitude. For anxiety, F(2, 767) = 1367.84,
p < 0.001, η
2 = 0.781, indicating that class membership accounted for 78.1% of the variance in anxiety scores—a very large effect. Bonferroni-corrected comparisons confirmed that all three classes differed significantly from one another (all p < 0.001). For psychological resilience, F(2, 767) = 227.14,
p < 0.001, η
2 = 0.372, with all pairwise comparisons significant (all p < 0.001), confirming the progressive depletion of resilience resources from the Resilient–Active to the Anxious–Inactive profile. For physical activity, F(2, 767) = 80.83,
p < 0.001, η
2 = 0.174, with all three classes differing significantly from one another (all p < 0.001). Together, these results confirm that the three latent profiles are statistically distinct and exhibit a coherent, monotonic gradient in which increasing anxiety is systematically associated with diminishing resilience and lower PA engagement.
Figure 4 illustrates the standardized profiles of anxiety, psychological resilience, and physical activity across the three PA groups. The figure highlights a clear dose–response pattern, with anxiety decreasing and resilience increasing progressively from the Low PA to the High PA profile. Together, the table and figure indicate that higher engagement in physical activity is associated with lower anxiety and greater psychological resilience, providing person-centred support for the variable-centred mediation findings.
4. Discussion
This study examined the associations among anxiety, psychological resilience and PA in a sample of Pakistani university students. Consistent with the hypothesised pattern, anxiety was negatively associated with both resilience and PA, while resilience showed a positive association with PA. Together, anxiety and resilience explained 21.7% of the variance in PA. Furthermore, mediation analysis revealed that psychological resilience as a partial mediator of the anxiety–PA association, with the indirect pathway through resilience accounting for approximately 39% of the total statistical effect. Latent profile analysis further identified three distinct subgroups, ranging from a profile characterized by high anxiety and low resilience alongside minimal PA, to one marked by low anxiety, high resilience, and greater PA engagement.
4.1. Role of Anxiety and Physical Activity
The negative association between anxiety and PA observed in this study is consistent with a well-established pattern in literature. Prior studies across Europe, East Asia, and North America have similarly found anxiety to be linked with lower activity frequency, reduced exercise adherence, and increased behavioural avoidance [
53,
54]. Studies using the GAD-7 specifically have also reported elevated anxiety symptomatology among physically inactive university cohorts [
55]. The present findings extend this evidence to a Pakistani university population, where structural and cultural constraints further limit opportunities for PA. Students with higher anxiety levels showed lower PA participation, a pattern consistent with avoidance-based behavioural responses and impaired self-regulation [
56].
From a theoretical standpoint, this association is interpretable through attentional control theory, which suggests that anxiety narrows the cognitive resources available for initiating and sustaining goal-directed behaviour [
57,
58]. In a setting where mean GAD-7 scores approached the mild-to-moderate threshold (M = 6.65), it is plausible that students perceived physical exertion as an additional deman rather than a restorative outlet, a pattern noted in similar cross-sectional research [
59]. Anxiety alone was associated with 14.3% of the variance in PA, indicating that it represents a meaningful but partial barrier operating alongside other psychosocial factors, most notably resilience. This is imprtant in the Pakistani context, where high academic demands intersect with limited recreational infrastructure and restricted access to organized PA opportunities [
60,
61,
62], conditions that may make it especially difficult for anxious students to remain physically active precisely when doing so would be most beneficial.
4.2. The Mediating Role of Psychological Resilience
The data were consistent with psychological resilience as a partial mediator of the anxiety–PA association. Higher anxiety was associated with lower resilience, which in turn was associated with reduced PA engagement, a pattern aligned with cognitive-behavioural and self-regulation models suggesting that anxiety may weaken behavioural persistence by impairing emotional regulation, self-efficacy, and adaptive coping [
30,
34].
Resilience was statistically associated with approximately 39% of the total anxiety–PA relationship. This proportion should be interpreted cautiously: it reflects the extent to which the anxiety–PA association is accounted for by resilience within this cross-sectional design, rather than a causal quantity. This estimate is comparable to, and in some cases exceeds, those reported in recent studies among university students in other regions [
63], suggesting that psychological resources play a central role in sustaining health behaviours under stress across diverse contexts.
In university populations, higher resilience has been associated with greater behavioural flexibility and sustained engagement in PA despite academic and social stressors [
64]. The present findings extend this evidence to a South Asian population, highlighting the particular importance of resilience in low- and middle-income settings where access to formal mental health services is limited and students rely more heavily on personal coping resources [
65,
66]. This is further consistent with perspectives framing resilience as a dynamic and developable capacity rather than a fixed trait, one that may buffer the association between emotional distress and behavioural disengagement [
28].
In Pakistan university students specifically, anxiety may impair attentional control, executive functioning, and sleep quality, thereby eroding the psychological resources necessary for maintaining regular PA [
13]. The observed indirect pathway suggests that resilience may represent a meaningful point of focus in intervention design within resource-constrained settings. Rather than concentrating exclusively on anxiety reduction, which typically requires specialised clinical services that remain scarce in Pakistan, approaches that also target resilience development may be worth exploring alongside conventional support. Group-based skills programmes, peer support networks, and PA initiatives incorporating mindfulness components represent possible directions, though their effectiveness in this specific context would need to be evaluated through experimental research.
4.3. Person-Centred Patterns of Physical Activity and Psychological Functioning
Beyond variable-centred associations, the latent profile analysis identified three distinct subgroups that differed meaningfully in their co-occurring patterns of anxiety, resilience, and PA. The value of this person-centred approach lies not in replicating the correlation findings, but in demonstrating that these constructs cluster together within identifiable student subgroups, something average associations alone cannot reveal. Consistent with prior person-centred research in student populations [
67,
68], low-activity students were not simply less active; they were simultaneously more anxious and less resilient, suggesting a coherent psychological profile rather than isolated trait differences [
69].
The graded gradient across the three classes, with anxiety decreasing and resilience increasing progressively from Class 1 to Class 3 is theoretically interpretable within the COR framework. Students in the Anxious–Inactive profile may disengage from PA partly as a short-term strategy to conserve depleted psychological resources, even at the cost of longer-term health [
18]. The Moderately Distressed–Moderately Active group, representing nearly half the sample, is of particular interest: these students are neither acutely distressed nor optimally functioning, and may represent a prevention opportunity, a group whose trajectories could shift in either direction depending on the demands they face and the resources available to them. The Resilient–Active profile, by contrast, illustrates that sustained PA engagement is possible even within a high-pressure university environment, when adequate psychological resources are present.
4.4. Implications
These findings have potential implications for university-based health promotion in resource-constrained settings, though the cross-sectional design means these should be understood as possible directions rather than evidence-based prescriptions.
Given that resilience was statistically associated with approximately 39% of the anxiety–PA relationship, approaches that combine anxiety support with resilience-building may be worth exploring alongside exclusive clinical intervention. In Pakistani universities, where counselling services are limited and mental health stigma remains prevalent [
13], strength-based resilience programming may be more accessible and acceptable than pathology-focused approaches. Brief skills-based interventions targeting coping, emotional regulation, and self-efficacy have shown promise in related contexts [
70], though their effectiveness in this specific setting would need to be evaluated.
The Moderately Distressed–Moderately Active group (47.0% of the sample) may represent a useful focus for upstream, preventive approaches. These students are not acutely distressed but could be vulnerable to deterioration under sustained academic pressure [
71,
72]. Low-cost campus initiatives such as peer-led activity groups or curriculum-integrated wellbeing components might potentially support resilience and PA engagement before clinical thresholds are reached, though this remains to be tested. For students in the Anxious–Inactive profile (27.1%), where high anxiety and low resilience co-occur, more intensive and targeted approaches addressing both psychological and behavioural dimensions simultaneously may be worth considering. It is important that any such profile-informed thinking guides supportive and inclusive programming rather than serving to categorise or stigmatise individuals.
The absence of gender and academic year differences in anxiety, resilience, and PA is worth noting. Rather than treating these as surprising findings, they may reflect the specific structure of this sample or broader contextual features of Pakistani higher education, where anxiety pressures may be distributed relatively evenly across gender and year groups, possibly beginning early and persisting throughout the degree [
73]. The high proportion of students reporting no personal income (58.8%) further highlights economic vulnerability as a contextual factor that may compound psychological distress and limit access to PA opportunities independently of the variables examined here.
4.5. Strengths, Limitations and Future Direction
This study has several strengths worth acknowledging. The sample size was adequate for both mediation analysis and latent profile analysis, and recruitment across six cities in Punjab improved geographic representativeness relative to single-institution designs. The use of validated, culturally appropriate instruments and the combination of variable-centred and person-centred analytic methods represent methodological contributions that go beyond what either approach alone could offer in this context.
Several limitations should be considered when interpreting these findings. Most importantly, the cross-sectional design means that temporal precedence cannot be established. The proposed pathway anxiety associated with lower resilience, which in turn is associated with reduced PA is theoretically grounded, but reverse and bidirectional associations are equally plausible. It is just as conceivable that physical inactivity contributes to anxiety, or that resilience influences how anxiety develops over time. Longitudinal research is needed to examine the directionality of these associations. PA was measured exclusively through self-report, which is susceptible to recall bias and social desirability, and may overestimate actual activity levels. Objective measurement using accelerometry would strengthen future work. The use of English-language instruments, while appropriate given the university context, may have introduced subtle comprehension variation among participants with lower English proficiency. Convenience sampling, despite the multi-city approach, limits generalisability to the broader Pakistani university population. Finally, other potentially relevant variables including sleep quality, social support, and academic workload were not measured and may account for additional variance in the observed associations.
Future research should prioritise longitudinal designs to establish whether changes in resilience over time are associated with changes in PA among anxious students, particularly during high-stress transition periods such as first-year enrolment. Experimental studies testing resilience-based interventions alongside PA promotion would provide more direct evidence for the practical implications suggested by these findings.